recruiter login + index
This commit is contained in:
2
app/views/recruiter/create.html.erb
Normal file
2
app/views/recruiter/create.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Recruiter#create</h1>
|
||||
<p>Find me in app/views/recruiter/create.html.erb</p>
|
23
app/views/recruiter/index.html.erb
Normal file
23
app/views/recruiter/index.html.erb
Normal 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>
|
21
app/views/recruiter/login.html.erb
Normal file
21
app/views/recruiter/login.html.erb
Normal 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>
|
2
app/views/recruiter/new.html.erb
Normal file
2
app/views/recruiter/new.html.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<h1>Create new candidate</h1>
|
||||
|
Reference in New Issue
Block a user