Sha256: e29f1560c86585c07b77813e6e6acadcf489fd948941b514ca4b2774894e76bd

Contents?: true

Size: 565 Bytes

Versions: 9

Compression:

Stored size: 565 Bytes

Contents

<%= admin_form_for [:"admin", current_resource], :html => {:multipart => true} do |f| -%>

  <%= f.errors %>
  
  <% if current_resource.new_record? %>
  
    <%= f.inputs do %>
      <%= f.input :key %>
      <%= f.input :kind, :as => "select", :collection => Setting.kinds %>
    <% end -%> 
   
  <% else %>

    <%=  f.inputs do %>
      <%= f.input :key, :input_html => {:readonly => true} %>     
      <%= f.input :"#{current_resource.kind}_value" %>
    <% end -%> 

  <% end %>


  <%= f.actions do %>
  <%= f.resource_submit %>
  <% end %>
  

<% end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fullstack-cms-0.1.14 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.13 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.12 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.11 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.9 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.8 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.7 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.6 app/views/admin/settings/_form.html.erb
fullstack-cms-0.1.5 app/views/admin/settings/_form.html.erb