feat: set alts_enabled for model

This commit is contained in:
relikd
2022-12-22 01:02:00 +01:00
parent 29d61ca8ad
commit a6926958aa
3 changed files with 16 additions and 6 deletions

View File

@@ -19,12 +19,14 @@ type = string
label = Grouping Attribute label = Grouping Attribute
width = 1/3 width = 1/3
type = string type = string
alts_enabled = false
[fields.sort_key] [fields.sort_key]
label = Sort order label = Sort order
width = 1/5 width = 1/5
default = 0 default = 0
type = sort_key type = sort_key
alts_enabled = false
[fields.null_fallback] [fields.null_fallback]
label = Null Fallback label = Null Fallback
@@ -36,6 +38,7 @@ default = ???
label = Reverse Sort label = Reverse Sort
width = 1/5 width = 1/5
type = boolean type = boolean
alts_enabled = false
[fields.xdata] [fields.xdata]
label = Extended Data label = Extended Data

View File

@@ -16,6 +16,7 @@ size = large
label = Date / Datum label = Date / Datum
width = 1/3 width = 1/3
type = date type = date
alts_enabled = false
size = large size = large
[fields.time] [fields.time]
@@ -23,6 +24,7 @@ label = Time / Zeit
width = 1/8 width = 1/8
type = integer type = integer
addon_label = min addon_label = min
alts_enabled = false
[fields.difficulty] [fields.difficulty]
label = Difficulty label = Difficulty
@@ -30,6 +32,7 @@ width = 1/8
type = select type = select
choices = easy, medium, hard choices = easy, medium, hard
choice_labels = Easy, Medium, Hard choice_labels = Easy, Medium, Hard
alts_enabled = false
[fields.rating] [fields.rating]
label = Rating label = Rating
@@ -37,6 +40,7 @@ width = 1/8
type = select type = select
choices = 1, 2, 3 choices = 1, 2, 3
choice_labels = ★☆☆, ★★☆, ★★★ choice_labels = ★☆☆, ★★☆, ★★★
alts_enabled = false
[fields.yield] [fields.yield]
label = Yield / Menge label = Yield / Menge
@@ -54,6 +58,7 @@ label = Tags / Kategorie
width = 1/3 width = 1/3
type = checkboxes type = checkboxes
source = site.query('/tags', alt) source = site.query('/tags', alt)
alts_enabled = false
[fields.directions] [fields.directions]
label = Directions / Zubereitung label = Directions / Zubereitung

View File

@@ -13,16 +13,18 @@ enabled = no
[fields.measures] [fields.measures]
label = Measures label = Measures
description = Space separated list description = Space separated list
width = 3/5
type = text type = text
default = kg g L dl cl ml oz lb pt qt cm tsp tbsp c cup cups pkg pck default = kg g L dl cl ml oz lb pt qt cm tsp tbsp c cup cups pkg pck
alts_enabled = true
[fields.replace_frac]
label = Replace 1/2 with ½, ⅔, et.c
width = 1/5
type = boolean
[fields.replace_temp] [fields.replace_temp]
label = Replace °C/°F with ℃/℉ label = Replace °C/°F with ℃/℉
width = 1/5 width = 1/5
type = boolean type = boolean
alts_enabled = false
[fields.replace_frac]
label = Replace 1/2 with ½, ⅔, etc.
width = 1/5
type = boolean
alts_enabled = false