<% 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 %> <% 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 %>