Sha256: 7f6e329bc947b9cf434e57f49c4204b35353ff2fcf359911dbf1cd36c56bbc3e

Contents?: true

Size: 1.4 KB

Versions: 3

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 :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

3 entries across 3 versions & 1 rubygems

Version Path
fullstack-cms-0.1.8 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.7 app/views/admin/pages/_form.html.erb
fullstack-cms-0.1.6 app/views/admin/pages/_form.html.erb