Sha256: 5f342b5c4bb1c062dc32ca7e240aeffbf467af2b798f97bae80735b1e875a237

Contents?: true

Size: 1.4 KB

Versions: 20

Compression:

Stored size: 1.4 KB

Contents

<%= admin_form_for [:"admin", current_resource], :html => {:multipart => true} do |f| -%>
  <%= f.errors %>
  
  <%= tabs do |t| %>
    <%= t.pane t('fullstack.admin.info', :default => "Info")  do %>
      
      <%= f.inputs do %>
        <%= f.input :name %>
        <% if !@page.resourceful? %>
          <%= f.input :title %>
          <%= f.input :description, :as => :text %>
        <% end %>
      <% end -%>
      
      <%= nav :class => "pills" do %>        
        <%= nav_item t('fullstack.cms.advanced_settings', :default => "Advanced settings"), 
          "#advanced_settings", 
          :data => {:toggle => "collapse", :target => "#advanced_settings"}, 
          :icon => "cog"
          %>      
      <% end %>
      
      <div class="collapse" id="advanced_settings">
        <%= f.inputs do %>
          <%= f.input :path, :input_html => {:readonly => true}  %>
          <%= f.input :uid, :input_html => {:readonly => true} %>
        <% end %>
      </div>
      
  
    <% end %>
    
    <% current_resource.page_parts.each do |p| %>
        <%= t.pane t(p.name, :scope => 'fullstack.cms.parts', :default => p.name.try(:humanize)) do  %>
        <%= f.admin_fields_for :page_parts, p do |f| %>
          <%= f.resource_inputs :except => [:page_id, :name] %>
          <% end %>
        <% end %>
    <% end %>
    
  <% end %>

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fullstack-cms-0.2.13 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.12 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.11 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.10 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.9 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.8 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.7 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.6 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.5 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.4 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.3 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.2 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.1 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.17 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.15 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.14 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.13 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.12 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.11 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.9 app/views/admin/pages/_form.html.erb