diff --git a/theme/noname/scss/moodle/core.scss b/theme/noname/scss/moodle/core.scss index 222fc3d7506..b31792792f4 100644 --- a/theme/noname/scss/moodle/core.scss +++ b/theme/noname/scss/moodle/core.scss @@ -1112,6 +1112,10 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview { height: 16px; background-size: 100%; } +.moodle-dialogue-base .moodle-dialogue-wrap { + background-color: #fff; + border: 1px solid #ccc; +} .moodle-dialogue-base .moodle-dialogue-wrap.moodle-dialogue-content { @extend .modal-content; } diff --git a/theme/noname/scss/moodle/modules.scss b/theme/noname/scss/moodle/modules.scss index 371e8bd32ff..d71951a691a 100644 --- a/theme/noname/scss/moodle/modules.scss +++ b/theme/noname/scss/moodle/modules.scss @@ -582,3 +582,51 @@ div#dock { background-color: $gray-light; } } + +/** + * Assign. + */ +.path-mod-assign [data-region="grade-actions-panel"] [data-region="grade-actions"] .collapse-buttons { + top: auto; +} +.path-mod-assign [data-region="grade-panel"] h3 { + margin: 10px 0; + line-height: 40px; +} +.path-mod-assign [data-region="grading-navigation"] { + padding: 6px; +} +.path-mod-assign [data-region="grade-actions"] { + padding: 10px; +} +.path-mod-assign [data-region="user-info"] .img-rounded { + margin-top: 0; +} +.path-mod-assign [data-region="grading-navigation-panel"] { + height: 85px; +} +.path-mod-assign [data-region="grading-navigation"] [data-region="input-field"] input { + width: auto; + display: inline-block; +} + +/** + * Assign feedback. + */ +.assignfeedback_editpdf_widget * { + box-sizing: content-box; +} +.assignfeedback_editpdf_widget button { + box-sizing: border-box; +} +.assignfeedback_editpdf_widget .commentcolourbutton img { + border-width: 0; +} +.assignfeedback_editpdf_widget .label { + @extend .tag; + @extend .tag-info; +} + +.assignfeedback_editpdf_menu { + padding: 0; +} diff --git a/theme/noname/templates/core/form_autocomplete_input.mustache b/theme/noname/templates/core/form_autocomplete_input.mustache index 89bb1a4c8aa..f8d92938a58 100644 --- a/theme/noname/templates/core/form_autocomplete_input.mustache +++ b/theme/noname/templates/core/form_autocomplete_input.mustache @@ -36,7 +36,7 @@ { "inputID": 1, "suggestionsId": 2, "selectionId": 3, "downArrowId": 4, "placeholder": "Select something" } }} {{#showSuggestions}} -▼ +▼ {{/showSuggestions}} {{^showSuggestions}} diff --git a/theme/noname/templates/core_form/element-template-inline.mustache b/theme/noname/templates/core_form/element-template-inline.mustache index a9ac4d0ffe1..08751af977c 100644 --- a/theme/noname/templates/core_form/element-template-inline.mustache +++ b/theme/noname/templates/core_form/element-template-inline.mustache @@ -1,4 +1,4 @@ -
+
@@ -13,4 +13,4 @@ require(['theme_noname/form-display-errors'], function(module) { module.enhance({{#quote}}{{element.id}}{{/quote}}); }); -{{/js}} \ No newline at end of file +{{/js}} diff --git a/theme/noname/templates/core_form/element-template.mustache b/theme/noname/templates/core_form/element-template.mustache index 17dbab28e10..a03a59638ab 100644 --- a/theme/noname/templates/core_form/element-template.mustache +++ b/theme/noname/templates/core_form/element-template.mustache @@ -1,4 +1,4 @@ -
+
@@ -15,4 +15,4 @@ require(['theme_noname/form-display-errors'], function(module) { module.enhance({{#quote}}{{element.id}}{{/quote}}); }); -{{/js}} \ No newline at end of file +{{/js}} diff --git a/theme/noname/templates/embedded.mustache b/theme/noname/templates/embedded.mustache index a2e664813c8..4d5198bb29c 100644 --- a/theme/noname/templates/embedded.mustache +++ b/theme/noname/templates/embedded.mustache @@ -10,11 +10,11 @@ {{{ output.standard_top_of_body_html }}} -
- {{{ output.course_content_header }}} - {{{ output.main_content }}} - {{{ output.course_content_footer }}} -
+
+
+ {{{ output.main_content }}} +
+
{{{ output.standard_end_of_body_html }}} diff --git a/theme/noname/templates/mod_assign/grading_actions.mustache b/theme/noname/templates/mod_assign/grading_actions.mustache new file mode 100644 index 00000000000..203ba174083 --- /dev/null +++ b/theme/noname/templates/mod_assign/grading_actions.mustache @@ -0,0 +1,55 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + @template mod_assign/grading_actions + + Actions panel at the bottom of the assignment grading UI. + + Classes required for JS: + * none + + Data attributes required for JS: + * data-region + + Context variables required for this template: + * see mod/assign/classes/output/grading_app.php + + Example context (json): + This template is initially hidden, and is only displayed after the current user info has been loaded. +}} +{{#showreview}} +
+
+ + + +
+
+{{/showreview}} +
+ + + +
+{{#js}} +require(['mod_assign/grading_actions'], function(GradingActions) { + new GradingActions('[data-region="grade-actions"]'); +}); +{{/js}} diff --git a/theme/noname/templates/mod_assign/grading_navigation.mustache b/theme/noname/templates/mod_assign/grading_navigation.mustache new file mode 100644 index 00000000000..23d1aa7ab92 --- /dev/null +++ b/theme/noname/templates/mod_assign/grading_navigation.mustache @@ -0,0 +1,75 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + @template mod_assign/grading_navigation + + Actions panel at the bottom of the assignment grading UI. + + Classes required for JS: + * none + + Data attributes required for JS: + * data-region, data-assignmentid, data-groupid + + Context variables required for this template: + * see mod/assign/classes/output/grading_app.php + + Example context (json): + This template includes ajax functionality, so it cannot be shown in the template library. +}} +
+
+
+{{{coursename}}}
+{{name}} +{{#caneditsettings}} +{{#pix}}t/edit, core,{{#str}}editsettings{{/str}}{{/pix}} +{{/caneditsettings}} + +{{#duedate}} +
{{#str}}duedatecolon, mod_assign, {{duedatestr}}{{/str}} +{{/duedate}} + +
+
+ {{> mod_assign/grading_navigation_user_info }} +
+
+
+ {{> mod_assign/grading_navigation_user_selector }} +
+
+
+
+{{#js}} +require(['mod_assign/grading_navigation', 'core/tooltip'], function(GradingNavigation, ToolTip) { + var nav = new GradingNavigation('[data-region="user-selector"]'); + var tooltip = new ToolTip('[data-region="assignment-tooltip"]'); +}); +{{/js}} \ No newline at end of file diff --git a/theme/noname/templates/mod_assign/grading_navigation_user_selector.mustache b/theme/noname/templates/mod_assign/grading_navigation_user_selector.mustache new file mode 100644 index 00000000000..6b3c59ef85d --- /dev/null +++ b/theme/noname/templates/mod_assign/grading_navigation_user_selector.mustache @@ -0,0 +1,66 @@ +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + @template mod_assign/grading_navigation_user_selector + + The template HTML for the user selector in the top right corner. + + Classes required for JS: + * none + + Data attributes required for JS: + * data-action, data-assignmentid, data-groupid, data-region + + Context variables required for this template: + * see mod/assign/classes/output/grading_app.php + + Example context (json): + This template uses ajax functionality, so it cannot be shown in the template library. +}} +{{{larrow}}} + + + +{{{rarrow}}} + +
+ + + + {{#str}}xofy, mod_assign, { "x": "{{index}}", "y": "{{count}}" }{{/str}} + + + + +
+ + + +
+
+ +