summaryrefslogtreecommitdiff
path: root/app/views/otp_enrollments
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/otp_enrollments')
-rw-r--r--app/views/otp_enrollments/show.html.erb36
1 files changed, 20 insertions, 16 deletions
diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb
index 894885b0..03405d5f 100644
--- a/app/views/otp_enrollments/show.html.erb
+++ b/app/views/otp_enrollments/show.html.erb
@@ -1,25 +1,29 @@
1<h1><%= t(".title") %></h1> 1<h1><%= t(".title") %></h1>
2 2
3<div id="admin_layout"> 3<div id="admin_layout">
4 <div class="layout_row_label"><%= t(".scan") %></div> 4 <div class="layout_row">
5 <div class="layout_row_content"> 5 <div class="layout_row_label"><%= t(".scan") %></div>
6 <div class="otp_qr"> 6 <div class="layout_row_content">
7 <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) 7 <div class="otp_qr">
8 .as_svg(:module_size => 4, :viewbox => true, 8 <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri)
9 :color => "000", :fill => "fff") %> 9 .as_svg(:module_size => 4, :viewbox => true,
10 :color => "000", :fill => "fff") %>
11 </div>
12 <span class="field_hint"><%= t(".manual_hint") %> <code><%= current_user.otp_pending_secret %></code></span>
10 </div> 13 </div>
11 <span class="field_hint"><%= t(".manual_hint") %> <code><%= current_user.otp_pending_secret %></code></span>
12 </div> 14 </div>
13 15
14 <div class="layout_row_label"><%= t(".confirm") %></div> 16 <div class="layout_row">
15 <div class="layout_row_content"> 17 <div class="layout_row_label"><%= t(".confirm") %></div>
16 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %> 18 <div class="layout_row_content">
17 <%= text_field_tag :code, nil, :autofocus => true, 19 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %>
18 :autocomplete => "one-time-code", :inputmode => "numeric" %> 20 <%= text_field_tag :code, nil, :autofocus => true,
19 <%= button_tag :type => "submit", :class => "action_button" do %> 21 :autocomplete => "one-time-code", :inputmode => "numeric" %>
20 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %> 22 <%= button_tag :type => "submit", :class => "action_button" do %>
23 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %>
24 <% end %>
21 <% end %> 25 <% end %>
22 <% end %> 26 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span>
23 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span> 27 </div>
24 </div> 28 </div>
25</div> 29</div>