Sha256: ce8425fda3133f3e311bbf529c950cc1035f670eae59f48faee6897d14fc8956
Contents?: true
Size: 660 Bytes
Versions: 23
Compression:
Stored size: 660 Bytes
Contents
<% remote_form_for(:settings, :url => admin_settings_path, :method => :put, :html => {:class => 'setting-form'} ) do |f| %> <% settings.each do |setting| %> <p> <% unless setting.empty? %> <%= f.label setting[0] %><br/> <% unless setting[2].blank? %> <span class="setting-description"><%= setting[2] %></span><br/> <% end %> <%= case setting[1] when "text" f.text_field setting[0] when "text_area" f.text_area setting[0], :rows => 3 when "checkbox" f.check_box setting[0] else nil end %> </p> <% else %> <br /> <% end %> <% end %> <%= f.submit "Set", :disable_with => 'Setting...' %> <% end -%>
Version data entries
23 entries across 23 versions & 1 rubygems