Skip to content

Commit

Permalink
Use inline style for Planting quick form quantity fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstenta committed Apr 1, 2023
1 parent 78abcff commit 7b3639e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions modules/quick/planting/src/Plugin/QuickForm/Planting.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,14 @@ protected function buildLogForm(string $log_type, array $include_fields = [], ar
'#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',
Expand All @@ -379,6 +375,13 @@ protected function buildLogForm(string $log_type, array $include_fields = [], ar
'#autocreate' => [
'bundle' => 'unit',
],
'#size' => 16,
],
'measure' => [
'#type' => 'select',
'#title' => $this->t('Measure'),
'#options' => $filtered_quantity_measure_options,
'#default_value' => 'weight',
],
],
'notes' => [
Expand Down

0 comments on commit 7b3639e

Please sign in to comment.