<%= semantic_form_for([:admin, resource], :url => resource.new_record? ? admin_affiliates_path : "/admin/affiliates/#{resource.id}") do |f| %>
  <%= f.semantic_errors *f.object.errors.keys %>
  <%= f.inputs do %>
    <%= f.input(:partner_name, :input_html => {:maxlength => 128}) %>
  <% end %>
  <%= f.actions %>
<% end %>
