demarches-normaliennes/app/views/support/index.html.haml

83 lines
3.3 KiB
Text
Raw Normal View History

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
%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|
.description
%p= t('intro_html', scope: [:support])
%br
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
- 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
= t('your_question', scope: [:support, :question])
2018-08-29 11:44:12 +02:00
%span.mandatory *
= select_tag :type, options_for_select(@options, params[:type]), include_blank: t('choose_question', scope: [:support, :question]), required: true
2019-02-21 17:50:18 +01:00
.support.card.featured.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_INFO } }
2019-02-21 17:50:18 +01:00
.card-title
= t('our_answer', scope: [:support, :response])
.card-content
= t('procedure_info_html', scope: [:support, :response], link_procedure_info: FAQ_CONTACTER_SERVICE_EN_CHARGE_URL)
2019-02-21 17:50:18 +01:00
.support.card.featured.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_PERDU } }
.card-title
= t('our_answer', scope: [:support, :response])
.card-content
= t('lost_user_html', scope: [:support, :response], base_url: APPLICATION_BASE_URL, link_lost_user: LISTE_DES_DEMARCHES_URL)
2019-02-21 17:50:18 +01:00
.support.card.featured.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_INSTRUCTION } }
.card-title
= t('our_answer', scope: [:support, :response])
.card-content
= t('instruction_info_html', scope: [:support, :response], link_instruction: FAQ_OU_EN_EST_MON_DOSSIER_URL)
2018-08-29 11:44:12 +02:00
.support.card.featured.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_AMELIORATION } }
.card-title
= t('our_answer', scope: [:support, :response])
.card-content
= t('product_html', scope: [:support, :response], link_product: FEATURE_UPVOTE_URL)
2018-08-29 11:44:12 +02:00
.contact-champ
= 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
= 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
= 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
= label_tag :piece_jointe do
= t('pj', scope: [:utils])
2019-11-28 17:49:40 +01:00
%p.notice.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_AMELIORATION } }
= 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 } }
= t('notice_pj_other', scope: [:support, :response])
= file_field_tag :piece_jointe
2018-08-29 11:44:12 +02:00
= hidden_field_tag :tags, @tags&.join(',')
2018-08-29 11:44:12 +02:00
.send-wrapper
= button_tag t('send_mail', scope: [:utils]), type: :submit, class: 'button send primary'