[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/lp/templates/ -> action_selector.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      Select an action to execute.
  19  
  20      Classes required for JS:
  21      * none
  22  
  23      Data attibutes required for JS:
  24      * none
  25  
  26      Context variables required for this template:
  27      * message - The message to explain why we ask user to select an action
  28      * choices - List of possible actions
  29      * confirm - Text for button confirms
  30      * cancel -  Text for button cancel
  31   }}
  32  <div data-region="action-selector">
  33      <div data-region="action-selector-message">
  34         {{message}}<br>
  35      </div><br>
  36      <div data-region="action-selector-radio-buttons">
  37         {{#choices}}
  38          <input id="action-selection-option-{{value}}" type="radio" name="choice" value="{{value}}"/><label for="action-selection-option-{{value}}">{{text}}</label><br>
  39         {{/choices}}
  40      </div><br>
  41      <div data-region="action_selector-buttons">
  42         <input type="button" data-action="action-selector-confirm" value="{{confirm}}"/>
  43         <input type="button" data-action="action-selector-cancel" value="{{cancel}}"/>
  44      </div>
  45  </div>


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