Sha256: 4424a9e1b0164aad22c18dd17876e9fffca5d29ff300ddd24f53fd4c6d25b003
Contents?: true
Size: 953 Bytes
Versions: 28
Compression:
Stored size: 953 Bytes
Contents
<div id="page_partials_form" class="formtabs tab-content"> <ul class="formtab_buttons nav nav-tabs"> </ul> <% last_index = 0 %> <% spud_page_partials.each_with_index do |spud_page_partial, index| %> <div class="formtab tab-pane"> <input type="hidden" class="tab_name" name="spud_page[spud_page_partials_attributes][<%= index %>][name]" value="<%= spud_page_partial.name %>" /> <textarea class="wysiwym tinymce" name="spud_page[spud_page_partials_attributes][<%= index %>][content]"> <%= spud_page_partial.content %> </textarea> </div> <% last_index = index + 1 %> <% end %> <% remove_page_partials.each_with_index do |spud_page_partial, index| %> <input type="hidden" name="spud_page[spud_page_partials_attributes][<%= last_index + index %>][id]" value="<%= spud_page_partial.id %>" /> <input type="hidden" name="spud_page[spud_page_partials_attributes][<%= last_index + index %>][_destroy]", value="1" /> <% end %> </div>
Version data entries
28 entries across 28 versions & 2 rubygems