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.
@@ -1,3 +0,0 @@
1
- <%= page_part_builder.puffer_field :name, :type => :hidden %>
2
- <%= page_part_builder.puffer_field :body, :type => :page_parts_body, :html => {:codemirror => true} %>
3
- <%= page_part_builder.puffer_field :_destroy, :type => :hidden, :html => { :class => 'destroy_mark' } %>
@@ -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 %>
@@ -1,11 +0,0 @@
1
- module Puffer
2
- module Inputs
3
- class PageParts < Puffer::Inputs::Base
4
-
5
- def html
6
- template.render :partial => 'page_parts', :locals => {:builder => builder}
7
- end
8
-
9
- end
10
- end
11
- end
@@ -1,12 +0,0 @@
1
- module Puffer
2
- module Inputs
3
- class PagePartsBody < Puffer::Inputs::Text
4
-
5
- def html
6
- input
7
- end
8
-
9
- end
10
- end
11
- end
12
-