2018-11-28 15:19:12 +01:00
|
|
|
- content_for(:title, 'Contact')
|
|
|
|
|
|
|
|
#contact-form
|
|
|
|
.container
|
2024-06-17 11:57:52 +02:00
|
|
|
%h1
|
2021-09-17 05:48:35 +02:00
|
|
|
= t('.contact_team')
|
2018-11-28 15:19:12 +01:00
|
|
|
|
|
|
|
.description
|
2021-09-17 05:48:35 +02:00
|
|
|
= t('.admin_intro_html', 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
|
2021-09-17 05:48:35 +02:00
|
|
|
= t('.pro_mail')
|
2018-11-28 15:19:12 +01:00
|
|
|
%span.mandatory *
|
|
|
|
= text_field_tag :email, params[:email], required: true
|
|
|
|
|
|
|
|
.contact-champ
|
|
|
|
= label_tag :type do
|
2021-09-17 05:48:35 +02:00
|
|
|
= t('.your_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-17 05:48:35 +02:00
|
|
|
= t('.pro_phone_number')
|
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
|
|
|
|
|
2022-09-05 15:10:32 +02:00
|
|
|
= invisible_captcha
|
|
|
|
|
2018-11-28 15:19:12 +01:00
|
|
|
= 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'
|