Add fields for photo attachments (not processed yet).
This commit is contained in:
parent
04d5280a14
commit
ce457d88d0
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue