mediawiki-extensions-Popups/resources/ext.popups/templates/settings.mustache
jdlrobson 6fab3c9ca4 Add close button to settings dialog
* Load the close icon (previously was not loaded)
* Take opportunity to simplify selectors in setting panel and remove
unnecessary id selectors
* Correct size of header to be consistent with mediawiki ui icon

Note: there's a slight movement in the heading text's position
presumably due to inconsistiencies between the text
inside the Done/Save buttons

Bug: T154645
Change-Id: Icd978b45051c43f24ee1c9a8574a961b942082f1
2017-02-01 12:06:38 -08:00

30 lines
907 B
Plaintext

<section id="mwe-popups-settings" style="display:none;">
<header>
<div>
<div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-popups-close close">Close</div>
</div>
<h1>{{heading}}</h1>
<div>
<button class="save mw-ui-button mw-ui-progressive">{{saveLabel}}</button>
<button class="okay mw-ui-button mw-ui-progressive" style="display:none;">{{okLabel}}</button>
</div>
</header>
<main id="mwe-popups-settings-form">
<form>
{{#choices}}
<p>
<input name="mwe-popups-setting"
{{#isChecked}}checked{{/isChecked}}
value="{{id}}" type="radio" id="mwe-popups-settings-{{id}}">
<label for="mwe-popups-settings-{{id}}"><span>{{name}}</span>
{{description}}</label>
</p>
{{/choices}}
</form>
</main>
<div class="mwe-popups-settings-help" style="display:none;">
<p>{{helpText}}</p>
<div class="mwe-popups-settings-help-image"></div>
</div>
</section>