puffer_pages 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +58 -57
- data/VERSION +1 -1
- data/app/assets/javascripts/puffer_pages/application.js +2 -5
- data/app/assets/javascripts/puffer_pages/puffer_pages.js +10 -8
- data/app/assets/javascripts/puffer_pages/{right-tabs.js → right-tabs-src.js} +0 -0
- data/app/assets/stylesheets/puffer_pages/application.css +0 -1
- data/app/components/page_part_body/form.html.erb +1 -0
- data/app/components/page_part_body_component.rb +3 -0
- data/app/components/page_parts/form.html.erb +30 -0
- data/app/components/page_parts_component.rb +7 -0
- data/app/controllers/puffer_pages/layouts_base.rb +2 -0
- data/app/controllers/puffer_pages/pages_base.rb +5 -1
- data/app/controllers/puffer_pages/snippets_base.rb +2 -0
- data/lib/puffer_pages/liquid/page_drop.rb +4 -4
- data/puffer_pages.gemspec +13 -14
- metadata +43 -46
- data/app/assets/javascripts/puffer_pages/right-dialog.js +0 -764
- data/app/views/puffer_pages/pages_base/_page_part_builder.html.erb +0 -3
- data/app/views/puffer_pages/pages_base/_page_parts.html.erb +0 -26
- data/lib/puffer/inputs/page_parts.rb +0 -11
- data/lib/puffer/inputs/page_parts_body.rb +0 -12
@@ -1,26 +0,0 @@
|
|
1
|
-
<ul id="page_parts" data-tabs="{closable: true, onRemove: page_part_tab_remove, addButton: page_part_tab_add}">
|
2
|
-
<ul>
|
3
|
-
<% builder.object.page_parts.each_with_index do |page_part, index| %>
|
4
|
-
<li><%= link_to page_part.name, "#page_part_tab_#{index}" %></li>
|
5
|
-
<% end %>
|
6
|
-
</ul>
|
7
|
-
<% builder.object.page_parts.each_with_index do |page_part, index| %>
|
8
|
-
<li id="<%= "page_part_tab_#{index}" %>">
|
9
|
-
<%= builder.fields_for :page_parts, page_part do |page_part_builder| %>
|
10
|
-
<%= render :partial => 'page_part_builder', :object => page_part_builder %>
|
11
|
-
<% end %>
|
12
|
-
</li>
|
13
|
-
<% end %>
|
14
|
-
</ul>
|
15
|
-
<div id="page_parts_marked_for_destroy">
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<% new_page_part_tab_panel = capture do %>
|
19
|
-
<%= builder.fields_for :page_parts, PagePart.new, :child_index => 'new_page_part_tab_panel_index' do |page_part_builder| %>
|
20
|
-
<%= render :partial => 'page_part_builder', :object => page_part_builder %>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<%= javascript_tag do %>
|
25
|
-
var new_page_part_tab_panel = '<%= escape_javascript new_page_part_tab_panel.strip %>'
|
26
|
-
<% end %>
|