Commit 59703519 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
parent 715a2ff9
......@@ -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";
......
......@@ -454,3 +454,11 @@
display: inline-block;
width: 30px;
}
// 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;
}
}
......@@ -550,6 +550,13 @@
&.top-line {
border-top: 1px solid #f0f0f0;
}
input[type=text].secondary-textbox {
margin-top: 15px;
@media (min-width: $screen-lg-min) {
margin-left: 265px;
}
}
}
.panel .form-group-nested {
......@@ -570,4 +577,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