mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-05 02:55:30 +00:00
Abstracted some edit components
This commit is contained in:
14
views/routes/components/_annotation_field.gohtml
Normal file
14
views/routes/components/_annotation_field.gohtml
Normal 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>
|
||||
Reference in New Issue
Block a user