Sha256: f8ea2e5e2194eee4d46c8af0cd5a8747eda1a648e24b9a07c131a60410c9dfd5

Contents?: true

Size: 1.4 KB

Versions: 27

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, :name] %>
          <% end %>
        <% end %>
    <% end %>
    
  <% end %>

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
fullstack-cms-0.2.32.fix app/views/admin/pages/_form.html.erb
fullstack-cms-0.3.4 app/views/admin/pages/_form.html.erb
fullstack-cms-0.3.3 app/views/admin/pages/_form.html.erb
fullstack-cms-0.3.2 app/views/admin/pages/_form.html.erb
fullstack-cms-0.3.1 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.36 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.35 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.34 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.33 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.31 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.30 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.29 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.28 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.27 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.26 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.25 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.24 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.23 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.22 app/views/admin/pages/_form.html.erb
fullstack-cms-0.2.21 app/views/admin/pages/_form.html.erb