<%= render :partial => 'shared/form_errors', :locals => { :object => @school } %> <%= semantic_form_for ['admin', @school] do |f| %> <%= f.inputs do %> <%= f.input :name %> <%= f.input :address_1 %> <%= f.input :address_2 %> <%= f.input :city %> <%= f.input :state, :as => :select, :collection => GeographicalRegions.all_us_states_as_select_field_pairs %> <%= f.input :zipcode, :input_html => { :maxlength => '5' } %> <%= f.input :phone %> <%= f.input :approved %> <% end %> <%= f.buttons do %> <%= f.commit_button "Submit" %> <% end %> <% end %>