Unverified Commit 2e3db915 authored by larowlan's avatar larowlan

Issue #2892304 by Manuel Garcia, amateescu: Introduce footer region to ContentEntityForm

parent a603e0f2
......@@ -127,6 +127,15 @@ public function form(array $form, FormStateInterface $form_state) {
$this->addRevisionableFormFields($form);
}
$form['footer'] = [
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
'class' => ['entity-content-form-footer']
],
'#optional' => TRUE,
];
return $form;
}
......
......@@ -142,13 +142,6 @@ public function form(array $form, FormStateInterface $form_state) {
'#wrapper_attributes' => ['class' => ['entity-meta__author']],
];
$form['footer'] = [
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
'class' => ['node-form-footer']
]
];
$form['status']['#group'] = 'footer';
// Node author information for administrators.
......
......@@ -172,7 +172,7 @@ input.form-submit:focus {
.node-form .form-wrapper {
margin-bottom: 2em;
}
.node-form .node-form-footer,
.node-form .entity-content-form-footer,
.node-form .field--name-status {
margin-bottom: 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment