diff -u b/src/Form/Entity/ScheduledTransitionAddForm.php b/src/Form/Entity/ScheduledTransitionAddForm.php --- b/src/Form/Entity/ScheduledTransitionAddForm.php +++ b/src/Form/Entity/ScheduledTransitionAddForm.php @@ -122,7 +122,7 @@ '#type' => 'container', '#attributes' => [ 'id' => $newMetaWrapperId, - 'class' => ['container-inline'], + 'class' => ['form--inline', 'clearfix'], ], ]; @@ -146,7 +146,7 @@ '#type' => 'container', '#attributes' => [ 'id' => $newMetaWrapperId, - 'class' => ['form--inline', 'clearfix'], + 'class' => ['container-inline'], ], ]; @@ -155,6 +155,7 @@ $form['scheduled_transitions']['new_meta']['transition_help']['#markup'] = $this->t('Execute transition'); $form['scheduled_transitions']['new_meta']['transition'] = [ '#type' => 'select', + '#title' => $this->t('Execute transition'), '#options' => $transitionOptions, '#empty_option' => $this->t('- Select -'), '#required' => TRUE, @@ -163,6 +164,7 @@ $form['scheduled_transitions']['new_meta']['on_help']['#markup'] = $this->t('on date'); $form['scheduled_transitions']['new_meta']['on'] = [ '#type' => 'datetime', + '#title' => $this->t('On date'), '#default_value' => new \DateTime(), '#required' => TRUE, ]; @@ -175,17 +177,17 @@ $transitionOptions[$toTransition->id()] = $toTransition->label(); } + $form['scheduled_transitions']['new_meta']['transition_help']['#markup'] = $this->t('Execute transition'); $form['scheduled_transitions']['new_meta']['transition'] = [ '#type' => 'select', - '#title' => $this->t('Execute transition'), '#options' => $transitionOptions, '#empty_option' => $this->t('- Select -'), '#required' => TRUE, ]; + $form['scheduled_transitions']['new_meta']['on_help']['#markup'] = $this->t('on date'); $form['scheduled_transitions']['new_meta']['on'] = [ '#type' => 'datetime', - '#title' => $this->t('on date'), '#default_value' => new \DateTime(), '#required' => TRUE, ]; only in patch2: unchanged: --- a/css/scheduled_transitions.form_add.css +++ b/css/scheduled_transitions.form_add.css @@ -1,21 +1,59 @@ .ui-dialog .scheduled-updates-add { - display: flex; - flex-direction: column; - height: 600px; + display: flex; + flex-direction: column; + height: 600px; } .ui-dialog .scheduled-updates-add .scheduled-updates-add__table { - overflow: auto; + overflow: auto; } .ui-dialog .scheduled-updates-add .scheduled-updates-add__meta { - border-top: 1px solid #ddd; - box-shadow: 0 -15px 32px -23px rgba(0, 0, 0, 0.5); + border-top: 1px solid #ddd; + box-shadow: 0 -15px 32px -23px rgba(0, 0, 0, 0.5); } .ui-dialog .scheduled-updates-add .scheduled-updates-add__table tbody .state, -.ui-dialog .scheduled-updates-add .scheduled-updates-add__table tbody .revision-time, -.ui-dialog .scheduled-updates-add .scheduled-updates-add__table tbody .revision-author { - /* Prevent Revision Date/Author/State table cells from wrapping. */ - white-space: nowrap; +.ui-dialog + .scheduled-updates-add + .scheduled-updates-add__table + tbody + .revision-time, +.ui-dialog + .scheduled-updates-add + .scheduled-updates-add__table + tbody + .revision-author { + /* Prevent Revision Date/Author/State table cells from wrapping. */ + white-space: nowrap; +} + +.scheduled-updates-add__meta .form-wrapper > strong { + display: none; +} + +.scheduled-updates-add__meta .form-wrapper { + margin: 0.75em 0; + display: block; +} + +.scheduled-updates-add__meta .form-wrapper > strong { + display: none; +} +.scheduled-updates-add__meta .form-wrapper .form-item { + margin: 0 0.5em 0 0; +} + +.scheduled-updates-add__meta .form-wrapper .form-item label, +.scheduled-updates-add__meta .form-wrapper .label { + display: block; + margin: 0 0 0.2em; +} + +.scheduled-updates-add__meta .form-wrapper .form-item .form-item__label { + margin-top: 0; +} + +.scheduled-updates-add__meta .form-wrapper .js-form-type-date { + margin-top: 0; }