=form.inputs do

	=form.input :sheet_type, :as => :select, :collection => Sheet::SHEET_TYPE.map {|u| [u[1], u[0]] }, :include_blank => false


	%h3 Foyer
	%p= link_to_add_fields "Ajouter une ligne", form, :people 

	.people_form
		=form.semantic_fields_for :people do |form|
			=render :partial => "admin/people/form", :locals => {:form => form}
		
	%h3 Généralités
	
	=form.input :corporate, :label => "Organisation"
	=form.input :address, :label => "Adresse"
	=form.input :address2, :label => "Adresse (suite)"
	=form.input :address3, :label => "Adresse (suite)"
	=form.input :pc, :label => "Code postal"
	=form.input :city, :label => "Ville"
	=form.input :country, :label => "Pays", :as => :string
	=form.input :skills, :label => "Compétences"
	
	%h3 Années d'adhésions
	%p= link_to_add_fields "Ajouter une année", form, :sheet_years 
	.sheet_years_form
		=form.semantic_fields_for :sheet_years do |form|
			=render :partial => "admin/sheet_years/form", :locals => {:form => form}
			
	%h3 Dons
	%p= link_to_add_fields "Ajouter un don", form, :donates 
	.donates_form
		=form.semantic_fields_for :donates do |form|
			=render :partial => "admin/donates/form", :locals => {:form => form}
	
	
= form.submit 'Enregistrer', :class => "btn" 
