|
@@ -72,6 +72,10 @@ function tplPasswordInput() {
|
|
`;
|
|
`;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function tplDomain(domain) {
|
|
|
|
+ return html` <span class="input-group-text addon" id="basic-addon2">@${domain}</span> `;
|
|
|
|
+}
|
|
|
|
+
|
|
function tplAuthFields() {
|
|
function tplAuthFields() {
|
|
const authentication = api.settings.get('authentication');
|
|
const authentication = api.settings.get('authentication');
|
|
const i18n_login = __('Log in');
|
|
const i18n_login = __('Log in');
|
|
@@ -84,17 +88,20 @@ function tplAuthFields() {
|
|
return html`
|
|
return html`
|
|
<div class="mb-3">
|
|
<div class="mb-3">
|
|
<label for="converse-login-jid" class="form-label">${i18n_xmpp_address}:</label>
|
|
<label for="converse-login-jid" class="form-label">${i18n_xmpp_address}:</label>
|
|
- <input
|
|
|
|
- id="converse-login-jid"
|
|
|
|
- ?autofocus=${api.settings.get('auto_focus') ? true : false}
|
|
|
|
- value="${api.settings.get('jid') ?? ''}"
|
|
|
|
- required
|
|
|
|
- class="form-control"
|
|
|
|
- type="text"
|
|
|
|
- name="jid"
|
|
|
|
- placeholder="${placeholder_username}"
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <input
|
|
|
|
+ id="converse-login-jid"
|
|
|
|
+ ?autofocus=${api.settings.get('auto_focus') ? true : false}
|
|
|
|
+ value="${api.settings.get('jid') ?? ''}"
|
|
|
|
+ required
|
|
|
|
+ class="form-control"
|
|
|
|
+ type="text"
|
|
|
|
+ name="jid"
|
|
|
|
+ placeholder="${placeholder_username}"
|
|
|
|
+ />
|
|
|
|
+ ${locked_domain ? tplDomain(locked_domain) : ''}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
${authentication !== EXTERNAL ? tplPasswordInput() : ''}
|
|
${authentication !== EXTERNAL ? tplPasswordInput() : ''}
|
|
${api.settings.get('show_connection_url_input') ? tplConnectionURLInput() : ''}
|
|
${api.settings.get('show_connection_url_input') ? tplConnectionURLInput() : ''}
|
|
${show_trust_checkbox ? tplTrustCheckbox(show_trust_checkbox === 'off' ? false : true) : ''}
|
|
${show_trust_checkbox ? tplTrustCheckbox(show_trust_checkbox === 'off' ? false : true) : ''}
|