<% if @message %>
<%= @message %>
<% if @error %><%= @error %>
<% end %>
<% if @second_factor_required %>
<%=form_tag({}, method: :put) do %>
<%= label_tag(:second_factor_token, t('login.second_factor_description')) %>
<%= render 'common/second_factor_text_field' %>
<%= submit_tag t('submit')%>
<% end %>
<%if @backup_codes_enabled%>
<%= form_tag({}, method: :put) do%>
<%= label_tag(:second_factor_token, t("login.second_factor_backup_description")) %>
<%= render 'common/second_factor_backup_input' %>
<%= submit_tag(t("submit")) %>
<%end%>
<%=t "login.second_factor_backup" %>
<%= render 'common/second_factor_form_script' %>
<%end%>
<% end %>
<% else %>
<%=form_tag({}, method: :put) do %>
<%= label_tag(:email, t('admin_login.email_input')) %>
<%= text_field_tag(:email, nil, autofocus: true) %>
<%= submit_tag t('admin_login.submit_button') %>
<% end %>
<% end %>