66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
%h1 Adhérer
|
|
|
|
%p
|
|
|
|
|
|
=semantic_form_for @sheet, :url => save_sheet_public_joins_path(), :html => {:method => :get} do |form|
|
|
|
|
=form.inputs do
|
|
|
|
=form.hidden_field :sheet_type
|
|
=form.hidden_field :web
|
|
|
|
%h3 Foyer
|
|
%p= public_link_to_add_fields "Ajouter une personne (attention, si vous indiquez plusieurs personnes vous devez prendre une adhésion familiale)", form, :people
|
|
|
|
.people_form
|
|
=form.semantic_fields_for :people do |form|
|
|
=render :partial => "public/people/form", :locals => {:form => form}
|
|
|
|
%h3 Généralités
|
|
|
|
=form.hidden_field :corporate
|
|
|
|
=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"
|
|
=#form.input :other_mail, :label => "Autre mail :"
|
|
=#form.input :other_phone, :label => "Autre téléphone : "
|
|
|
|
%h3
|
|
Votre adhésion
|
|
=Renew::YEAR
|
|
=":"
|
|
|
|
.sheet_years_form
|
|
=form.semantic_fields_for :sheet_years do |f|
|
|
.field
|
|
=f.hidden_field :year
|
|
%br
|
|
=form.input :error_join, :label => false, :input_html => {:style => "display:none;"}
|
|
|
|
= f.input :join_type, :collection => {"Individuel (10€)" => 1, "Familial (15€)" => 2}, :as => :select, :label => "Type d'adhésion :", :include_blank => false
|
|
-if false
|
|
= f.label :benefactor, "Bienfaiteur : "
|
|
= f.check_box :benefactor
|
|
|
|
%br
|
|
= f.label :gift_year, "Année d'adhésion offerte : "
|
|
= f.check_box :gift_year, :onchange => "payment_form($(this));"
|
|
|
|
%br
|
|
|
|
|
|
|
|
= f.input :payment_type, :collection => SheetYear::PAYMENT_TYPE.map {|u| [u[1], u[0]] }, :as => :select, :label => "Type de paiement : ", :include_blank => false
|
|
|
|
|
|
|
|
|
|
|
|
= form.submit 'Adhérer', :class => "btn btn-success"
|
|
|