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

Version Path
spud_cms-0.3.7 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.6 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.4 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.3 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.2 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.1 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.3.0 app/views/spud/admin/pages/_page_partials_form.html.erb