Commit 72c229e3 authored by webchick's avatar webchick

Issue #2249089 by ivan.chaquea, mgifford: Fixed Improper use of a LABEL for Last Saved & Author.

parent 9c16305b
......@@ -64,7 +64,8 @@ label.option {
font-weight: normal;
}
.form-composite > legend,
h4.label {
.label {
display:inline;
font-size: inherit;
font-weight: bold;
margin: 0;
......@@ -114,7 +115,8 @@ abbr.ajax-changed {
/**
* Inline items.
*/
.container-inline label:after {
.container-inline label:after,
.container-inline .label:after {
content: ':';
}
.form-type-radios .container-inline label:after {
......
......@@ -323,6 +323,7 @@ function seven_form_node_form_alter(&$form, &$form_state) {
);
$form['advanced']['#type'] = 'container';
$is_new = !$node->isNew() ? format_date($node->getChangedTime(), 'short') : t('Not saved yet');
$form['meta'] = array(
'#attributes' => array('class' => array('entity-meta-header')),
'#type' => 'container',
......@@ -337,14 +338,12 @@ function seven_form_node_form_alter(&$form, &$form_state) {
'changed' => array(
'#type' => 'item',
'#wrapper_attributes' => array('class' => array('changed', 'container-inline')),
'#title' => t('Last saved'),
'#markup' => !$node->isNew() ? format_date($node->getChangedTime(), 'short') : t('Not saved yet'),
'#markup' => '<h4 class="label inline">' . t('Last saved') . '</h4> ' . $is_new,
),
'author' => array(
'#type' => 'item',
'#wrapper_attributes' => array('class' => array('author', 'container-inline')),
'#title' => t('Author'),
'#markup' => $node->getOwner()->getUsername(),
'#markup' => '<h4 class="label inline">' . t('Author') . '</h4> ' . $node->getOwner()->getUsername(),
),
);
$form['revision_information']['#type'] = 'container';
......
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