recruiter login + index

This commit is contained in:
Mark Moser
2016-07-31 09:56:02 -05:00
parent c9375937fa
commit 0107c601b3
11 changed files with 179 additions and 7 deletions

View File

@ -0,0 +1,2 @@
<h1>Recruiter#create</h1>
<p>Find me in app/views/recruiter/create.html.erb</p>

View File

@ -0,0 +1,23 @@
<main class="summary_tpl">
<h1>Candidates</h1>
<%= link_to "Create New Candidate", new_candidate_path, {class: 'button'} %>
<table cellspacing="0" cellpadding="0">
<tr>
<th>Candidate</th>
<th>Email</th>
<th>Experience</th>
<th>Status</th>
</tr>
<% @candidates.each do |candidate| %>
<tr>
<td><%= candidate.name %></td>
<td><%= mail_to(candidate.email) %></td>
<td><%= candidate.experience %> years</td>
<td><%= candidate.status %></td>
</tr>
<% end %>
</table>
</main>

View File

@ -0,0 +1,21 @@
<main class="intro_tpl">
<h1>Recruiter Login</h1>
<% if flash[:error].present? %>
<div class="error"><%= flash[:error] %></div>
<% end %>
<%= form_for :auth, url: recruiter_login_path do |form| %>
<div class="form-group">
<%= form.label :email %>
<%= form.email_field :email %>
</div>
<div class="form-group">
<%= form.label :password %>
<%= form.password_field :password %>
</div>
<%= submit_tag "Login" %>
<% end %>
</main>

View File

@ -0,0 +1,2 @@
<h1>Create new candidate</h1>