mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
9 lines
349 B
Plaintext
9 lines
349 B
Plaintext
%fieldset.no-border-bottom
|
|
%legend{align: "center"}= name
|
|
- preferences.each do |key|
|
|
- type = ContentConfig.preference_type(key)
|
|
.field
|
|
= label_tag(key, t(key) + ': ') + tag(:br) if type != :boolean
|
|
= preference_field_tag(key, ContentConfig[key], :type => type)
|
|
= label_tag(key, t(key)) + tag(:br) if type == :boolean
|