xmpp.chapril.org-conversejs/src/templates/chatroom_bookmark_form.html
JC Brand 8a4aa4efdd Use a named variable for _.template
This removes the need for `switch (obj)` in the template which is not
allowed in strict mode.

Additionally using a named variable speeds up rendering.
2017-11-05 18:59:29 +01:00

18 lines
768 B
HTML

<div class="chatroom-form-container">
<form class="pure-form converse-form chatroom-form">
<fieldset>
<legend>{{{o.heading}}}</legend>
<label>{{{o.label_name}}}</label>
<input type="text" name="name" required="required"/>
<label>{{{o.label_autojoin}}}</label>
<input type="checkbox" name="autojoin"/>
<label>{{{o.label_nick}}}</label>
<input type="text" name="nick" value="{{{o.default_nick}}}"/>
</fieldset>
<fieldset>
<input class="pure-button button-primary" type="submit" value="{{{o.label_submit}}}"/>
<input class="pure-button button-cancel" type="button" value="{{{o.label_cancel}}}"/>
</fieldset>
</form>
</div>