optimize admin layout

This commit is contained in:
L3D 2021-12-12 23:29:59 +01:00
parent 0a2fc20948
commit 7c5471b79e
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 34 additions and 14 deletions

View file

@ -15,22 +15,27 @@ type = integer
width = 1/2 width = 1/2
[fields.amounts] [fields.amounts]
label = Wie viel von der Zutat wird verwendet? label = Wie viel von der Zutat wird verwendet? (required)
description = MUSS für jede der angegebenen Portionsmengen definiert werden description = muss für jede Portionsgröße angegeben werden, Reinfolge muss identisch sein in der die Portionsgrößen (servings) angegeben sind. Wenn eine Zutat die Menge '0' hat, wird sie für die angegebene Portionsgröße nicht gerendert.
type = flow type = flow
flow_blocks = flow_amounts flow_blocks = flow_amounts
width = 3/5
[fields.substitutions]
label = Alternative Zutat (optional)
description = Wenn man zum Beispiel statt Club-Mate auch Sprudel nehmen kann...
type = flow
flow_blocks = flow_substitutions
width = 2/5
[fields.processing] [fields.processing]
label = Verarbeitung label = Verarbeitung
description = Wie wird die Zutat verarbeitet? (Beispiel: Butter schmelzen oder Eier vor dem auftrennen waschen)
type = flow type = flow
flow_blocks = flow_processing flow_blocks = flow_processing
[fields.notes] [fields.notes]
description = Was man sonst noch so zur Zutat sagen sollte
label = Notizen zur Zutat label = Notizen zur Zutat
type = flow type = flow
flow_blocks = flow_notes flow_blocks = flow_notes
[fields.substitutions]
label = Alternative Zutat
type = flow
flow_blocks = flow_substitutions

View file

@ -7,10 +7,13 @@ label = serving number
description = Für wie viele Portionen sind die Zutaten definiert description = Für wie viele Portionen sind die Zutaten definiert
type = integer type = integer
default = 1 default = 1
addon_label = Stück
width = 2/5 width = 2/5
[fields.serving_units] [fields.serving_units]
label = serving Units label = serving Units
description = Was ergibt das Rezept? description = Was ergibt das Rezept?'
type = string type = string
default = Waffeln
addon_label = '(bezeichnung des Gebäcks)'
width = 3/5 width = 3/5

View file

@ -4,35 +4,43 @@ label = {{ this.title }}
hidden = yes hidden = yes
[fields.title] [fields.title]
label = Title label = Rezept Title
description = Für welches Rezept sind die Zutaten description = Für welches Rezept sind die Zutaten
size = large
type = string type = string
size = large size = large
[fields.x_ignore_1] [fields.x_ignore_1]
label = First Instruction: label = Instructions: First step
description = Reneame this fresh created directory in the content folder to 'rezept.yaml/' description = Reneame this fresh created directory in the content folder to 'rezept.yaml/' to store the new recipt in the required rezept.yaml format
type = boolean type = boolean
width = 1/2 width = 1/2
[fields.x_ignore_2] [fields.x_ignore_2]
label = Secound Instruction: label = Instructions: Secound Step
description = Fill in the option '_template: zutaten.yaml' in the 'rezept.yaml/contents.lr' Lektor File description = Please fill in the option '_template: zutaten.yaml' manually in the 'rezept.yaml/contents.lr' Lektor File, so it will rendered correctly
type = string type = string
addon_label = (this entry is only for information)
default = zutaten.yaml default = zutaten.yaml
width = 1/2 width = 1/2
;--------------------------- ;---------------------------
[fields.recipe_name] [fields.recipe_name]
size = large
label = recipe name label = recipe name
description = what kind of pastry will be created?
type = string type = string
width = 1/3
[fields.servings] [fields.servings]
label = servings label = servings
description = Hier wird definiert, für welche Portionsgröße die Zutaten angegeben werden description = Hier werden alle Portionsgrößen definiert, für die dieses Rezept sein soll. (mindestens eine Mengenangabe ist sinvoll). Achtung, bei mehr wie eine Größenangabe muss die Reinfolge überall gleich sein!
type = flow type = flow
flow_blocks = flow_servings flow_blocks = flow_servings
width = 2/3
;------------------------------------------
[fields.ingredients] [fields.ingredients]
label = ingredients label = ingredients
@ -40,6 +48,8 @@ description = Hier werden die Zutaten und Menge definiert
type = flow type = flow
flow_blocks = flow_ingredients flow_blocks = flow_ingredients
;-----------------------
[fields.steps] [fields.steps]
label = Steps label = Steps
type = flow type = flow
@ -48,12 +58,14 @@ flow_blocks = flow_steps
[fields.oven_type] [fields.oven_type]
label = oven type label = oven type
type = string type = string
width = 1/2
description = Example: conventional, microwave, waffle iron, wood oven... description = Example: conventional, microwave, waffle iron, wood oven...
[fields.oven] [fields.oven]
label = Oven temperature label = Oven temperature
description = Starting oven temperature, if the oven is used. description = Starting oven temperature, if the oven is used.
type = flow type = flow
width = 1/2
flow_blocks = flow_oven flow_blocks = flow_oven
[fields.oven_time] [fields.oven_time]