Sha256: 701a52cbea42e7b5930e3b82e3342a68625232625a24ecace7d0b599681d2432
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
<table border="0" cellspacing="0" cellpadding="0" id="settings" class="index_table index"> <thead> <tr> <th class="">Name</th> <th class="">Value</th> <th class=""></th> </tr> </thead> <tbody> <% settings.each do |setting| %> <tr class="odd option-type-<%= setting.type %>" id="setting_<%= setting.id %>"> <td> <strong><%= setting.name %></strong></br> <em><%= setting.description %></em> </td> <td> <div class="form <%= setting.type %>"> <%= semantic_form_for setting, :method => :put, :url => "/admin/settings/#{setting.id}" do |f| %> <%= f.inputs do %> <% case setting.type %> <% when "file" %> <%= f.input :file, :hint => setting.value %> <%= f.input :remove_file, :as => :boolean %> <% when "text" %> <%= f.input :string, :as => :text %> <% when "html" %> <%= f.input :string, :as => :text, :input_html => { :class => "settings-redactor" } %> <% else %> <%= f.input :string, :placeholder => "Default: " + setting.default_value %> <% end %> <% end %> <% end %> </div> </td> <td> <a href="#" class="member_link update_link" data-id="#setting_<%= setting.id %>"> Update </a> </td> </tr> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-settings-0.2.7 | app/views/admin/settings/_settings_table.html.erb |