2018-08-29 11:44:12 +02:00
|
|
|
- content_for(:title, 'Contact')
|
2020-03-23 17:56:40 +01:00
|
|
|
- content_for :footer do
|
|
|
|
= render partial: "root/footer"
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
#contact-form
|
|
|
|
.container
|
2020-08-25 15:01:54 +02:00
|
|
|
%h1.new-h1
|
|
|
|
= t('contact', scope: [:support])
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
= form_tag contact_path, method: :post, multipart: true, class: 'form' do |f|
|
2020-06-11 11:37:48 +02:00
|
|
|
|
|
|
|
.description
|
2020-08-25 15:01:54 +02:00
|
|
|
%p= t('intro_html', scope: [:support])
|
2020-06-11 11:37:48 +02:00
|
|
|
%br
|
2020-08-25 15:01:54 +02:00
|
|
|
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
|
2020-06-11 11:37:48 +02:00
|
|
|
|
2019-09-17 11:01:20 +02:00
|
|
|
- if !user_signed_in?
|
2018-08-29 11:44:12 +02:00
|
|
|
.contact-champ
|
|
|
|
= label_tag :email do
|
|
|
|
Email
|
|
|
|
%span.mandatory *
|
2018-08-30 13:47:13 +02:00
|
|
|
= text_field_tag :email, params[:email], required: true
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :type do
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('your_question', scope: [:support, :question])
|
2018-08-29 11:44:12 +02:00
|
|
|
%span.mandatory *
|
2020-09-16 21:41:02 +02:00
|
|
|
= hidden_field_tag :type, params[:type]
|
2020-09-16 20:58:31 +02:00
|
|
|
%dl
|
|
|
|
- @options.each do |(question, question_type, link)|
|
|
|
|
%dt
|
|
|
|
- if link.present?
|
|
|
|
%button.button{ 'aria-expanded': 'false', 'aria-controls': question_type, data: { 'question-type': question_type } }= question
|
|
|
|
- else
|
|
|
|
%button.button.button-without-hint{ data: { 'question-type': question_type } }= question
|
|
|
|
- if link.present?
|
|
|
|
%dd
|
|
|
|
.support.card.featured.hidden{ id: question_type }
|
|
|
|
.card-title
|
|
|
|
= t('our_answer', scope: [:support, :response])
|
|
|
|
.card-content
|
|
|
|
= t("#{question_type}_html", scope: [:support, :response], base_url: APPLICATION_BASE_URL, "link_#{question_type}": link)
|
2020-02-11 15:35:42 +01:00
|
|
|
|
2018-08-29 11:44:12 +02:00
|
|
|
.contact-champ
|
2020-08-25 15:01:54 +02:00
|
|
|
= label_tag :dossier_id, t('file_number', scope: [:utils])
|
2018-08-29 11:44:12 +02:00
|
|
|
= text_field_tag :dossier_id, @dossier_id
|
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :subject do
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('subject', scope: [:utils])
|
2018-08-29 11:44:12 +02:00
|
|
|
%span.mandatory *
|
2018-08-30 13:47:13 +02:00
|
|
|
= text_field_tag :subject, params[:subject], required: true
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :text do
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('message', scope: [:utils])
|
2018-08-29 11:44:12 +02:00
|
|
|
%span.mandatory *
|
2018-08-30 13:47:13 +02:00
|
|
|
= text_area_tag :text, params[:text], rows: 6, required: true
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
.contact-champ
|
2020-06-11 11:37:48 +02:00
|
|
|
= label_tag :piece_jointe do
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('pj', scope: [:utils])
|
2019-11-28 17:49:40 +01:00
|
|
|
%p.notice.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_AMELIORATION } }
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('notice_pj_product', scope: [:support, :response])
|
2019-11-28 17:49:40 +01:00
|
|
|
%p.notice.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_AUTRE } }
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('notice_pj_other', scope: [:support, :response])
|
2019-06-25 17:12:44 +02:00
|
|
|
= file_field_tag :piece_jointe
|
2018-08-29 11:44:12 +02:00
|
|
|
|
2018-08-30 13:48:03 +02:00
|
|
|
= hidden_field_tag :tags, @tags&.join(',')
|
2018-08-29 11:44:12 +02:00
|
|
|
|
|
|
|
.send-wrapper
|
2020-08-25 15:01:54 +02:00
|
|
|
= button_tag t('send_mail', scope: [:utils]), type: :submit, class: 'button send primary'
|