initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<fieldset class="fieldset" id="{{ .ID }}">
|
||||
<legend class="fieldset-legend">{{ .Legend }}</legend>
|
||||
<input
|
||||
type="{{ .Type }}"
|
||||
class="input {{ .InputClass }}"
|
||||
placeholder="{{ .Placeholder }}"
|
||||
name="{{ .Name }}"
|
||||
value="{{ .Value }}"
|
||||
hx-post="{{ .Endpoint }}"
|
||||
hx-trigger="{{ .Trigger }}"
|
||||
hx-target="#{{ .ID }}"
|
||||
hx-swap="outerHTML"
|
||||
x-data
|
||||
@input="$el.classList.remove('input-error', 'text-error'); $el.nextElementSibling.textContent = ''"
|
||||
|
||||
/>
|
||||
<p class="label min-h-[1.2rem] {{ .InputClass }}">
|
||||
{{ .Hint }}
|
||||
</p>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user