use Current.contact_email in app
This commit is contained in:
parent
d13910dac4
commit
edc4e60b81
7 changed files with 8 additions and 8 deletions
|
@ -23,7 +23,7 @@ class SupportController < ApplicationController
|
||||||
redirect_to root_path(formulaire_contact_general_submitted: true)
|
redirect_to root_path(formulaire_contact_general_submitted: true)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contacter à #{helpers.mail_to(CONTACT_EMAIL)}."
|
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contacter à #{helpers.mail_to(Current.contact_email)}."
|
||||||
|
|
||||||
if params[:admin]
|
if params[:admin]
|
||||||
setup_context_admin
|
setup_context_admin
|
||||||
|
|
|
@ -80,7 +80,7 @@ module Users
|
||||||
|
|
||||||
def ensure_update_email_is_authorized
|
def ensure_update_email_is_authorized
|
||||||
if current_user.instructeur? && !target_email_allowed?
|
if current_user.instructeur? && !target_email_allowed?
|
||||||
flash.alert = t('users.profil.ensure_update_email_is_authorized.email_not_allowed', contact_email: CONTACT_EMAIL, requested_email: requested_email)
|
flash.alert = t('users.profil.ensure_update_email_is_authorized.email_not_allowed', contact_email: Current.contact_email, requested_email: requested_email)
|
||||||
redirect_to profil_path
|
redirect_to profil_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
- c.with_body do
|
- c.with_body do
|
||||||
Cette page permet la mise en forme de l’attestation avec un nouvel éditeur plus flexible
|
Cette page permet la mise en forme de l’attestation avec un nouvel éditeur plus flexible
|
||||||
tout en respectant la charte de l’état. Essayez-la et donnez-nous votre avis
|
tout en respectant la charte de l’état. Essayez-la et donnez-nous votre avis
|
||||||
en nous envoyant un email à #{mail_to(CONTACT_EMAIL, subject: "Feedback attestation v2")}.
|
en nous envoyant un email à #{mail_to(Current.contact_email, subject: "Feedback attestation v2")}.
|
||||||
%br
|
%br
|
||||||
%strong Les attestations délivrées suivent encore l’ancien format :
|
%strong Les attestations délivrées suivent encore l’ancien format :
|
||||||
l’activation des attestations basées sur ce format sera bientôt disponible.
|
l’activation des attestations basées sur ce format sera bientôt disponible.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- when 'other_nature', 'not_collectivite_territoriale'
|
- when 'other_nature', 'not_collectivite_territoriale'
|
||||||
%p Votre situation nécessite un traitement particulier.
|
%p Votre situation nécessite un traitement particulier.
|
||||||
|
|
||||||
= mail_to(CONTACT_EMAIL,
|
= mail_to(Current.contact_email,
|
||||||
'Contactez le support',
|
'Contactez le support',
|
||||||
subject: 'Récupération de dossiers',
|
subject: 'Récupération de dossiers',
|
||||||
class: 'fr-btn')
|
class: 'fr-btn')
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
%li
|
%li
|
||||||
= link_to 'Essayer avec une autre adresse email', identification_recovery_path, class: 'fr-btn'
|
= link_to 'Essayer avec une autre adresse email', identification_recovery_path, class: 'fr-btn'
|
||||||
%li
|
%li
|
||||||
= mail_to(CONTACT_EMAIL,
|
= mail_to(Current.contact_email,
|
||||||
'Contactez le support',
|
'Contactez le support',
|
||||||
subject: 'Récupération de dossiers',
|
subject: 'Récupération de dossiers',
|
||||||
class: 'fr-btn fr-btn--secondary')
|
class: 'fr-btn fr-btn--secondary')
|
||||||
|
|
|
@ -273,7 +273,7 @@
|
||||||
.icon.bubble.avis-icon
|
.icon.bubble.avis-icon
|
||||||
.width-100
|
.width-100
|
||||||
%h2.instructeur
|
%h2.instructeur
|
||||||
= CONTACT_EMAIL
|
= Current.contact_email
|
||||||
%span.date Réponse donnée le 13/01/2012
|
%span.date Réponse donnée le 13/01/2012
|
||||||
%p Je donne un avis favorable
|
%p Je donne un avis favorable
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
%ul.fr-mb-2w
|
%ul.fr-mb-2w
|
||||||
%li
|
%li
|
||||||
= t('views.accessibility_statement.contact.infos.email_html')
|
= t('views.accessibility_statement.contact.infos.email_html')
|
||||||
= mail_to CONTACT_EMAIL
|
= mail_to Current.contact_email
|
||||||
%li
|
%li
|
||||||
= t('views.accessibility_statement.contact.infos.adress_html')
|
= t('views.accessibility_statement.contact.infos.adress_html')
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
- if current_user.instructeur?
|
- if current_user.instructeur?
|
||||||
%p.mb-4
|
%p.mb-4
|
||||||
= t('.email_explications_html',
|
= t('.email_explications_html',
|
||||||
contact_email: CONTACT_EMAIL,
|
contact_email: Current.contact_email,
|
||||||
application_name: Current.application_name,
|
application_name: Current.application_name,
|
||||||
legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', '))
|
legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', '))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue