From 1e9a102b5884dd4aebdbdd534200dc93cea873f9 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 21 Aug 2017 15:43:17 +0800 Subject: [PATCH] MDL-59696 templates: Remove form-group div for url-select template * Removed the div with the class 'form-group' that's enclosing the select element and friends. It's not needed since the urlselect template is an inline form. * Also, for completeness, I added the helpicon data for the template's context. --- lib/templates/url_select.mustache | 59 ++++++++++++++++++------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/lib/templates/url_select.mustache b/lib/templates/url_select.mustache index b2ace98c24c..09048960ba9 100644 --- a/lib/templates/url_select.mustache +++ b/lib/templates/url_select.mustache @@ -8,6 +8,19 @@ "formid": "url_select_form", "sesskey": "sesskey", "label": "core/url_select", + "helpicon": { + "title": "Help with something", + "text": "Help with something", + "url": "http://example.org/help", + "linktext": "", + "icon":{ + "extraclasses": "iconhelp", + "attributes": [ + {"name": "src", "value": "../../../pix/help.svg"}, + {"name": "alt", "value": "Help icon"} + ] + } + }, "showbutton": "Go", "options": [{ "name": "Group 1", "isgroup": true, "options": @@ -25,30 +38,28 @@
-
- {{#label}} - - {{/label}} - {{#helpicon}} - {{>core/help_icon}} - {{/helpicon}} - -
+ {{#label}} + + {{/label}} + {{#helpicon}} + {{>core/help_icon}} + {{/helpicon}} + {{#showbutton}} {{/showbutton}}