mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
clean up views & volunteer display
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<div class="container">
|
||||
<h1>Editing Volunteer Information</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @volunteer %> |
|
||||
<%= link_to 'Back', volunteers_path %>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,30 @@
|
||||
<div class="container">
|
||||
<h1>Volunteer Listing</h1>
|
||||
<% @volunteers.each do |volunteer| %>
|
||||
<%= volunteer.name %>
|
||||
<br>
|
||||
<% end %>
|
||||
<h1>Volunteers</h1>
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> Name </th>
|
||||
<th> Phone </th>
|
||||
<th> Email </th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @volunteers.each do |volunteer| %>
|
||||
<tr>
|
||||
<td><%= volunteer.name %></td>
|
||||
<td><%= volunteer.phone %></td>
|
||||
<td><%= volunteer.email %></td>
|
||||
<td><%= link_to 'Show', volunteer %></td>
|
||||
<td><%= link_to 'Edit', edit_volunteer_path(volunteer) %></td>
|
||||
<td><%= link_to 'Destroy', volunteer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%= link_to '+ Add Volunteer', new_volunteer_path, class: "btn btn-default" %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Edit', edit_volunteer_path(@volunteer) %> |
|
||||
<%= link_to 'Back', volunteer_path %>
|
||||
<%= link_to 'Back', volunteers_path %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user