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.8.17 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.15 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.14 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.13 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.12 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.11 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.10 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.9 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.7 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.6 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.5 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.4 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.2 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.1 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.8.0 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.7.2 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.7.1 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.7.0 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.8 app/views/spud/admin/pages/_page_partials_form.html.erb
spud_cms-0.4.7 app/views/spud/admin/pages/_page_partials_form.html.erb