Commit d3f6eb40 authored by Jono Mingard's avatar Jono Mingard
Browse files

Add element title to "Set date" checkbox (Bug #1482491)

eg. in Group settings, the "Start date" and "End date" checkbox
labels now read "Set date: Start date" and "Set date: End date"

behatnotneeded

Change-Id: I447f875ce308808d509afe6bfafadee74f11d6a8
parent bb921fd8
......@@ -70,7 +70,9 @@ EOF;
. ($dateisset ? 'checked="checked"' : '')
. 'name="' . $name . '_optional" id="' . $name . '_optional" onchange="' . $name . '_toggle(this)" '
. 'tabindex="' . Pieform::hsc($element['tabindex']) . '">';
$optional .= ' <label for="' . $name . '_optional">' . $form->i18n('element', 'date', 'specify', $element) . '</label> ';
$optional .= ' <label for="' . $name . '_optional">'
. $form->i18n('element', 'date', 'specify', $element) . ': '
. $element['title'] . '</label> ';
$result .= $optional;
}
......
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