UX: Allow site settings to display as textareas if they like

This commit is contained in:
Robin Ward
2017-07-17 16:38:26 -04:00
parent cdb3706025
commit 29d529020b
3 changed files with 13 additions and 3 deletions

View File

@ -195,6 +195,8 @@ module SiteSettingExtension
opts.merge!({valid_values: choices[s].map{|c| {name: c, value: c}}, translate_names: false})
end
opts[:textarea] = true if static_types[s] == :textarea
opts[:choices] = choices[s] if choices.has_key? s
opts
end