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.

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