9ea8653ef7
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
import { html } from "lit";
|
|
import { __ } from 'i18n';
|
|
|
|
|
|
export default (o) => {
|
|
const i18n_heading = __('This groupchat requires a password');
|
|
const i18n_password = __('Password: ');
|
|
const i18n_submit = __('Submit');
|
|
return html`
|
|
<form class="converse-form chatroom-form converse-centered-form" @submit=${o.submitPassword}>
|
|
<fieldset class="form-group">
|
|
<label>${i18n_heading}</label>
|
|
<p class="validation-message">${o.validation_message}</p>
|
|
<input class="hidden-username" type="text" autocomplete="username" value="${o.jid}"></input>
|
|
<input type="password"
|
|
name="password"
|
|
required="required"
|
|
class="form-control ${o.validation_message ? 'error': ''}"
|
|
placeholder="${i18n_password}"/>
|
|
</fieldset>
|
|
<fieldset class="form-group">
|
|
<input class="btn btn-primary" type="submit" value="${i18n_submit}"/>
|
|
</fieldset>
|
|
</form>
|
|
`;
|
|
}
|