<%=l 'twofa_generate_backup_codes' -%>
<%= form_tag({ action: :create },
{ method: :post,
id: 'twofa_form' }) do -%>
<%= render partial: 'twofa/twofa_code_form' -%>
<%= submit_tag l('button_submit'), name: :submit_otp -%>
<%= link_to l('twofa_resend_code'), { action: 'init' }, method: :post if @twofa_view[:resendable] -%>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'my/sidebar' %>
<% end %>