diff --git a/theme/boost/templates/core/url_select.mustache b/theme/boost/templates/core/url_select.mustache index 9fe5f79c5a1..8182dc10ad9 100644 --- a/theme/boost/templates/core/url_select.mustache +++ b/theme/boost/templates/core/url_select.mustache @@ -1,30 +1,65 @@ +{{! + @template core/url_select + + Example context (json): + { + "id": "url_select_test", + "action": "https://example.com/post", + "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": + [ + {"name": "Item 1", "isgroup": false, "value": "1"}, + {"name": "Item 2", "isgroup": false, "value": "2"} + ]}, + {"name": "Group 2", "isgroup": true, "options": + [ + {"name": "Item 3", "isgroup": false, "value": "3"}, + {"name": "Item 4", "isgroup": false, "value": "4"} + ]}] + } +}}
-
- {{#label}} - - {{/label}} - {{#helpicon}} - {{>core/help_icon}} - {{/helpicon}} - -
+ {{#label}} + + {{/label}} + {{#helpicon}} + {{>core/help_icon}} + {{/helpicon}} + {{#showbutton}} {{/showbutton}}