Use inline style for Planting quick form quantity fields.

This commit is contained in:
Michael Stenta 2023-03-10 11:34:55 -05:00
parent 78abcff89d
commit 7b3639e941
1 changed files with 12 additions and 9 deletions

View File

@ -356,18 +356,14 @@ class Planting extends QuickFormBase {
'#required' => TRUE,
],
'quantity' => [
'#type' => 'details',
'#title' => $this->t('Quantity'),
'#open' => FALSE,
'measure' => [
'#type' => 'select',
'#title' => $this->t('Measure'),
'#options' => $filtered_quantity_measure_options,
'#default_value' => 'weight',
'#type' => 'container',
'#attributes' => [
'class' => ['inline'],
],
'value' => [
'#type' => 'textfield',
'#title' => $this->t('Value'),
'#title' => $this->t('Quantity'),
'#size' => 16,
],
'units' => [
'#type' => 'entity_autocomplete',
@ -379,6 +375,13 @@ class Planting extends QuickFormBase {
'#autocreate' => [
'bundle' => 'unit',
],
'#size' => 16,
],
'measure' => [
'#type' => 'select',
'#title' => $this->t('Measure'),
'#options' => $filtered_quantity_measure_options,
'#default_value' => 'weight',
],
],
'notes' => [