From 9ecda4c451d51c11f14240b729ec36fffc826fbf Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 6 Apr 2022 19:06:41 +0200 Subject: [PATCH] small fixes --- content/misc/generator.de.md | 12 ++++---- themes/buha/assets/css/layout.css | 3 ++ themes/buha/i18n/de.toml | 6 ++++ themes/buha/layouts/partials/form.html | 28 +++++++++---------- themes/buha/layouts/partials/misc/expand.html | 4 +-- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/content/misc/generator.de.md b/content/misc/generator.de.md index cbb6ad3..2c6b9f5 100644 --- a/content/misc/generator.de.md +++ b/content/misc/generator.de.md @@ -19,24 +19,25 @@ forms: - name: categories input_type: mc placeholder: Kategorien + expanded: true new: true - collapsed: true - name: when - group: event + group: events input_type: text placeholder: Datum des Events - name: price - group: event + group: events input_type: text placeholder: Preis - name: contact - group: event + group: events input_type: text placeholder: Kontakt - name: events - group: event + group: events input_type: mc placeholder: Eventkategorien + expanded: false new: true - name: featured group: misc @@ -52,6 +53,7 @@ forms: group: misc input_type: mc placeholder: Tags + expanded: false new: true - name: results input_type: results diff --git a/themes/buha/assets/css/layout.css b/themes/buha/assets/css/layout.css index 988fda9..5dd16bf 100644 --- a/themes/buha/assets/css/layout.css +++ b/themes/buha/assets/css/layout.css @@ -221,6 +221,9 @@ input, textarea { margin-top: 1rem; } +.lightborder { +} + /* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {...} diff --git a/themes/buha/i18n/de.toml b/themes/buha/i18n/de.toml index 66be044..1da8d42 100644 --- a/themes/buha/i18n/de.toml +++ b/themes/buha/i18n/de.toml @@ -4,6 +4,9 @@ other = "News" [events] other = "Termine" +[event] +other = "Termin" + [contact] other = "Kontakt" @@ -70,6 +73,9 @@ other = "KurdĂ®" [or] other = "oder" +[misc] +other = "Verschiedenes" + [all] other = "Alle" diff --git a/themes/buha/layouts/partials/form.html b/themes/buha/layouts/partials/form.html index b805af7..118915a 100644 --- a/themes/buha/layouts/partials/form.html +++ b/themes/buha/layouts/partials/form.html @@ -11,7 +11,7 @@ {{ if and .group (not (in $group .group))}}
- {{ .group }} + {{ if i18n (singularize .group) }}{{ i18n (singularize .group) }}{{ else }}{{ .group }}{{ end }} {{ partial "misc/expand" (dict "name" (printf "%sgroup" .group)) }}
{{ $group = $group | append .group }} @@ -26,17 +26,17 @@ {{ else if eq .input_type "radio" }} -
+
{{ else if eq .input_type "checkbox" }} -
- +
+
{{ else if eq .input_type "results" }} {{ else if eq .input_type "submit" }} -
+
@@ -70,16 +70,16 @@
{{ .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 }}
-
+
-
-
+
+
{{ range sort $finale }} {{ end }} @@ -104,11 +104,11 @@ {{ else }} {{ if eq .name "name" }} -
+
-
+
@@ -117,17 +117,17 @@
-
+
-
+
{{ else }} -
+
diff --git a/themes/buha/layouts/partials/misc/expand.html b/themes/buha/layouts/partials/misc/expand.html index 3849662..7929c0a 100644 --- a/themes/buha/layouts/partials/misc/expand.html +++ b/themes/buha/layouts/partials/misc/expand.html @@ -1,3 +1,3 @@ - - + +