html reset

This commit is contained in:
Mark Moser
2017-03-20 10:57:50 -05:00
parent cb6f41fe29
commit 0727440a31
58 changed files with 397 additions and 529 deletions

View File

@ -1,23 +1,20 @@
<%
content_for :main_class, "intro_tpl"
content_for :title, "Skills Assessment Admin"
%>
<% content_for :title, "Skills Assessment Admin" %>
<h1>Admin Login</h1>
<%= form_for :auth, url: admin_login_path do |form| %>
<% if flash[:error].present? %>
<div class="form-group">
<div>
Need a <%= link_to "password reset", admin_reset_request_path %>?
</div>
<% end %>
<div class="form-group">
<div>
<%= form.label :email %>
<%= form.email_field :email %>
</div>
<div class="form-group">
<div>
<%= form.label :password %>
<%= form.password_field :password %>
</div>

View File

@ -1,22 +1,18 @@
<%
content_for :main_class, "intro_tpl"
content_for :title, "Skills Assessment Admin"
%>
<% content_for :title, "Skills Assessment Admin" %>
<h1>Password Reset</h1>
<%= form_for :auth, url: admin_reset_password_path do |form| %>
<%= hidden_field_tag :reset_token, params[:reset_token] %>
<div class="form-group">
<div>
<%= form.label :password %>
<%= form.password_field :password %>
</div>
<div class="form-group">
<div>
<%= form.label :password_confirmation %>
<%= form.password_field :password_confirmation %>
</div>
<%= submit_tag "Reset Password" %>
<%= hidden_field_tag :reset_token, params[:reset_token] %>
<% end %>

View File

@ -1,12 +1,9 @@
<%
content_for :main_class, "intro_tpl"
content_for :title, "Skills Assessment Admin"
%>
<% content_for :title, "Skills Assessment Admin" %>
<h1>Password Reset</h1>
<%= form_for :auth, url: admin_send_reset_path do |form| %>
<div class="form-group">
<div>
<%= form.label :email %>
<%= form.email_field :email %>
</div>