A corporation manager and dashboard for EVE Online
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin_helper.rb 423 B

123456789101112131415161718
  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