hugo-theme-cyberscopes/layouts/shortcodes/hx/data-field-line.html

8 lines
319 B
HTML

{{- $type := .Get "type" | default "text" -}}
{{- $name := .Get "name" | default "textline" -}}
{{- $label := .Get "label" | default $name -}}
<div>
<label class="form-label">{{- $label -}}</label>
<input type="{{ $type }}" name="{{ $name }}" class="form-control"
{{- with .Get "attrs" }} {{ . }}{{ end }}>
</div>