2018-11-28 15:19:12 +01:00
|
|
|
- content_for(:title, 'Contact')
|
|
|
|
|
|
|
|
#contact-form
|
|
|
|
.container
|
2020-08-31 12:23:40 +02:00
|
|
|
%h1.new-h1
|
|
|
|
= t('contact_team', scope: [:supportadmin])
|
2018-11-28 15:19:12 +01:00
|
|
|
|
|
|
|
.description
|
2020-08-31 12:23:40 +02:00
|
|
|
= t('admin_intro_html', scope: [:supportadmin], contact_path: contact_path)
|
2018-11-28 15:19:12 +01:00
|
|
|
%br
|
2020-08-31 12:23:40 +02:00
|
|
|
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
|
2018-11-28 15:19:12 +01:00
|
|
|
|
|
|
|
= form_tag contact_path, method: :post, class: 'form' do |f|
|
2019-09-17 11:01:20 +02:00
|
|
|
- if !user_signed_in?
|
2018-11-28 15:19:12 +01:00
|
|
|
.contact-champ
|
|
|
|
= label_tag :email do
|
2020-08-31 12:23:40 +02:00
|
|
|
= t('pro_mail', scope: [:supportadmin])
|
2018-11-28 15:19:12 +01:00
|
|
|
%span.mandatory *
|
|
|
|
= text_field_tag :email, params[:email], required: true
|
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :type do
|
2020-08-31 12:23:40 +02:00
|
|
|
= t('your_question', scope: [:support, :question])
|
2018-11-28 15:19:12 +01:00
|
|
|
%span.mandatory *
|
|
|
|
= select_tag :type, options_for_select(@options, params[:type])
|
|
|
|
|
|
|
|
.contact-champ
|
2020-08-31 12:23:40 +02:00
|
|
|
= label_tag :phone do
|
2021-09-15 19:39:19 +02:00
|
|
|
= t('pro_phone_number', scope: [:supportadmin])
|
2018-11-28 15:19:12 +01:00
|
|
|
= text_field_tag :phone
|
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :subject do
|
2020-08-31 12:23:40 +02:00
|
|
|
= t('subject', scope: [:utils])
|
2018-11-28 15:19:12 +01:00
|
|
|
= text_field_tag :subject, params[:subject], required: false
|
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :text do
|
2020-08-31 12:23:40 +02:00
|
|
|
= t('message', scope: [:utils])
|
2018-11-28 15:19:12 +01:00
|
|
|
%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
|
2020-08-31 12:23:40 +02:00
|
|
|
= button_tag t('send_mail', scope: [:utils]), type: :submit, class: 'button send primary'
|