mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
13 lines
510 B
Plaintext
13 lines
510 B
Plaintext
%fieldset.no-border-bottom
|
|
%legend{align: "center"}= name
|
|
- preferences.each do |key|
|
|
- type = ContentConfig.preference_type(key)
|
|
- if name == t('admin.contents.edit.main_links') && type == :boolean
|
|
- text = t("#{key}_title") + " - " + t("#{key}_url")
|
|
- else
|
|
- text = t(key)
|
|
.field
|
|
= label_tag(key, text + ': ') + tag(:br) if type != :boolean
|
|
= preference_field_tag(key, ContentConfig[key], :type => type)
|
|
= label_tag(key, text) + tag(:br) if type == :boolean
|