demarches-normaliennes/app/views/support/admin.html.haml
2020-09-01 12:58:19 +00:00

47 lines
1.5 KiB
Text

- content_for(:title, 'Contact')
#contact-form
.container
%h1.new-h1
= t('contact_team', scope: [:supportadmin])
.description
= t('admin_intro_html', scope: [:supportadmin], contact_path: contact_path)
%br
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
= form_tag contact_path, method: :post, class: 'form' do |f|
- if !user_signed_in?
.contact-champ
= label_tag :email do
= t('pro_mail', scope: [:supportadmin])
%span.mandatory *
= text_field_tag :email, params[:email], required: true
.contact-champ
= label_tag :type do
= t('your_question', scope: [:support, :question])
%span.mandatory *
= select_tag :type, options_for_select(@options, params[:type])
.contact-champ
= label_tag :phone do
= t('professional_phone_number', scope: [:supportadmin])
= text_field_tag :phone
.contact-champ
= label_tag :subject do
= t('subject', scope: [:utils])
= text_field_tag :subject, params[:subject], required: false
.contact-champ
= label_tag :text do
= t('message', scope: [:utils])
%span.mandatory *
= text_area_tag :text, params[:text], rows: 6, required: true
= hidden_field_tag :tags, @tags&.join(',')
= hidden_field_tag :admin, true
.send-wrapper
= button_tag t('send_mail', scope: [:utils]), type: :submit, class: 'button send primary'