.field

	
	= form.label :paid_at, "Date de paiement : "
	= form.date_select :paid_at, :include_blank => true

	= form.label :amount, "Montant : "
	= form.text_field :amount 
	%br

	= form.label :payment_type, "Type de paiement : "
	= form.select :payment_type, SheetYear::PAYMENT_TYPE.map {|u| [u[1], u[0]] }, {},{:onchange => "check_form($(this));"}
	
	
	%br
	.check_form{:style => ("display:none;" if form.object.payment_type != 1)}
		= form.label :bank, "Banque : "
		= form.text_field :bank 

		= form.label :check_number, "Numéro du chèque : "
		= form.text_field :check_number 
		
	= link_to_remove_fields i(:x_alt), form

