|
1234567891011121314151617181920212223 |
- <% provide(:title, 'Admin') %>
-
- <h1>Admin#index</h1>
-
- <p><%= link_to 'Home', controller: 'tools', action: 'index' %></p>
-
- <%= form_tag do %>
- <table>
- <% AdminHelper::SETTINGS.each do |s| %>
- <tr>
- <td><%= label_tag("settings[#{s[:key]}]", s[:label]) %></td>
- <% if s[:textarea] %>
- <td><%= text_area_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: "60x5") %></td>
- <% else %>
- <td><%= text_field_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: 40) %></td>
- <% end %>
- </tr>
- <% end %>
- <tr>
- <td colspan="2"><%= submit_tag('Update') %></td>
- </tr>
- </table>
- <% end %>
|