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.
 
 
 
 
 

22 lines
614 B

  1. <% provide(:title, 'Admin') %>
  2. <h1>Admin#index</h1>
  3. <%= form_tag do %>
  4. <table>
  5. <% AdminHelper::SETTINGS.each do |s| %>
  6. <tr>
  7. <td><%= label_tag("settings[#{s[:key]}]", s[:label]) %></td>
  8. <% if s[:textarea] %>
  9. <td><%= text_area_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: "60x5") %></td>
  10. <% else %>
  11. <td><%= text_field_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: s[:size] || 40) %></td>
  12. <% end %>
  13. </tr>
  14. <% end %>
  15. <tr>
  16. <td colspan="2"><%= submit_tag('Update') %></td>
  17. </tr>
  18. </table>
  19. <% end %>