A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 line
423 B

  1. module AdminHelper
  2. def setting_tag(setting)
  3. key = "settings[#{setting[:key]}]"
  4. value = AdminSetting.get(setting[:key])
  5. case setting[:type]
  6. when :string
  7. text_field_tag(key, value, size: '40')
  8. when :integer
  9. text_field_tag(key, value, size: '10')
  10. when :markup
  11. text_area_tag(key, value, size: '60x5')
  12. when :boolean
  13. check_box_tag(key, '1', value == 't')
  14. end
  15. end
  16. end