{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the 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 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template core_question/column_header Displays the header cell for a column in the question bank. Context variables required for this template: * extraclasses: CSS classes to add to the th. E.g. "questionstatus pr-3". * help: (optional, may be omitted) help icon. The structure here needs to be as from help_icon::export_for_template(). Other fields vary, depending on whether the column is sortable. Column with plain title, not sortable: * sortable: false * tiptitle: Column name (e.g. "Status") * sorttip: (optional) must be true if tip is present. * tip: (optional) a tool tip to show, if the title needs explanation. E.g. "Select questions for bulk actions". Sortable column, with a single type of sort (e.g. question type) * sortable: true * sortlinks: HTML of the title, in a link to sort by this. E.g. "\n T<\/i>\n<\/a>" Sortable column, with an overall title, and multiple sort types (e.g. question name/idnumber) * sortable: true * title: "Question" * sortlinks: Several sort links concatenated. E.g. "\n Question name\n<\/a> \/ \n ID number\n<\/a>" Example context (json): { "sortable": false, "extraclasses": "checkbox pr-1", "tiptitle": "