<%= div_for f.object do %> <%= f.error_messages %> <%= f.label :name %> <%= f.text_field :name%>
<%= f.label :label %> <%= f.text_field :label %>
<%= f.label :description %> <%= f.text_field :description %>
<%= f.label :type %> <%= f.select :type, options_for_select(@field_types.collect{|type| [type.gsub(/Newsletter::Field::/,'').humanize,type]}, f.object.class.name) %> <%= f.hidden_field :sequence, {class: 'sequence'} %> <%= f.link_to_remove "Remove", {class: 'button', style: 'margin-left: 130px;'} %>
<% end %>