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

Version Path
beef-admin_area-0.1.0 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.1 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.2 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.3 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.4 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.6 app/views/admin/settings/_form.html.erb
beef-admin_area-0.1.7 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.9 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.8 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.7 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.6 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.4 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.3 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.2 app/views/admin/settings/_form.html.erb
beef-admin_area-0.3.0 app/views/admin/settings/_form.html.erb
beef-admin_area-0.2.6 app/views/admin/settings/_form.html.erb
beef-admin_area-0.2.5 app/views/admin/settings/_form.html.erb
beef-admin_area-0.2.4 app/views/admin/settings/_form.html.erb
beef-admin_area-0.2.3 app/views/admin/settings/_form.html.erb
beef-admin_area-0.2.2 app/views/admin/settings/_form.html.erb