AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template mod_questionnaire/previewpageTemplate which defines a questionnaire view page.Classes required for JS:* noneData attributes required for JS:* noneContext variables required for this template:* tabsarea - string: HTML of the tabs management area.* heading - string: HTML of the page heading.* formstart - string: Form start HTML.* notifications - string: HTML of any notifications loaded.* title - string: Text title of the questionnaire.* printblank - string: HTML of optional print blank questionnaire control.* subtitle - string: Optional text subtitle.* addinfo - string: Optional HTML additional information.* message - string: Any message HTML text.* questions - array: Array of questions HTML.* formend - string: Form end HTML.* closebutton - string: Close button HTML.Example context (json):{"tabsarea": "<div>HTML of the tabs area</div>","heading": "HTML of the page heading","formstart": "<form id=\"formid\" method=\"post\" action=\"index.php\">","notifications": "<div>Notification one</div>","title": "Test Questionnaire","printblank": "<div>HTML of the print blank control.</div>","subtitle": "This is a subtitle","addinfo": "<div>This is additional information.</div>","message": "<div>This is a message.</div>","questions": ["<div>Question 1 HTML</div>","<div>Question 2 HTML</div>"],"formend": "</form>","closebutton": "<div>close button HTML</div>"}}}<div class="mod_questionnaire_previewpage">{{{tabsarea}}}<h2>{{{heading}}}</h2>{{{formstart}}}{{#notifications}}{{{.}}}{{/notifications}}<div class="box generalbox"><h3 class="surveyTitle">{{{title}}}</h3>{{{printblank}}}{{#subtitle}}<h4 class="surveySubTitle">{{.}}</h4>{{/subtitle}}{{#addinfo}}<div class="addInfo">{{{.}}}</div>{{/addinfo}}{{#message}}{{{.}}}{{/message}}{{#questions}}{{{.}}}{{/questions}}</div>{{{formend}}}</div>{{#closebutton}}{{{.}}}{{/closebutton}}