bugs adherents
This commit is contained in:
parent
fd8a842bfa
commit
90a3fa30aa
@ -1,11 +1,11 @@
|
||||
@payment_form = (sheet_year_id,element) ->
|
||||
|
||||
@payment_form = (element) ->
|
||||
alert 'test'
|
||||
if element.attr('checked') == "checked"
|
||||
element.closest(".field").find(".payment_form").hide()
|
||||
else
|
||||
element.closest(".field").find(".payment_form").show()
|
||||
|
||||
@check_form = (sheet_year_id,element) ->
|
||||
@check_form = (element) ->
|
||||
if element.val() is "1"
|
||||
element.closest(".field").find(".check_form").show()
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ background:white;
|
||||
.content{
|
||||
padding:10px;
|
||||
position:absolute;
|
||||
top:40px;
|
||||
top:50px;
|
||||
bottom:0px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
%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));"
|
||||
= form.check_box :gift_year, :onchange => "payment_form($(this));"
|
||||
|
||||
%br
|
||||
|
||||
@ -29,11 +29,11 @@
|
||||
%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));"}
|
||||
= 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)}
|
||||
.check_form{:style => ("display:none;" if form.object.id and form.object.payment_type != 1)}
|
||||
= form.label :bank, "Banque : "
|
||||
= form.text_field :bank
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user