Skip to content

Commit

Permalink
MDL-67359 mod_forum: Relocate notification templates to reallign it
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolate-lightning committed Dec 3, 2019
1 parent 800563e commit 6b55b28
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
1 change: 1 addition & 0 deletions lib/classes/output/icon_system_fontawesome.php
Expand Up @@ -243,6 +243,7 @@ public function get_core_icon_map() {
'core:i/grade_partiallycorrect' => 'fa-check-square',
'core:i/grades' => 'fa-table',
'core:i/grading' => 'fa-magic',
'core:i/gradingnotifications' => 'fa-bell-o',
'core:i/groupevent' => 'fa-group',
'core:i/groupn' => 'fa-user',
'core:i/group' => 'fa-users',
Expand Down
35 changes: 17 additions & 18 deletions mod/forum/templates/local/grades/local/grader/grading.mustache
Expand Up @@ -98,29 +98,28 @@
<div data-region="grade" class="pt-3 px-3">
{{> mod_forum/local/grades/local/grader/grade_placeholder }}
</div>
<h4 id="send-student-notifications-setting" class="mb-0 h5 px-3 font-weight-normal">
{{#pix}} i/gradingnotifications, core {{/pix}}{{#str}}notifications, core{{/str}}
</h4>
<div data-region="notification" class="pt-3 px-3" role="radiogroup" aria-labelledby="send-student-notifications-setting">
<label class="form-check">
<input class="form-check-input" type="radio" name="sendstudentnotifications" value="1"{{#defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
{{#str}}sendstudentnotificationsyes, mod_forum{{/str}}
</label>
<label class="form-check">
<input class="form-check-input" type="radio" name="sendstudentnotifications" value="0"{{^defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
{{#str}}sendstudentnotificationsno, mod_forum{{/str}}
</label>
{{#helpicon}}
{{>core/help_icon}}
{{/helpicon}}
</div>
<div data-region="grade-errors" role="alert" aria-role="assertive"></div>
</div>
</div>
<div class="hidden overflow-auto" data-region="search-results-container"></div>
</div>
<div data-region="grade-errors" role="alert" aria-role="assertive"></div>
<hr/>
<div class="col-sm-12">
<h4 class="d-inline mb-0 fa fa-bell-o"></h4>
<h4 id="send-student-notifications-setting" class="d-inline mb-0">{{#str}}notifications, core{{/str}}</h4>
<div data-region="notification" class="col-md-12 mt-3" role="radiogroup" aria-labelledby="send-student-notifications-setting">
<label class="form-check">
<input class="form-check-input" type="radio" name="sendstudentnotifications" value="1"{{#defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
{{#str}}sendstudentnotificationsyes, mod_forum{{/str}}
</label>
<label class="form-check">
<input class="form-check-input" type="radio" name="sendstudentnotifications" value="0"{{^defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
{{#str}}sendstudentnotificationsno, mod_forum{{/str}}
</label>
{{#helpicon}}
{{>core/help_icon}}
{{/helpicon}}
</div>
</div>
{{/drawercontent}}
{{/core/drawer}}
{{/core/drawer}}
Binary file added pix/i/gradingnotifications.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions pix/i/gradingnotifications.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b55b28

Please sign in to comment.