<%= f.field_container :name do %> <%= f.label :name, Spree.t(:name) %> <%= f.text_field :name, class: 'fullwidth' %> <%= error_message_on :user, :name %> <% end %> <%= f.field_container :partial do %> <%= f.label :partial, Spree.t(:partial) + " (leave blank if no partial) " %>

app/views/spree/affiliates/<%= f.text_field :partial %>

<%= f.error_message_on :partial %> <% end %>
<%= f.field_container :path do %> <%= f.label :path, Spree.t(:path) %> <%= f.text_field :path, class: 'fullwidth' %> <%= f.error_message_on :path %> <% end %> <%= f.field_container :path do %> <%= f.label :layout, Spree.t(:layout) %> <%= select_tag 'fake_layout', options_for_select(@layout_options, selected: @affiliate.layout), class: "fullwidth #{'other' unless @layout_options.flatten.include?(@affiliate.layout)}" %> <%= f.text_field :layout, value: @affiliate.layout.nil? ? @layout_options.first : @affiliate.layout, class: 'fullwidth' %> <%= f.error_message_on :layout %> <% end %>