[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/templates/ -> grading_navigation.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_navigation
  19  
  20      Actions panel at the bottom of the assignment grading UI.
  21  
  22      Classes required for JS:
  23      * none
  24  
  25      Data attributes required for JS:
  26      * data-region, data-assignmentid, data-groupid
  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" class="row-fluid">
  35  <div data-region="assignment-info" class="span4">
  36  <a href="{{config.wwwroot}}/course/view.php?id={{courseid}}">{{{coursename}}}</a><br/>
  37  <a href="{{config.wwwroot}}/mod/assign/view.php?id={{cmid}}">{{name}}</a>
  38  {{#caneditsettings}}
  39  <a href="{{config.wwwroot}}/course/modedit.php?update={{cmid}}&return=1">{{#pix}}t/edit, core,{{#str}}editsettings{{/str}}{{/pix}}</a>
  40  {{/caneditsettings}}
  41  <div role="tooltip" id="tooltip-{{uniqid}}" class="accesshide">
  42  {{#duedate}}
  43  {{#str}}duedatecolon, mod_assign, {{duedatestr}}{{/str}}
  44  {{/duedate}}
  45  
  46  {{#cutoffdate}}
  47  <br>{{cutoffdatestr}}
  48  {{/cutoffdate}}
  49  
  50  {{#duedate}}
  51  <br>{{timeremainingstr}}
  52  {{/duedate}}
  53  </div>
  54  {{#duedate}}
  55  <br/><small data-region="assignment-tooltip" aria-describedby="tooltip-{{uniqid}}">{{#str}}duedatecolon, mod_assign, {{duedatestr}}{{/str}}</small>
  56  {{/duedate}}
  57  </span>
  58  </div>
  59  <div data-region="user-info" class="span4" data-assignmentid="{{assignmentid}}" data-groupid="{{groupid}}">
  60      {{> mod_assign/grading_navigation_user_info }}
  61  </div>
  62  <div data-region="user-selector" class="span4">
  63      <div class="alignment">
  64          {{> mod_assign/grading_navigation_user_selector }}
  65      </div>
  66  </div>
  67  </div>
  68  {{#js}}
  69  require(['mod_assign/grading_navigation', 'core/tooltip'], function(GradingNavigation, ToolTip) {
  70      var nav = new GradingNavigation('[data-region="user-selector"]');
  71      var tooltip = new ToolTip('[data-region="assignment-tooltip"]');
  72  });
  73  {{/js}}


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