-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcannot_show.html.erb
39 lines (39 loc) · 1.42 KB
/
cannot_show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<turbo-frame id="main-modal-content">
<div class="single-page" data-controller="clipboard">
<h3 id="<%= dom_id(@token, :token_ask_for_prolongation_title) %>">
<span class="fr-icon-arrow-right-line fr-icon--lg"></span>
<%= t('.title') %>
</h3>
<p class="fr-mb-4v">
<%= t('.description',
demandeur: @token.demandeur.full_name,
token_id: @token.id,
remaining_time: distance_of_time_in_words(Time.zone.now, @token.end_timestamp)
).html_safe %>
</p>
<p class="fr-mb-4v">
<%= t('.demandeur', demandeur: @token.demandeur.full_name).html_safe %>
<br />
<span data-clipboard-target="source">
<%= @token.demandeur.email %>
</span>
</p>
<p class="fr-mb-4v">
<%= t('.contact_technique', contact_technique: @token.authorization_request.contact_technique.full_name).html_safe %>
<br />
<span data-clipboard-target="source">
<%= @token.authorization_request.contact_technique.email %>
</span>
</p>
<p>
<%= t('.authorization_request_link').html_safe %>
<%= link_to(
t('shared.links.to_datapass', external_id: @token.authorization_request.external_id).html_safe,
datapass_authorization_request_url(@token.authorization_request),
id: :authorization_request_link,
class: %w(fr-link),
target: '_blank')
%>
</p>
</div>
</turbo-frame>