2015-04-27 06:59:48 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Admin Login</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<% if @message %>
|
|
|
|
<%= @message %>
|
2018-02-21 20:45:57 -05:00
|
|
|
<% if @error %><p><%= @error %></p><% end %>
|
|
|
|
|
2018-02-22 22:05:39 -05:00
|
|
|
<% if @second_factor_required %>
|
|
|
|
<%=form_tag({}, method: :put) do %>
|
|
|
|
<%= label_tag(:second_factor_token, t('login.second_factor_description')) %>
|
2018-02-26 20:30:44 -05:00
|
|
|
<%= render 'common/second_factor_text_field' %><br><br>
|
2018-02-22 22:05:39 -05:00
|
|
|
<%= submit_tag t('submit')%>
|
|
|
|
<% end %>
|
2017-12-21 20:18:12 -05:00
|
|
|
<% end %>
|
2015-04-27 06:59:48 -04:00
|
|
|
<% else %>
|
|
|
|
<%=form_tag({}, method: :put) do %>
|
|
|
|
<%= label_tag(:email, t('admin_login.email_input')) %>
|
2016-05-25 14:11:07 -04:00
|
|
|
<%= text_field_tag(:email, nil, autofocus: true) %><br><br>
|
2015-04-27 06:59:48 -04:00
|
|
|
<%= submit_tag t('admin_login.submit_button') %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</body>
|
|
|
|
</html>
|