diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 22:08:05 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 22:08:05 +0200 |
| commit | 90207029de7474082310d0725801d60f7145fa98 (patch) | |
| tree | 97b0c54fcd004ff221265e479f2602f8e3a5b093 /app/views/otp_enrollments | |
| parent | 215279dfb003163a7938ba948082363c105e888f (diff) | |
Extract admin strings to i18n: sessions, otp, users/edit
Diffstat (limited to 'app/views/otp_enrollments')
| -rw-r--r-- | app/views/otp_enrollments/show.html.erb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb index 12067ae3..e18d7fd1 100644 --- a/app/views/otp_enrollments/show.html.erb +++ b/app/views/otp_enrollments/show.html.erb | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | <h1>Enable second factor</h1> | 1 | <h1><%= t(".title") %></h1> |
| 2 | 2 | ||
| 3 | <div id="admin_layout"> | 3 | <div id="admin_layout"> |
| 4 | <div class="layout_row_label">Scan</div> | 4 | <div class="layout_row_label"><%= t(".scan") %></div> |
| 5 | <div class="layout_row_content"> | 5 | <div class="layout_row_content"> |
| 6 | <div class="otp_qr"> | 6 | <div class="otp_qr"> |
| 7 | <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) | 7 | <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) |
| 8 | .as_svg(:module_size => 4, :viewbox => true, | 8 | .as_svg(:module_size => 4, :viewbox => true, |
| 9 | :color => "000", :fill => "fff") %> | 9 | :color => "000", :fill => "fff") %> |
| 10 | </div> | 10 | </div> |
| 11 | <span class="field_hint">Or enter the secret manually: <code><%= current_user.otp_pending_secret %></code></span> | 11 | <span class="field_hint"><%= t(".manual_hint") %> <code><%= current_user.otp_pending_secret %></code></span> |
| 12 | </div> | 12 | </div> |
| 13 | 13 | ||
| 14 | <div class="layout_row_label">Confirm</div> | 14 | <div class="layout_row_label">Confirm</div> |
| @@ -17,10 +17,9 @@ | |||
| 17 | <%= text_field_tag :code, nil, :autofocus => true, | 17 | <%= text_field_tag :code, nil, :autofocus => true, |
| 18 | :autocomplete => "one-time-code", :inputmode => "numeric" %> | 18 | :autocomplete => "one-time-code", :inputmode => "numeric" %> |
| 19 | <%= button_tag :type => "submit", :class => "action_button" do %> | 19 | <%= button_tag :type => "submit", :class => "action_button" do %> |
| 20 | <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> Confirm | 20 | <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %> |
| 21 | <% end %> | 21 | <% end %> |
| 22 | <% end %> | 22 | <% end %> |
| 23 | <span class="field_hint">Enter the six-digit code your app shows | 23 | <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span> |
| 24 | for “<%= OTP_ISSUER %>”.</span> | ||
| 25 | </div> | 24 | </div> |
| 26 | </div> | 25 | </div> |
