245 lines
9.3 KiB
Plaintext
Executable File
245 lines
9.3 KiB
Plaintext
Executable File
-if !@new_site
|
|
- @contact = @contact || Contact.new
|
|
=semantic_form_for [:public, @contact], :remote => true do |f|
|
|
=f.inputs do
|
|
.row
|
|
.columns.span_8
|
|
=f.hidden_field :raison_id
|
|
=f.hidden_field :survey_set_id
|
|
|
|
-if @contact.raison_id == 2
|
|
%p
|
|
Je souhaite recevoir sous pli confidentiel votre guide d'information consacré aux legs, donations et assurances-vie. Pour cela, je vous transmets mes coordonnées :
|
|
%br
|
|
%br
|
|
|
|
%table{:style => "border-collapse:collapse;width:100%;"}
|
|
%tr
|
|
%td{:style => "width:20%;vertical-align:top;"}
|
|
=f.input :civilite, :label =>false, :as => :select, :collection => [[qit("don-particular-civilite-mme","Mme."), "Mme"], [qit("don-particular-civilite-m","M."), "M"]], :include_blank => false
|
|
%td{:style => "width:40%;vertical-align:top;"}
|
|
|
|
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
|
|
|
%td{:style => "width:40%;vertical-align:top;"}
|
|
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-if @contact.raison_id != 1
|
|
=f.input :address, :label => false, :placeholder => qit("contact adresse","Adresse")
|
|
%table{:style => "border-collapse:collapse;width:100%;"}
|
|
%tr
|
|
%td{:style => "width:35%;vertical-align:top;"}=f.input :cp, :label => false, :placeholder => qit("contact cp","Code postal")
|
|
%td{:style => "width:65%;vertical-align:top;"}=f.input :city, :label =>false, :placeholder => qit("contact city","Ville")
|
|
=f.input :country, :label => false, :priority_countries => ["FR", "CH", "BE"], :locale => @lang.slug
|
|
|
|
|
|
|
|
=f.input :email, :label => false , :placeholder =>"Email"
|
|
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
|
|
|
|
|
|
|
=f.input :message, :label =>false , :placeholder => "Message"
|
|
|
|
-if @contact.raison_id == 3
|
|
.contact_documents
|
|
=f.semantic_fields_for :document_orders do |f|
|
|
|
|
.data_file#data_file{:id => f.object.data_file.token}
|
|
=f.hidden_field :data_file_id
|
|
=image_tag f.object.data_file.image_file.file.large.medium.small.thumb.url
|
|
%br
|
|
%br
|
|
%p
|
|
Quantité :
|
|
=f.text_field :qte
|
|
%p
|
|
=link_to "Supprimer de la liste", public_document_order_path(f.object.data_file.token), :method => :delete, :remote => true, :data => {:confirm => "Voulez-vous vraiment enlever ce document de la liste ?"}
|
|
.clear
|
|
|
|
|
|
.clear
|
|
|
|
|
|
|
|
|
|
=f.submit "Envoyer", :class => "btn"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%br
|
|
%br
|
|
|
|
|
|
|
|
.columns.span_4.button_container{:style => "padding-left:60px;"}
|
|
.inner
|
|
|
|
|
|
|
|
%p
|
|
= "Association" if @lang.id != 2
|
|
3P
|
|
%br
|
|
|
|
|
|
1 A place des Orphelins
|
|
%br
|
|
67000 Strasbourg
|
|
%br
|
|
FRANCE
|
|
|
|
%p
|
|
=ic(:phone)
|
|
|
|
+33 (0)3 88 35 67 30
|
|
%p
|
|
=ic(:"envelope-o")
|
|
|
|
=link_to "info@3p.quartz.xyz", "mailto:info@3p.quartz.xyz"
|
|
.clear
|
|
|
|
-else
|
|
.title
|
|
|
|
|
|
-if @contact.raison_id == 1
|
|
=qit "contact-general-titre", "Je souhaite"
|
|
-elsif @contact.raison_id == 2
|
|
=qit "contact-legs-titre", "Je souhaite en savoir plus"
|
|
-elsif @contact.raison_id == 3
|
|
=qit "contact-commande-docs-titre", "Je souhaite"
|
|
-elsif @contact.raison_id == 4
|
|
=qit "contact-militer-titre", "Je souhaite en savoir plus"
|
|
-else
|
|
=qit "Contacter 3P"
|
|
|
|
.inner
|
|
=semantic_form_for [:public, @contact], :remote => true do |f|
|
|
=f.inputs do
|
|
|
|
=f.hidden_field :raison_id
|
|
=f.hidden_field :survey_set_id
|
|
|
|
-if @contact.raison_id == 1
|
|
%p.intro
|
|
=qit "contact-general-intro" do
|
|
entrer en contact avec 3P. Laissez-nous votre message, nous reviendrons vers vous rapidement :
|
|
-if @contact.raison_id == 2
|
|
%p.intro
|
|
=qit "contact-legs-intro" do
|
|
sur les legs, donations, et assurances-vie en faveur de 3P. Vous pouvez me contacter pour répondre à mes questions :
|
|
%br
|
|
%br
|
|
-if @contact.raison_id == 3
|
|
%p.intro
|
|
=qit "contact-commande-docs-intro" do
|
|
recevoir gratuitement ces documents à cette adresse :
|
|
-if @contact.raison_id == 4
|
|
%p.intro
|
|
=qit "contact-militer-intro" do
|
|
sur le militantisme avec 3P. Vous pouvez nous contacter et nous répondrons à vos questions.
|
|
|
|
.civilite=f.input :civilite, :label =>false, :as => :radio, :collection => [[qit("don-particular-civilite-mme2","Madame"), "Mme"], [qit("don-particular-civilite-m2","Monsieur"), "M"]], :include_blank => false
|
|
|
|
%table{:style => "border-collapse:collapse;width:100%;"}
|
|
%tr
|
|
|
|
%td{:style => "width:50%;vertical-align:top;padding-right:10px;"}
|
|
|
|
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
|
|
|
|
%td{:style => "width:50%;vertical-align:top;padding-left:10px;"}
|
|
=f.input :email, :label => false , :placeholder =>"Email"
|
|
|
|
|
|
%tr
|
|
|
|
%td{:style => "width:50%;vertical-align:top;padding-right:10px;"}
|
|
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
|
|
|
%td{:style => "width:50%;vertical-align:top;padding-left:10px;"}
|
|
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
|
|
|
-if @contact.raison_id == 1
|
|
|
|
=f.input :raison_text, :label =>false, :as => :radio, :collection => ["Demande d'informations", "Faire appel à la Cellule Zoé", "Autre"], :include_blank => false
|
|
|
|
-if @contact.raison_id != 4 and @contact.raison_id != 2
|
|
-if @contact.raison_id != 1
|
|
=f.input :address, :label => false, :placeholder => qit("contact adresse","Adresse")
|
|
%table{:style => "border-collapse:collapse;width:100%;"}
|
|
%tr
|
|
%td{:style => "width:35%;vertical-align:top;padding-right:10px;"}=f.input :cp, :label => false, :placeholder => qit("contact cp","Code postal")
|
|
%td{:style => "width:65%;vertical-align:top;padding-left:10px;"}=f.input :city, :label =>false, :placeholder => qit("contact city","Ville")
|
|
=f.input :country, :label => false, :priority_countries => ["FR", "CH", "BE"], :locale => @lang.slug
|
|
|
|
|
|
|
|
-if @contact.raison_id == 4
|
|
=f.input :objet, :label =>false , :placeholder => qit("contact-objet", "Objet de votre message"), :as => :string
|
|
|
|
=f.input :message, :label =>false , :placeholder => "Message"
|
|
|
|
-if @contact.raison_id == 3
|
|
.contact_documents
|
|
=f.semantic_fields_for :document_orders do |f|
|
|
|
|
.data_file#data_file{:id => f.object.data_file.token}
|
|
=f.hidden_field :data_file_id
|
|
=image_tag f.object.data_file.image_file.file.large.medium.small.thumb.url if f.object.data_file.image_file and f.object.data_file.image_file.file
|
|
.desc
|
|
%h3
|
|
=f.object.data_file.title
|
|
%p
|
|
Quantité :
|
|
=f.text_field :qte
|
|
%p
|
|
=link_to qit("Supprimer de la liste"), public_document_order_path(f.object.data_file.token), :method => :delete, :remote => true, :data => {:confirm => qit("Voulez-vous vraiment enlever ce document de la liste ?")}
|
|
.clear
|
|
|
|
|
|
.clear
|
|
.rgdp
|
|
=f.input :rgdp, :label => qit("rgpd-consentement-contact","J'accepte que les informations saisies dans le formulaire soient enregistrées et utilisées par l'association dans le cadre du traitement de ma demande et je certifie avoir 16 ans ou plus.")
|
|
|
|
%p.rgpd_link_legals=qit "rgpd-detail-line", "Pour en savoir plus sur le traitement de vos données personnelles consultez le détail <a href='/fr/gestion-des-donnees-personnelles.html' target='_blank'>sur cette page</a>."
|
|
|
|
|
|
-if @contact.raison_id == 2
|
|
.left_sign
|
|
.cta.vertical_center=f.submit qit("Contactez-moi >"), :class => "btn"
|
|
.img
|
|
=image_tag "/muriel.png"
|
|
.description.vertical_center
|
|
|
|
Muriel Arnal
|
|
%br
|
|
02 97 13 11 10
|
|
|
|
%br
|
|
=link_to "muriel@3p.quartz.xyz", "mailto:muriel@3p.quartz.xyz"
|
|
|
|
|
|
|
|
.clear
|
|
|
|
|
|
|
|
|
|
|
|
.clear
|
|
-else
|
|
.cta=f.submit qit("Contactez-nous >"), :class => "btn"
|
|
|
|
|
|
|
|
|