Commit cb002abc authored by Dries's avatar Dries

- Patch #412030 by stBorchert: fixed placement of descriptions on radios.

parent 93a8a68e
......@@ -1023,7 +1023,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
COMMENT_NODE_OPEN => array(
'#type' => 'radio',
'#title' => t('Open'),
'#description' => theme('indentation') . t('Users with the "Post comments" permission can post comments.'),
'#description' => t('Users with the "Post comments" permission can post comments.'),
'#return_value' => COMMENT_NODE_OPEN,
'#default_value' => $comment_settings,
'#id' => 'edit-comment-2',
......@@ -1032,7 +1032,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
COMMENT_NODE_CLOSED => array(
'#type' => 'radio',
'#title' => t('Closed'),
'#description' => theme('indentation') . t('Users cannot post comments, but existing comments will be displayed.'),
'#description' => t('Users cannot post comments, but existing comments will be displayed.'),
'#return_value' => COMMENT_NODE_CLOSED,
'#default_value' => $comment_settings,
'#id' => 'edit-comment-1',
......@@ -1041,7 +1041,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
COMMENT_NODE_HIDDEN => array(
'#type' => 'radio',
'#title' => t('Hidden'),
'#description' => theme('indentation') . t('Comments are hidden from view.'),
'#description' => t('Comments are hidden from view.'),
'#return_value' => COMMENT_NODE_HIDDEN,
'#default_value' => $comment_settings,
'#id' => 'edit-comment-0',
......@@ -1053,7 +1053,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
if (empty($comment_count)) {
unset($form['comment_settings']['comment']['#options'][COMMENT_NODE_HIDDEN]);
unset($form['comment_settings']['comment'][COMMENT_NODE_HIDDEN]);
$form['comment_settings']['comment'][COMMENT_NODE_CLOSED]['#description'] = theme('indentation') . t('Users cannot post comments.');
$form['comment_settings']['comment'][COMMENT_NODE_CLOSED]['#description'] = t('Users cannot post comments.');
}
}
}
......
......@@ -150,6 +150,9 @@ tr.merge-up, tr.merge-up td, tr.merge-up th {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
.form-type-radio .description, .form-type-checkbox .description {
margin-left: 2.4em;
}
.marker, .form-required {
color: #f00;
}
......
......@@ -537,6 +537,10 @@ div.form-item div.description {
color: #666;
}
body div.form-type-radio div.description, body div.form-type-checkbox div.description {
margin-left: 1.5em;
}
/* Buttons */
input.form-submit {
cursor: pointer;
......
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