xmpp.chapril.org-conversejs/src/templates/form_username.js
JC Brand 7b8b32638c Fixes #3137
- Modernize the `RegisterPanel` component and turn it into a Lit element.
- Improve CSS and move into plugin.
- Fix button click handler not being registered.
- Fix switching between login/register form after logging out (Fixes #1556)
2023-02-16 23:45:59 +01:00

17 lines
582 B
JavaScript

import { html } from "lit";
export default (o) => html`
<div class="form-group">
${ o.label ? html`<label>${o.label}</label>` : '' }
<div class="input-group">
<input name="${o.name}"
class="form-control"
type="${o.type}"
value="${o.value || ''}"
?required="${o.required}" />
<div class="input-group-append">
<div class="input-group-text" title="${o.domain}">${o.domain}</div>
</div>
</div>
</div>`;