forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
81fe45bd1b
commit
9ecda4c451
|
@ -19,24 +19,25 @@ forms:
|
||||||
- name: categories
|
- name: categories
|
||||||
input_type: mc
|
input_type: mc
|
||||||
placeholder: Kategorien
|
placeholder: Kategorien
|
||||||
|
expanded: true
|
||||||
new: true
|
new: true
|
||||||
collapsed: true
|
|
||||||
- name: when
|
- name: when
|
||||||
group: event
|
group: events
|
||||||
input_type: text
|
input_type: text
|
||||||
placeholder: Datum des Events
|
placeholder: Datum des Events
|
||||||
- name: price
|
- name: price
|
||||||
group: event
|
group: events
|
||||||
input_type: text
|
input_type: text
|
||||||
placeholder: Preis
|
placeholder: Preis
|
||||||
- name: contact
|
- name: contact
|
||||||
group: event
|
group: events
|
||||||
input_type: text
|
input_type: text
|
||||||
placeholder: Kontakt
|
placeholder: Kontakt
|
||||||
- name: events
|
- name: events
|
||||||
group: event
|
group: events
|
||||||
input_type: mc
|
input_type: mc
|
||||||
placeholder: Eventkategorien
|
placeholder: Eventkategorien
|
||||||
|
expanded: false
|
||||||
new: true
|
new: true
|
||||||
- name: featured
|
- name: featured
|
||||||
group: misc
|
group: misc
|
||||||
|
@ -52,6 +53,7 @@ forms:
|
||||||
group: misc
|
group: misc
|
||||||
input_type: mc
|
input_type: mc
|
||||||
placeholder: Tags
|
placeholder: Tags
|
||||||
|
expanded: false
|
||||||
new: true
|
new: true
|
||||||
- name: results
|
- name: results
|
||||||
input_type: results
|
input_type: results
|
||||||
|
|
|
@ -221,6 +221,9 @@ input, textarea {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lightborder {
|
||||||
|
}
|
||||||
|
|
||||||
/* Extra small devices (phones, 600px and down) */
|
/* Extra small devices (phones, 600px and down) */
|
||||||
@media only screen and (max-width: 600px) {...}
|
@media only screen and (max-width: 600px) {...}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,9 @@ other = "News"
|
||||||
[events]
|
[events]
|
||||||
other = "Termine"
|
other = "Termine"
|
||||||
|
|
||||||
|
[event]
|
||||||
|
other = "Termin"
|
||||||
|
|
||||||
[contact]
|
[contact]
|
||||||
other = "Kontakt"
|
other = "Kontakt"
|
||||||
|
|
||||||
|
@ -70,6 +73,9 @@ other = "Kurdî"
|
||||||
[or]
|
[or]
|
||||||
other = "oder"
|
other = "oder"
|
||||||
|
|
||||||
|
[misc]
|
||||||
|
other = "Verschiedenes"
|
||||||
|
|
||||||
[all]
|
[all]
|
||||||
other = "Alle"
|
other = "Alle"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
{{ if and .group (not (in $group .group))}}
|
{{ if and .group (not (in $group .group))}}
|
||||||
<div class="margin_top_1rem">
|
<div class="margin_top_1rem">
|
||||||
{{ .group }}
|
{{ if i18n (singularize .group) }}{{ i18n (singularize .group) }}{{ else }}{{ .group }}{{ end }}
|
||||||
{{ partial "misc/expand" (dict "name" (printf "%sgroup" .group)) }}
|
{{ partial "misc/expand" (dict "name" (printf "%sgroup" .group)) }}
|
||||||
</div>
|
</div>
|
||||||
{{ $group = $group | append .group }}
|
{{ $group = $group | append .group }}
|
||||||
|
@ -26,17 +26,17 @@
|
||||||
<textarea name="{{ .name }}" id="{{ .name }}" rows="10" {{ if $pageform.placeholders }}placeholder="{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}></textarea>
|
<textarea name="{{ .name }}" id="{{ .name }}" rows="10" {{ if $pageform.placeholders }}placeholder="{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}></textarea>
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq .input_type "radio" }}
|
{{ else if eq .input_type "radio" }}
|
||||||
<div class="radio {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="radio {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<label><input type="radio" name="{{ .name }}" id="{{ .name }}" value="{{ .placeholder }}" {{ .Scratch.Get "requiredtext" }}>{{ .placeholder }}</label>
|
<label><input type="radio" name="{{ .name }}" id="{{ .name }}" value="{{ .placeholder }}" {{ .Scratch.Get "requiredtext" }}>{{ .placeholder }}</label>
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq .input_type "checkbox" }}
|
{{ else if eq .input_type "checkbox" }}
|
||||||
<div class="checkbox {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="checkbox {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<label><input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="{{ .placeholder }}" {{ .Scratch.Get "requiredtext" }}>{{ .placeholder }}</label>
|
<label><input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="{{ .placeholder }}" {{ .Scratch.Get "requiredtext" }}>{{ if i18n .placeholder }}{{ i18n .placeholder }}{{ else }}{{ .placeholder }}{{ end }}</label>
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq .input_type "results" }}
|
{{ else if eq .input_type "results" }}
|
||||||
<div id='display' class="result" style="white-space: pre; display: none; background: var(--background-body); padding: .6rem 0 1rem 1rem;"></div>
|
<div id='display' class="result" style="white-space: pre; display: none; background: var(--background-body); padding: .6rem 0 1rem 1rem;"></div>
|
||||||
{{ else if eq .input_type "submit" }}
|
{{ else if eq .input_type "submit" }}
|
||||||
<div class="margin_top_1rem {{ if .group }}visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="margin_top_1rem {{ if .group }}visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<input type="{{ .input_type }}" value="{{ i18n "generate" }}" onclick="showInput(event);" />
|
<input type="{{ .input_type }}" value="{{ i18n "generate" }}" onclick="showInput(event);" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -70,16 +70,16 @@
|
||||||
<div class="margin_top_1rem {{- if .group }} visibleIf" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }} style="flex-direction: column;">
|
<div class="margin_top_1rem {{- if .group }} visibleIf" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }} style="flex-direction: column;">
|
||||||
<div class="{{- if .group }}margin_left_1rem{{ end }}">
|
<div class="{{- if .group }}margin_left_1rem{{ end }}">
|
||||||
{{ .placeholder }}
|
{{ .placeholder }}
|
||||||
{{ if ne .collapsed false }}{{ partial "misc/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}
|
{{ if ne .expanded true }}{{ partial "misc/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="visibleIf checkbox" data-visibleif-rule="{{ $in0 }}cat == 'true'">
|
<div class="checkbox {{ if ne .expanded true }}visibleIf" data-visibleif-rule="{{ $in0 }}cat == 'true'{{end}}">
|
||||||
|
|
||||||
|
|
||||||
<div class="{{- if .group }}margin_left_1rem{{ end }} minmax" style="display: flex; flex-direction: column;">
|
<div class="{{- if .group }} margin_left_1rem{{ end }} minmax" style="display: flex; flex-direction: column;">
|
||||||
<fieldset id="{{ $in0 }}" name="{{ $in0 }}" style="display: flex; flex-direction: row; padding: 0; border: none;">
|
<fieldset id="{{ $in0 }}" name="{{ $in0 }}" style="display: flex; flex-direction: row; padding: 0; border: none; margin: 0 0 .3rem .5rem;">
|
||||||
{{ range sort $finale }}
|
{{ range sort $finale }}
|
||||||
<input type="checkbox" name="{{ $in0 }}" id="{{ $in0 }}-cat" value="{{ . }}"><label for="{{ $in0 }}-cat">{{ . }}</label>
|
<input type="checkbox" name="{{ $in0 }}" id="{{ $in0 }}-cat" value="{{ . }}"><label for="{{ $in0 }}-cat">{{ . }}</label>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -104,11 +104,11 @@
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if eq .name "name" }}
|
{{ if eq .name "name" }}
|
||||||
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="firstname">First name{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="firstname">First name{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="text" name="firstname" id="firstname" {{ if $pageform.placeholders }}placeholder="First name{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="text" name="firstname" id="firstname" {{ if $pageform.placeholders }}placeholder="First name{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
</div>
|
</div>
|
||||||
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="lastname">Last name{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="lastname">Last name{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="text" name="lastname" id="lastname" {{ if $pageform.placeholders }}placeholder="Last name{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="text" name="lastname" id="lastname" {{ if $pageform.placeholders }}placeholder="Last name{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
</div>
|
</div>
|
||||||
|
@ -117,17 +117,17 @@
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="address">Address{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="address">Address{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="text" name="address" id="address" {{ if $pageform.placeholders }}placeholder="Address{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="text" name="address" id="address" {{ if $pageform.placeholders }}placeholder="Address{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
</div>
|
</div>
|
||||||
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true{{ end }}">
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="city">City{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="city">City{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="text" name="city" id="city" {{ if $pageform.placeholders }}placeholder="City{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="text" name="city" id="city" {{ if $pageform.placeholders }}placeholder="City{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }}>
|
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="postalcode">Postal code{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="postalcode">Postal code{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="text" name="postalcode" id="postalcode" {{ if $pageform.placeholders }}placeholder="Postal code{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="text" name="postalcode" id="postalcode" {{ if $pageform.placeholders }}placeholder="Postal code{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="margin_top_1rem {{ if .group }} visibleIf margin_left_1rem" data-visibleif-rule=" {{ .group }}group == 'true'"{{ else }}" {{ end }} class="minmax">
|
<div class="margin_top_1rem {{ if .group }} visibleIf margin_left_1rem" data-visibleif-rule=" {{ .group }}group == 'true' {{ end }}" class="minmax">
|
||||||
<div class="minmax" style="display: flex; flex-direction: column;">
|
<div class="minmax" style="display: flex; flex-direction: column;">
|
||||||
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="{{ .name }}">{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}</label>
|
<label class="{{ if $pageform.placeholders }}sr-only{{ end }}" for="{{ .name }}">{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}</label>
|
||||||
<input type="{{ .input_type }}" name="{{ .name }}" id="{{ .name }}" {{ if $pageform.placeholders }}placeholder="{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
<input type="{{ .input_type }}" name="{{ .name }}" id="{{ .name }}" {{ if $pageform.placeholders }}placeholder="{{ .placeholder }}{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
|
|
||||||
<input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="true" style="font-size: smaller;" />
|
<input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="true" style="font-size: smaller; margin-right: 0;" >
|
||||||
<label for="{{ .name }}" style="font-size: smaller;"> {{ if i18n "expand" }}{{ i18n "expand" }}{{ else }}{{ "expand" }}{{ end }}</label>
|
<label for="{{ .name }}" style="font-size: smaller; margin: 0;"> {{ if i18n "expand" }}{{ i18n "expand" }}{{ else }}{{ "expand" }}{{ end }}</label>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user