Abstracted some edit components

This commit is contained in:
Simon Martens
2026-01-10 13:40:09 +01:00
parent 86fb5f70b9
commit b8c1dec24f
8 changed files with 185 additions and 308 deletions

View File

@@ -0,0 +1,14 @@
{{- $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>