Skip to content

Commit

Permalink
MDL-64506 grades: Fix regression of MDL-58428
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolate-lightning committed Apr 3, 2019
1 parent a5a6df5 commit b64bf2d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 121 deletions.
20 changes: 9 additions & 11 deletions grade/templates/edit_tree.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@
{{{table}}}
<div id="gradetreesubmit">
{{#showsave}}
<input class="advanced" type="submit" value={{#quote}}{{#str}}savechanges{{/str}}{{/quote}}>
<input class="advanced btn btn-primary" type="submit" value={{#quote}}{{#str}}savechanges{{/str}}{{/quote}}>
{{/showsave}}
{{#showbulkmove}}
<br><br>
<input type="hidden" name="bulkmove" value="0" id="bulkmoveinput">
<label for="menumoveafter">{{#str}}moveselectedto, grades{{/str}}</label>
<select name="moveafter" id="menumoveafter" class="ignoredirty singleselect select">
{{#bulkmoveoptions}}
<option value="{{value}}">{{name}}</option>
{{/bulkmoveoptions}}
</select>
<div id="noscriptgradetreeform" class="hiddenifjs">
<input type="submit" name={{#quote}}{{#str}}go{{/str}}{{/quote}}>
<div class="form-inline mt-3">
<input type="hidden" name="bulkmove" value="0" id="bulkmoveinput">
<label for="menumoveafter">{{#str}}moveselectedto, grades{{/str}}</label>
<select name="moveafter" id="menumoveafter" class="ignoredirty singleselect select form-control">
{{#bulkmoveoptions}}
<option value="{{value}}">{{name}}</option>
{{/bulkmoveoptions}}
</select>
</div>
{{/showbulkmove}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion grade/templates/weight_field.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
<label class="accesshide" for="weight_{{id}}">
{{#str}}extracreditvalue, grades, {{itemname}}{{/str}}
</label>
<input type="text" name="weight_{{id}}" id="weight_{{id}}" value="{{value}}" size="6">
<input type="text" name="weight_{{id}}" id="weight_{{id}}" value="{{value}}" size="4" class="form-control">
22 changes: 12 additions & 10 deletions grade/templates/weight_override_field.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
Weight override field.
Weight field.
}}
<label class="accesshide" for="weightoverride_{{id}}">
{{#str}}overrideweightofa, grades, {{itemname}}{{/str}}
</label>
<input type="hidden" name="weightoverride_{{id}}" value="0">
<input type="checkbox" name="weightoverride_{{id}}" id="weightoverride_{{id}}" value="1" class="weightoverride" {{#checked}}checked{{/checked}}>
<div class="form-inline">
<label class="accesshide" for="weightoverride_{{id}}">
{{#str}}overrideweightofa, grades, {{itemname}}{{/str}}
</label>
<input type="hidden" name="weightoverride_{{id}}" value="0">
<input type="checkbox" name="weightoverride_{{id}}" id="weightoverride_{{id}}" value="1" class="weightoverride" {{#checked}}checked{{/checked}}>

<label class="accesshide" for="weight_{{id}}">
{{#str}}weightofa, grades, {{itemname}}{{/str}}
</label>
<input type="text" name="weight_{{id}}" id="weight_{{id}}" value="{{value}}" size="6" {{#disabled}}disabled{{/disabled}}>
<label class="accesshide" for="weight_{{id}}">
{{#str}}weightofa, grades, {{itemname}}{{/str}}
</label>
<input type="text" name="weight_{{id}}" id="weight_{{id}}" value="{{value}}" size="4" {{#disabled}}disabled{{/disabled}} class="form-control">
</div>
45 changes: 0 additions & 45 deletions grades/templates/edit_tree.mustache

This file was deleted.

23 changes: 0 additions & 23 deletions grades/templates/weight_field.mustache

This file was deleted.

31 changes: 0 additions & 31 deletions grades/templates/weight_override_field.mustache

This file was deleted.

0 comments on commit b64bf2d

Please sign in to comment.