Sha256: 05ff4cc8e14ef7b6c5ced0358a6c99be1d3b2e57e1168a3ca195366eae80c5b8

Contents?: true

Size: 959 Bytes

Versions: 6

Compression:

Stored size: 959 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="spud-formatted-editor" 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

6 entries across 6 versions & 1 rubygems

Version Path
spud_cms-1.0.2 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-1.0.1 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-1.0.0 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-1.0.0.rc1.4 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-1.0.0.rc1.3 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-1.0.0.rc1.2 app/views/spud/admin/pages/_page_partials_form.html.erb