Add fields for photo attachments (not processed yet).

This commit is contained in:
Michael Stenta 2020-07-03 08:47:26 -04:00
parent 04d5280a14
commit ce457d88d0
1 changed files with 12 additions and 0 deletions

View File

@ -184,6 +184,12 @@ function farm_livestock_move_form($form, &$form_state) {
'#description' => t('Give the forage quality a rating. This can be any number, but using a consistent scale (eg: 1-10) helps in future comparisons.'),
'#element_validate' => array('element_validate_number'),
);
$form['move']['observations']['post']['photos'] = array(
'#type' => 'file',
'#title' => t('Photos'),
'#name' => 'files[]',
'#attributes' => array('multiple' => 'multiple'),
);
// Pre grazing
$form['move']['observations']['pre'] = array(
@ -205,6 +211,12 @@ function farm_livestock_move_form($form, &$form_state) {
'#description' => t('Give the forage quality a rating. This can be any number, but using a consistent scale (eg: 1-10) helps in future comparisons.'),
'#element_validate' => array('element_validate_number'),
);
$form['move']['observations']['pre']['photos'] = array(
'#type' => 'file',
'#title' => t('Photos'),
'#name' => 'files[]',
'#attributes' => array('multiple' => 'multiple'),
);
// Submit button.
$form['move']['submit'] = array(