Files
musenalm/views/routes/components/_annotation_field.gohtml
2026-01-10 13:40:09 +01:00

15 lines
440 B
Plaintext

{{- $annotation := index . 0 -}}
{{- $label := "Annotation" -}}
{{- if gt (len .) 1 -}}
{{- if index . 1 -}}
{{- $label = index . 1 -}}
{{- end -}}
{{- end -}}
<div class="inputwrapper">
<div class="inputlabelrow">
<label for="annotation" class="inputlabel">{{ $label }}</label>
</div>
<textarea name="annotation" id="annotation" class="inputinput" placeholder="" autocomplete="off" rows="2">{{- $annotation -}}</textarea>
</div>