Revision df886c98
Added by Ohad Levy over 12 years ago
- ID df886c98f48ce50b0dfe87a2a24ddd92dce1fb13
app/views/settings/index.html.erb | ||
---|---|---|
<th>Value</th>
|
||
<th>Description</th>
|
||
<th><%= sort :category %></th>
|
||
<th></th>
|
||
</tr>
|
||
<% for setting in @settings %>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<td><%=h setting.name %></td>
|
||
<td><%=h show_value(setting) %></td>
|
||
<td><%= edit_textfield(setting, :value,{:helper => :show_value}) %></td>
|
||
<td><%=h setting.description %></td>
|
||
<td><%=h setting.category %></td>
|
||
<td><%= link_to_function "Edit", "edit_setting('#{setting}','#{edit_setting_path(setting)}')" %></td>
|
||
</tr>
|
||
<% end %>
|
||
</table>
|
Also available in: Unified diff
Feature #1184 - allow to save array based settings
this also moves the setting page to use inline edit