[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/templates/ -> grading_app.mustache (source)

   1  {{!
   2      This file is part of Moodle - http://moodle.org/
   3  
   4      Moodle is free software: you can redistribute it and/or modify
   5      it under the terms of the GNU General Public License as published by
   6      the Free Software Foundation, either version 3 of the License, or
   7      (at your option) any later version.
   8  
   9      Moodle is distributed in the hope that it will be useful,
  10      but WITHOUT ANY WARRANTY; without even the implied warranty of
  11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12      GNU General Public License for more details.
  13  
  14      You should have received a copy of the GNU General Public License
  15      along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  }}
  17  {{!
  18      @template mod_assign/grading_app
  19  
  20      Actions panel at the bottom of the assignment grading UI.
  21  
  22      Classes required for JS:
  23      * Uses some bootstrap classes, but for visual appeal only.
  24  
  25      Data attributes required for JS:
  26      * data-region, data-first-userid, data-courseid, data-contextid, data-assignmentid
  27  
  28      Context variables required for this template:
  29      * see mod/assign/classes/output/grading_app.php
  30  
  31      Example context (json):
  32      This template includes ajax functionality, so it cannot be shown in the template library.
  33  }}
  34  <div data-region="grading-navigation-panel" data-first-userid="{{userid}}" data-courseid="{{courseid}}" data-showuseridentity="{{showuseridentity}}">
  35  {{> mod_assign/grading_navigation }}
  36  </div>
  37  {{#showreview}}
  38  <div data-region="review-panel">
  39      <a href="#" data-region="review-panel-toggle">
  40          <div class="collapse-icon">{{#pix}} t/expanded, core, {{#str}} collapsereviewpanel, mod_assign {{/str}} {{/pix}}</div>
  41          <div class="expand-icon">
  42              <div class="ltr-icon">{{#pix}} t/collapsed, core, {{#str}} expandreviewpanel, mod_assign {{/str}} {{/pix}}</div>
  43              <div class="rtl-icon">{{#pix}} t/collapsed_rtl, core, {{#str}} expandreviewpanel, mod_assign {{/str}} {{/pix}}</div>
  44              <div class="toggle-text">{{#str}} clickexpandreviewpanel, mod_assign {{/str}}</div>
  45          </div>
  46      </a>
  47      <div data-region="review-panel-content">
  48          <div data-region="review">
  49              {{> mod_assign/review_panel }}
  50          </div>
  51      </div>
  52  </div>
  53  {{/showreview}}
  54  <div data-region="grade-panel" {{^showreview}}class="fullwidth"{{/showreview}}>
  55  <div data-region="grade" data-contextid="{{contextid}}" data-assignmentid="{{assignmentid}}">
  56  {{> mod_assign/grading_panel }}
  57  </div>
  58  </div>
  59  <div data-region="grade-actions-panel">
  60  <div data-region="grade-actions">
  61  {{> mod_assign/grading_actions }}
  62  </div>
  63  </div>
  64  <div data-region="overlay" class="moodle-has-zindex">
  65  {{> mod_assign/grading_save_in_progress }}
  66  </div>


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1