2021-04-14 22:56:59 +02:00
|
|
|
import { html } from "lit";
|
2020-12-28 17:48:25 +01:00
|
|
|
|
2021-01-26 14:01:37 +01:00
|
|
|
export default (o) => html`
|
2020-12-28 17:48:25 +01:00
|
|
|
<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>
|
|
|
|
`;
|