Commit f4a13633 authored by Liam Sharpe's avatar Liam Sharpe
Browse files

Put the date picker dropdowns on the next line in form-condensed fields - Bug #1465107

behatnotneeded

Change-Id: Id216a211b3a0c044e1b2d295132da10b97ca9684
parent d86b87c1
......@@ -80,7 +80,7 @@ EOF;
// Year
$value = pieform_element_date_get_timeperiod_value('year', $element['minyear'], $element['maxyear'], $element, $form);
$year = '<label for="' . $name . '_year" class="accessible-hidden sr-only">' . get_string('year') . '</label>';
$year .= '<span class="picker"><select class="form-control select" name="' . $name . '_year" id="' . $name . '_year"'
$year .= '<span class="picker first"><select class="form-control select" name="' . $name . '_year" id="' . $name . '_year"'
. (!$required && !$dateisset ? ' disabled="disabled"' : '')
. ' tabindex="' . Pieform::hsc($element['tabindex']) . '"';
if (isset($element['description'])) {
......
......@@ -280,3 +280,11 @@
max-width: 250px;
}
// Puts the date picker in form-condensed fields on the next line
.form-condensed {
.picker {
&.first {
margin-left: 270px;
}
}
}
......@@ -38,7 +38,8 @@
}
// Overrides the main bootstrap table file and adds padding into tables so that text isnt squashed against the border
// Overrides the main bootstrap table file and adds padding into tables so that text
// isnt squashed against the border.
.alert {
.table-bordered {
> thead,
......
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