[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/grading/form/guide/templates/ -> comment_chooser.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 gradingform_guide/comment_chooser
  19  
  20      Moodle comment chooser template for marking guide.
  21  
  22      The purpose of this template is to render a list of frequently used comments that can be used by the comment chooser dialog.
  23  
  24      Classes required for JS:
  25      * none
  26  
  27      Data attributes required for JS:
  28      * none
  29  
  30      Context variables required for this template:
  31      * criterionId The criterion ID this chooser template is being generated for.
  32      * comments Array of id / description pairs.
  33  
  34      Example context (json):
  35      {
  36          "criterionId": "1",
  37          "comments": [
  38              {
  39                  "id": "1",
  40                  "description": "Test comment description 1"
  41              },
  42              {
  43                  "id": "2",
  44                  "description": "Test comment description 2"
  45              }
  46          ]
  47      }
  48  }}
  49  <div class="gradingform_guide_comment_chooser" id="comment_chooser">
  50      <ul role="list">
  51          {{#comments}}
  52              <li role="listitem">
  53                  <button id="comment-option-{{criterionId}}-{{id}}" class="btn btn-link" tabindex="0">
  54                      {{description}}
  55                  </button>
  56              </li>
  57          {{/comments}}
  58      </ul>
  59  </div>


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