jimi
16 years ago
committed by
jimi
7 changed files with 83 additions and 44 deletions
-
8app/controllers/employees_controller.rb
-
4app/views/employees/_form.html.erb
-
8app/views/employees/edit.html.erb
-
30app/views/employees/index.html.erb
-
4app/views/employees/new.html.erb
-
2app/views/employees/show.html.erb
-
69public/stylesheets/application.css
@ -1,8 +1,8 @@ |
|||||
<% title "Edit Employee" %> |
|
||||
|
<% title "Driver Details" %> |
||||
|
|
||||
<%= render :partial => 'form' %> |
<%= render :partial => 'form' %> |
||||
|
|
||||
<p> |
|
||||
<%= link_to "Show", @employee %> | |
|
||||
<%= link_to "View All", employees_path %> |
|
||||
|
<p class="nav"> |
||||
|
<%= link_to "Delete", @employee, :confirm => 'Are you sure?', :method => :delete %> | |
||||
|
<%= link_to "View List", employees_path %> |
||||
</p> |
</p> |
@ -1,5 +1,5 @@ |
|||||
<% title "New Employee" %> |
|
||||
|
<% title "New Driver" %> |
||||
|
|
||||
<%= render :partial => 'form' %> |
<%= render :partial => 'form' %> |
||||
|
|
||||
<p><%= link_to "Back to List", employees_path %></p> |
|
||||
|
<p class="nav"><%= link_to "Back to List", employees_path %></p> |
Reference in new issue