<%=l 'twofa_label_setup' -%>

<%= form_tag({ action: :activate, scheme: @twofa_view[:scheme_name] }, { method: :post, id: 'twofa_form' }) do -%>

<%=t "twofa__#{@twofa_view[:scheme_name]}__text_pairing_info_html" -%>

<%= render partial: "twofa/#{@twofa_view[:scheme_name]}/new", locals: { twofa_view: @twofa_view } -%>

<%= text_field_tag :twofa_code, nil, autocomplete: 'off', autofocus: true -%>

<%= submit_tag l('button_activate'), name: :submit_otp -%> <%= link_to l('twofa_resend_code'), { action: 'activate_init', scheme: @twofa_view[:scheme_name] }, method: :post if @twofa_view[:resendable] -%> <% end %>
<% unless @user.must_activate_twofa? %> <% content_for :sidebar do %> <%= render :partial => 'my/sidebar' %> <% end %> <% end %>