Sha256: 3ba9fca00d05a795ab7befc151f428bf363acb5b39c7d23db4c13852708d9e57
Contents?: true
Size: 911 Bytes
Versions: 7
Compression:
Stored size: 911 Bytes
Contents
<div id="page_partials_form" class="formtabs"> <ul class="formtab_buttons"> </ul> <% last_index = 0 %> <% spud_page_partials.each_with_index do |spud_page_partial, index| %> <div class="formtab"> <input type="hidden" class="tab_name" name="spud_page[spud_page_partials_attributes][<%= index %>][name]" value="<%= spud_page_partial.name %>" /> <textarea class="wysiwym" 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
7 entries across 7 versions & 1 rubygems