7b8b32638c
- 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)
17 lines
582 B
JavaScript
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>`;
|