Commit 1ab2df6f authored by Liam's avatar Liam Committed by Robert Lyon

Fixed missing license search box and styling - Bug #1603658

Plus improvments - made other license text box more consistant accross pages behatnotneeded Change-Id: I7efe449230cfc03088252365ad4e85cb0424dd83 (cherry picked from commit 59703519)
parent b4af5ddc
......@@ -152,13 +152,14 @@ function pieform_element_select(Pieform $form, $element) {
);
if (isset($use_other)) {
$other_value = ' value="' . hsc($use_other) . '"';
$other_attrib['class'] = 'text form-control secondary-textbox';
}
else {
$other_attrib['class'] = 'hidden';
$other_attrib['class'] = 'text form-control secondary-textbox hidden';
$other_value = '';
}
$result .= '<label for="' . $form->make_id($other_attrib, true) . '" class="accessible-hidden sr-only">' . get_string('licenseotherurl') . '</label>'
. '<input type="text"'
. '<input type="text" '
. $form->element_attributes($other_attrib)
. $other_value
. ">\n";
......
......@@ -389,3 +389,11 @@
}
}
}
// Make the other license text box align correctly on files page
.fileuploadlicense input[type=text].secondary-textbox,
.fileedittable input[type=text].secondary-textbox {
@media (min-width: $screen-lg-min) {
margin-left: 100px;
}
}
......@@ -536,6 +536,13 @@
}
}
}
input[type=text].secondary-textbox {
margin-top: 15px;
@media (min-width: $screen-lg-min) {
margin-left: 265px;
}
}
}
.panel .form-group-nested {
......@@ -556,4 +563,4 @@
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: #777 !important;
}
\ No newline at end of file
}
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