Sha256: b9b46f0f2eab94aded775b7bc401e62288d0459f25c9700ce04c423715ba3755
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
<ul id="page_parts" data-tabs="{closable: true, onRemove: page_part_tab_remove, addButton: page_part_tab_add}"> <ul> <% opts[:form].object.page_parts.each_with_index do |page_part, index| %> <li><%= link_to page_part.name, "#page_part_tab_#{index}" %></li> <% end %> </ul> <% opts[:form].object.page_parts.each_with_index do |page_part, index| -%> <li id="<%= "page_part_tab_#{index}" %>"> <% opts[:form].fields_for :page_parts, page_part do |page_part_builder| %> <% field.children.each do |field| %> <%= field.render parent_controller, :form, :form => page_part_builder %> <% end %> <% end %> </li> <% end -%> </ul> <div id="page_parts_marked_for_destroy"> </div> <% new_page_part_tab_panel = capture do %> <% opts[:form].fields_for :page_parts, PagePart.new, :child_index => 'new_page_part_tab_panel_index' do |page_part_builder| %> <% field.children.each do |field| %> <%= field.render parent_controller, :form, :form => page_part_builder %> <% end %> <% end %> <% end %> <%= javascript_tag do %> var new_page_part_tab_panel = '<%= escape_javascript new_page_part_tab_panel.strip.html_safe %>' <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer_pages-0.0.18 | app/components/page_parts/form.html.erb |