.field = form.label :plume, "Option plume papier : " = form.check_box :plume %br = form.label :year, "Année :" = form.text_field :year = form.label :join_type , "Type d'adhésion : " = form.select :join_type, SheetYear::JOIN_TYPE.map {|u| [u[1], u[0]] } = form.label :benefactor, "Bienfaiteur : " = form.check_box :benefactor %br = form.label :gift_year, "Année d'adhésion offerte : " = form.check_box :gift_year, :onchange => "payment_form("+form.object.id.to_s+",$(this));" %br .payment_form{:style => ("display:none;" if form.object.gift_year)} = 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("+form.object.id.to_s+",$(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 = form.hidden_field :sheet_id = link_to_remove_fields i(:x_alt), form