diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-15 16:28:21 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-15 16:28:21 +0200 |
| commit | 445362ed2f8591d54a3c34cb3c5a69049aefa8c6 (patch) | |
| tree | 064f2d2e936639fa6ca412ed662203b144172c3d /app/views/otp_challenges/new.html.erb | |
| parent | aa984c8c0cad4ac4bff74fc38f60c0e06af6fc50 (diff) | |
Style totp input fields so that they work better on mobile
Diffstat (limited to 'app/views/otp_challenges/new.html.erb')
| -rw-r--r-- | app/views/otp_challenges/new.html.erb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/otp_challenges/new.html.erb b/app/views/otp_challenges/new.html.erb index 8247b262..ff7df222 100644 --- a/app/views/otp_challenges/new.html.erb +++ b/app/views/otp_challenges/new.html.erb | |||
| @@ -6,10 +6,13 @@ | |||
| 6 | <div class="layout_row_content"> | 6 | <div class="layout_row_content"> |
| 7 | <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> | 7 | <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> |
| 8 | <%= text_field_tag :code, nil, :autofocus => true, | 8 | <%= text_field_tag :code, nil, :autofocus => true, |
| 9 | :autocomplete => "one-time-code", :inputmode => "numeric" %> | 9 | :autocomplete => "one-time-code", :inputmode => "numeric", |
| 10 | <%= submit_tag t(".log_in") %> | 10 | :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %> |
| 11 | <span class="field_hint"> <%= t(".hint") %> </span> | ||
| 12 | <%= button_tag :type => "submit", :class => "action_button" do %> | ||
| 13 | <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %> | ||
| 14 | <% end %> | ||
| 11 | <% end %> | 15 | <% end %> |
| 12 | <span class="field_hint"> <%= t(".hint") %> </span> | ||
| 13 | </div> | 16 | </div> |
| 14 | </div> | 17 | </div> |
| 15 | </div> | 18 | </div> |
