Sha256: f1f2e4308b4723cef27c88dfcd2568d855e2395ee2459d996dc1e87ccc36de5b

Contents?: true

Size: 896 Bytes

Versions: 3

Compression:

Stored size: 896 Bytes

Contents

<% page.page_parts.each do |part| %>
    <%= tabs.pane(part.name) do %>
    
          <%= admin_form_for [:"admin", page, part], :html => {:multipart => true}, :remote => true, :'data-type' => "js" do |f| -%>

          <%= f.errors %>
        
            <%= f.inputs do %>
            <%= f.input :content, :label => false, :input_html => { :class => "markup-ckeditor", :id => "page_part_#{part.id}_content" } %>
            <% end -%>
  
            <%= f.actions do %>
              <%= button (current_resource.persisted? ? _("Update") : _("Create")), 
                          :type => :primary, :size => :large %>
              <%= link_to _("Delete"), [:admin, page, part], :data => {:method => "delete", :remote => true, :confirm => _("Are you sure?") }, :class => "btn btn-large btn-danger" %>
            <% end %>
            
        <% end -%>  
        
    <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fullstack-cms-0.1.5 app/views/admin/page_parts/_tabs.html.erb
fullstack-cms-0.1.4 app/views/admin/page_parts/_tabs.html.erb
fullstack-cms-0.1.3 app/views/admin/page_parts/_tabs.html.erb