mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-79057-master' of https://github.com/junpataleta/moodle
This commit is contained in:
commit
b65724480b
@ -234,7 +234,7 @@ abstract class tablelike extends screen implements be_readonly {
|
||||
return html_writer::tag(
|
||||
'div',
|
||||
(new bulk_insert($this->item))->html(),
|
||||
['class' => 'singleview_bulk', 'hidden' => true]
|
||||
['class' => 'singleview_bulk', 'hidden' => 'hidden']
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,6 @@ class dropdown_attribute extends element {
|
||||
'name' => $this->name,
|
||||
'value' => $this->selected,
|
||||
'text' => $options[$selected],
|
||||
'tabindex' => 1,
|
||||
'disabled' => !empty($this->isdisabled),
|
||||
'readonly' => $this->isreadonly,
|
||||
'options' => array_map(function($option) use ($options, $selected) {
|
||||
|
@ -85,10 +85,8 @@ class text_attribute extends element {
|
||||
$context->label = '';
|
||||
if (preg_match("/^feedback/", $this->name)) {
|
||||
$context->label = get_string('feedbackfor', 'gradereport_singleview', $this->label);
|
||||
$context->tabindex = '2';
|
||||
} else if (preg_match("/^finalgrade/", $this->name)) {
|
||||
$context->label = get_string('gradefor', 'gradereport_singleview', $this->label);
|
||||
$context->tabindex = '1';
|
||||
}
|
||||
|
||||
return $OUTPUT->render_from_template('gradereport_singleview/text_attribute', $context);
|
||||
|
@ -33,7 +33,7 @@
|
||||
{{/readonly}}
|
||||
{{^readonly}}
|
||||
<label for="{{name}}" class="accesshide">{{label}}</label>
|
||||
<select id="{{name}}" name="{{name}}" class="custom-select" tabindex="1" {{#disabled}}disabled{{/disabled}}>
|
||||
<select id="{{name}}" name="{{name}}" class="custom-select" {{#disabled}}disabled{{/disabled}}>
|
||||
{{#options}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/options}}
|
||||
|
@ -24,7 +24,6 @@
|
||||
"name": "Awesome-report",
|
||||
"label": "Text label",
|
||||
"value": "Text information",
|
||||
"tabindex": "1",
|
||||
"disabled": "true"
|
||||
}
|
||||
}}
|
||||
@ -33,6 +32,6 @@
|
||||
{{/readonly}}
|
||||
{{^readonly}}
|
||||
{{#label}}<label for="{{name}}" class="accesshide">{{label}}</label>{{/label}}
|
||||
<input id="{{name}}" name="{{name}}" type="text" value="{{value}}" class="form-control" {{#tabindex}}tabindex="{{.}}"{{/tabindex}} {{#disabled}}disabled{{/disabled}}>
|
||||
<input id="{{name}}" name="{{name}}" type="text" value="{{value}}" class="form-control" {{#disabled}}disabled{{/disabled}}>
|
||||
<input type="hidden" name="old{{name}}" value="{{value}}">
|
||||
{{/readonly}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user