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