Sha256: 03755d35a6cd5a0c2f04285942dd5985935be99b5d7e74ad54fd0935f3a454a4

Contents?: true

Size: 919 Bytes

Versions: 25

Compression:

Stored size: 919 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 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

25 entries across 25 versions & 1 rubygems

Version Path
spud_cms-0.4.6 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.5 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.4 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.3 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.0 app/views/spud/admin/pages/_page_partials_form.html.erb