-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
clairezed
committed
Oct 11, 2023
1 parent
1e37b3b
commit 947debe
Showing
7 changed files
with
68 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.associations": { | ||
"*.mjml": "erb" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<mj-section> | ||
<mj-column> | ||
<mj-text> | ||
<p><%= t('devise.mailer.hello', user_full_name: @resource.full_name) %></p> | ||
|
||
<p><%= t('.description_html', antenne: @resource.antenne.name) %></p> | ||
|
||
<h2 class='style_h3'><%= t('.question_one') %></h2> | ||
|
||
<p><%= t('.answer_one', institution_name: @resource.institution.name) %></p> | ||
|
||
<h2 class='style_h3'><%= t('.question_two') %></h2> | ||
|
||
<p><%= t('.answer_two_html') %></p> | ||
|
||
<h2 class='style_h3'><%= t('.accept_user_invitation_instruction') %></h2> | ||
</mj-text> | ||
|
||
<mj-button background-color="#000091" color="white" border-radius="0" font-weight="700"> | ||
<%= link_to t('.accept'), accept_user_invitation_url(invitation_token: @token), style: 'color: white; text-decoration: none' %> | ||
</mj-button> | ||
|
||
<mj-text> | ||
<p><%= t('.looking_forward') %></p> | ||
|
||
<p><%= t('mailers.team_html', link_to_root: link_to(t('app_name'), root_url)) %></p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<%= render 'mailers/expert_mailer/support_contact_block', antenne: @user.antenne, support_contact_label: t('.support_contact_label') %> |
16 changes: 0 additions & 16 deletions
16
app/views/devise/mailer/reset_password_instructions.html.haml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<mj-section> | ||
<mj-column> | ||
<mj-text> | ||
<p><%= t('devise.mailer.hello', user_full_name: @resource.full_name) %></p> | ||
<% if @resource.invitation_not_accepted? %> | ||
<p><%= t('.account_but_never_connected_html') %></p> | ||
<% else %> | ||
<p><%= t('.someone_has_requested_a_link_html', date: l(@resource.reset_password_sent_at, format: :long_sentence), email: @resource.email) %></p> | ||
<% end%> | ||
</mj-text> | ||
|
||
<mj-button background-color="#000091" color="white" border-radius="0" font-weight="700"> | ||
<% label = @resource.invitation_not_accepted? ? t('.choose_my_password') : t('.change_my_password') %> | ||
<%= link_to label, edit_password_url(@resource, reset_password_token: @token), style: 'color: white; text-decoration: none' %> | ||
</mj-button> | ||
|
||
<mj-text> | ||
<% if @resource.invitation_not_accepted? %> | ||
<p><%= t('.once_connected') %></p> | ||
<% else %> | ||
<p><%= t('.ignore') %></p> | ||
<% end %> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters