<%= t(".title") %>

<% if current_user.otp_enrolled? %>

<%= t(".hint", :minutes => AuthenticatedSystem::ELEVATION_MAX_AGE.in_minutes.to_i) %>

<%= form_tag elevation_path do %>
<%= t(".code") %>
<%= text_field_tag :code, nil, :autocomplete => "one-time-code", :inputmode => "numeric", :autofocus => true %>
<%= submit_tag t(".elevate") %>
<% end %> <% else %> <%# An admin without an enrolled factor cannot elevate at all. Say so and point at enrolment rather than showing a field that cannot work. %>

<%= t(".not_enrolled") %>

<%= link_to t(".enrol"), otp_enrollment_path, :class => "action_button" %> <% end %>