summaryrefslogtreecommitdiff
path: root/app/views/otp_enrollments
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-15 16:28:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-15 16:28:21 +0200
commit445362ed2f8591d54a3c34cb3c5a69049aefa8c6 (patch)
tree064f2d2e936639fa6ca412ed662203b144172c3d /app/views/otp_enrollments
parentaa984c8c0cad4ac4bff74fc38f60c0e06af6fc50 (diff)
Style totp input fields so that they work better on mobile
Diffstat (limited to 'app/views/otp_enrollments')
-rw-r--r--app/views/otp_enrollments/show.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb
index 16addb5b..a7604dd2 100644
--- a/app/views/otp_enrollments/show.html.erb
+++ b/app/views/otp_enrollments/show.html.erb
@@ -18,12 +18,13 @@
18 <div class="layout_row_content"> 18 <div class="layout_row_content">
19 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %> 19 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %>
20 <%= text_field_tag :code, nil, :autofocus => true, 20 <%= text_field_tag :code, nil, :autofocus => true,
21 :autocomplete => "one-time-code", :inputmode => "numeric" %> 21 :autocomplete => "one-time-code", :inputmode => "numeric",
22 :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
23 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span>
22 <%= button_tag :type => "submit", :class => "action_button" do %> 24 <%= button_tag :type => "submit", :class => "action_button" do %>
23 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %> 25 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %>
24 <% end %> 26 <% end %>
25 <% end %> 27 <% end %>
26 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span>
27 </div> 28 </div>
28 </div> 29 </div>
29</div> 30</div>