Sha256: 7e3e6d39bc04a9f2d102cb8f04d7a3b0fcc4124bc0c397909fbcbb233f01b400

Contents?: true

Size: 531 Bytes

Versions: 7

Compression:

Stored size: 531 Bytes

Contents

<%= form_for(@piece,  :html => { :multipart => true }) do |f| %>
  <%= f.error_messages %>
	<% @piece.element.fields.each do |field| %>
		<!-- Rendering Field: <%= field.name %> <%= field.type %> -->
		<%= render :partial => field.form_partial_path, :locals => { :piece => @piece, :field => field, :field_value => field.value_for_piece(@piece) } %>
      
	<% end %>
	<%= f.hidden_field :element_id %>
	<%= f.hidden_field :area_id %>
	<%= f.hidden_field :newsletter_id %>
    <%= f.submit "Submit", :class => 'button' %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newsletter-3.2.7 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.6 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.5 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.4 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.2 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.1 app/views/newsletter/pieces/_form.html.erb
newsletter-3.2.0 app/views/newsletter/pieces/_form.html.erb