xmpp.chapril.org-conversejs/src/templates/chatroom_bookmark_form.html
JC Brand d311e14013 Render MUC forms with Backbone.VDOMView
That way we don't lose the user's input values, we avoid flashing and we
avoid unnecessary rendering.

In the process, fixed an annoying issue where Chrome auto-completes
what it thinks is the username into the "Language Tag" field of the MUC
config form.

Instead we tell Chrome that the MUC JID is the username, thereby also
letting it save the password to to that JID.
2019-04-24 14:51:12 +02:00

22 lines
1.2 KiB
HTML

<div class="chatroom-form-container muc-bookmark-form">
<form class="converse-form chatroom-form">
<legend>{{{o.heading}}}</legend>
<fieldset class="form-group">
<label for="converse_muc_bookmark_name">{{{o.label_name}}}</label>
<input class="form-control" type="text" value="{{{o.name}}}" name="name" required="required" id="converse_muc_bookmark_name"/>
</fieldset>
<fieldset class="form-group">
<label for="converse_muc_bookmark_nick">{{{o.label_nick}}}</label>
<input class="form-control" type="text" name="nick" value="{{{o.default_nick}}}" id="converse_muc_bookmark_nick"/>
</fieldset>
<fieldset class="form-group form-check">
<input class="form-check-input" id="converse_muc_bookmark_autojoin" type="checkbox" name="autojoin"/>
<label class="form-check-label" for="converse_muc_bookmark_autojoin">{{{o.label_autojoin}}}</label>
</fieldset>
<fieldset class="form-group">
<input class="btn btn-primary" type="submit" value="{{{o.label_submit}}}"/>
<input class="btn btn-secondary button-cancel" type="button" value="{{{o.label_cancel}}}"/>
</fieldset>
</form>
</div>