summaryrefslogtreecommitdiff
path: root/app/views/otp_challenges/new.html.erb
blob: ff7df2223b2c992a153318f92e18389171c9e588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h1><%= t(".title") %></h1>

<div class="admin_layout">
  <div class="layout_row">
    <div class="layout_row_label"> <%= t(".code") %> </div>
    <div class="layout_row_content">
      <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %>
        <%= text_field_tag :code, nil, :autofocus => true,
              :autocomplete => "one-time-code", :inputmode => "numeric",
              :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
        <span class="field_hint"> <%= t(".hint") %> </span>
        <%= button_tag :type => "submit", :class => "action_button" do %>
          <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>