xmpp.chapril.org-conversejs/src/templates/form_captcha.js
2021-02-09 15:48:21 +01:00

10 lines
299 B
JavaScript

import { html } from "lit-html";
export default (o) => html`
<fieldset class="form-group">
${o.label ? html`<label>${o.label}</label>` : '' }
<img src="data:${o.type};base64,${o.data}">
<input name="${o.name}" type="text" ?required="${o.required}" />
</fieldset>
`;