mediawiki-extensions-Popups/resources/settings.mustache
jdlrobson feb0c76381 Render settings via template
This improves readability and separates the HTML from the
JavaScript

Change-Id: Ib765d78890b9aeb05940df00160790b01751a36b
2016-05-30 10:49:17 -07:00

33 lines
1.1 KiB
Plaintext

<section id="mwe-popups-settings" style="display:none;">
<header>
<a class="close">&times;</a>
<h1>{{heading}}</h1>
</header>
<main id="mwe-popups-settings-form">
<p>{{descriptionText}}</p>
<form>
<radiogroup>
{{#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>
{{#image}}<img src="{{image}}">{{/image}}
</p>
{{/choices}}
</radiogroup>
<div class="mwe-popups-settings-actions">
<button type="button" class="mw-ui-button mw-ui-quiet close">{{closeLabel}}</button>
<button type="button" class="save mw-ui-button mw-ui-constructive">{{saveLabel}}</button>
</div>
</form>
</main>
<div id="mwe-popups-settings-help" style="display:none;">
<p>{{helpText}}</p>
<div class="mwe-popups-settings-help-image"></div>
<div class="mwe-popups-settings-actions">
<button type="button" class="okay mw-ui-button mw-ui-constructive">{{okLabel}}</button>
</div>
</section>