forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
ba8341b34d
commit
e1e5d71366
|
@ -13,28 +13,34 @@ forms:
|
|||
input_type: text
|
||||
name: "Titel"
|
||||
required: true
|
||||
placeholder: "Untitled Band \"Rocken in Häusern\"-Tour"
|
||||
- title: content
|
||||
input_type: textarea
|
||||
name: "Inhalt"
|
||||
required: true
|
||||
placeholder: "Einfach losschreiben. Der erste Absatz wird die Zusammenfassung in Artikelübersichten. Denke an die Formatierungshilfe hinter dem Link oben."
|
||||
- title: categories
|
||||
input_type: mc
|
||||
name: "Kategorien"
|
||||
expanded: true
|
||||
new: "Neue Kategorien"
|
||||
help: "gerne Plural"
|
||||
placeholder: "Pressemitteilungen"
|
||||
- title: when
|
||||
group: events
|
||||
input_type: text
|
||||
name: "Datum des Events"
|
||||
placeholder: "Jeden Mittwoch von 11:59-12:00Uhr"
|
||||
- title: price
|
||||
group: events
|
||||
input_type: text
|
||||
name: "Preis"
|
||||
placeholder: "3€ oder \"free\""
|
||||
- title: contact
|
||||
group: events
|
||||
input_type: text
|
||||
name: "Kontakt"
|
||||
placeholder: "info@bunteshaus.de"
|
||||
- title: events
|
||||
group: events
|
||||
input_type: mc
|
||||
|
@ -42,10 +48,12 @@ forms:
|
|||
expanded: false
|
||||
new: "Neue Events"
|
||||
help: "gerne Plural"
|
||||
placeholder: "Konzerte"
|
||||
- title: covid
|
||||
group: misc
|
||||
input_type: text
|
||||
name: "Bemerkung zu Covid"
|
||||
placeholder: "Keine Maske mehr!"
|
||||
- title: featured
|
||||
group: misc
|
||||
input_type: checkbox
|
||||
|
@ -64,6 +72,7 @@ forms:
|
|||
name: "Tags"
|
||||
expanded: false
|
||||
new: "Neue Tags"
|
||||
placeholder: "Untitled Band,Tour,"
|
||||
- title: foundations
|
||||
group: misc
|
||||
input_type: mc
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
{{ else if eq .input_type "textarea" }}
|
||||
<div {{ if .group }}class="visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ end }}>
|
||||
<label {{ if $pageform.names }}sr-only{{ end }} for="{{ .title }}">{{- $name -}}{{- if .required -}}{{- " *" -}}{{- end -}}</label>
|
||||
<textarea name="{{ .title }}" id="{{ .title }}" rows="10" {{ if $pageform.names }}placeholder="{{ .name }}{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}></textarea>
|
||||
<textarea name="{{ .title }}" id="{{ .title }}" rows="10" {{ if .placeholder }}placeholder="{{ .placeholder }}"{{ end }}></textarea>
|
||||
</div>
|
||||
{{ else if eq .input_type "radio" }}
|
||||
<div class="radio {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||
|
@ -98,7 +98,7 @@
|
|||
</fieldset>
|
||||
{{ if .new }}
|
||||
<label id="label" for="new{{- .title -}}">{{ .new }} <span class="font_size_smaller">({{- $divide -}}{{- if .help -}}, {{ .help }}{{ end }})</span></label>
|
||||
<input type="text" name="new{{- .title -}}" id="new{{- .title -}}" value="" placeholder="{{ .eg }}" />
|
||||
<input type="text" name="new{{- .title -}}" id="new{{- .title -}}" value="" {{ if .placeholder }}placeholder="{{ .placeholder }}"{{ end }} />
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -142,7 +142,7 @@
|
|||
<div class="margin_top_1rem {{ if .group }} visibleIf stretch margin_left_1rem" data-visibleif-rule=" {{ .group }}group == 'true' {{ end }}">
|
||||
<div class="column">
|
||||
<label class="{{ if $pageform.names }}sr-only{{ end }}" for="{{ .title }}">{{ .name }}{{- if .required -}}{{- " *" -}}{{- end -}}</label>
|
||||
<input type="{{ .input_type }}" name="{{ .title }}" id="{{ .title }}" {{ if $pageform.names }}placeholder="{{ .name }}"{{ end }}>
|
||||
<input type="{{ .input_type }}" name="{{ .title }}" id="{{ .title }}" placeholder="{{ .placeholder }}">
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue