mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-79629 core_question: Improve autocomplete categories UI
This commit is contained in:
parent
e9afd7f072
commit
2ea44fb45e
5 changed files with 2 additions and 20 deletions
|
@ -58,6 +58,6 @@
|
||||||
}}{{#filtertypeclass}}data-filter-type-class="{{filtertypeclass}}" {{/filtertypeclass}}{{!
|
}}{{#filtertypeclass}}data-filter-type-class="{{filtertypeclass}}" {{/filtertypeclass}}{{!
|
||||||
}}>
|
}}>
|
||||||
{{#values}}
|
{{#values}}
|
||||||
<option value="{{value}}"{{#disabled}} disabled{{/disabled}}>{{{title}}}</option>
|
<option value="{{value}}"{{#disabled}} disabled{{/disabled}}{{#classes}} class="{{{classes}}}"{{/classes}}>{{{title}}}</option>
|
||||||
{{/values}}
|
{{/values}}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -307,6 +307,7 @@ class category_condition extends condition {
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'title' => $heading,
|
'title' => $heading,
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
|
'classes' => 'suggestions-heading',
|
||||||
];
|
];
|
||||||
foreach ($catlist as $key => $value) {
|
foreach ($catlist as $key => $value) {
|
||||||
$values[] = (object) [
|
$values[] = (object) [
|
||||||
|
|
|
@ -667,13 +667,6 @@ body.path-question-type .mform fieldset.hidden {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
// qbank_managecategories
|
|
||||||
[data-filterregion=filter][data-filter-type=category] .form-autocomplete-suggestions li[aria-disabled=true] {
|
|
||||||
font-weight: bold;
|
|
||||||
color: $body-color;
|
|
||||||
background-color: $body-bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
.que .info {
|
.que .info {
|
||||||
float: none;
|
float: none;
|
||||||
|
|
|
@ -32587,12 +32587,6 @@ body.path-question-type .mform fieldset.hidden {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-filterregion=filter][data-filter-type=category] .form-autocomplete-suggestions li[aria-disabled=true] {
|
|
||||||
font-weight: bold;
|
|
||||||
color: #1d2125;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
@media (max-width: 767.98px) {
|
||||||
.que .info {
|
.que .info {
|
||||||
float: none;
|
float: none;
|
||||||
|
|
|
@ -32587,12 +32587,6 @@ body.path-question-type .mform fieldset.hidden {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-filterregion=filter][data-filter-type=category] .form-autocomplete-suggestions li[aria-disabled=true] {
|
|
||||||
font-weight: bold;
|
|
||||||
color: #1d2125;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
@media (max-width: 767.98px) {
|
||||||
.que .info {
|
.que .info {
|
||||||
float: none;
|
float: none;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue