Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
2e3db915
Unverified
Commit
2e3db915
authored
Sep 13, 2017
by
larowlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2892304
by Manuel Garcia, amateescu: Introduce footer region to ContentEntityForm
parent
a603e0f2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
core/lib/Drupal/Core/Entity/ContentEntityForm.php
core/lib/Drupal/Core/Entity/ContentEntityForm.php
+9
-0
core/modules/node/src/NodeForm.php
core/modules/node/src/NodeForm.php
+0
-7
core/themes/bartik/css/components/form.css
core/themes/bartik/css/components/form.css
+1
-1
No files found.
core/lib/Drupal/Core/Entity/ContentEntityForm.php
View file @
2e3db915
...
...
@@ -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
;
}
...
...
core/modules/node/src/NodeForm.php
View file @
2e3db915
...
...
@@ -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.
...
...
core/themes/bartik/css/components/form.css
View file @
2e3db915
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment