Loos
10 years ago
7 changed files with 43 additions and 5 deletions
@ -0,0 +1,13 @@ |
|||||
|
class FreecycleryController < ApplicationController |
||||
|
before_action :authenticate_user! |
||||
|
|
||||
|
def closed_applications |
||||
|
@closed_applications = Client.closed_applications |
||||
|
end |
||||
|
|
||||
|
def ready_for_pickup |
||||
|
@bikes_for_pickup = Bike.bikes_ready_for_pickup |
||||
|
end |
||||
|
|
||||
|
|
||||
|
end |
@ -0,0 +1,19 @@ |
|||||
|
.container |
||||
|
.row |
||||
|
%h1 Closed Applications |
||||
|
|
||||
|
%table.table.table-striped.table-bordered.table-hover |
||||
|
%thead |
||||
|
%tr |
||||
|
%th Name |
||||
|
%th Voided |
||||
|
%th Completed |
||||
|
%th Show |
||||
|
%tbody |
||||
|
- @closed_applications.each do |client| |
||||
|
%tr |
||||
|
%td= client.name |
||||
|
%td= client.application_voided |
||||
|
%td= client.completion_date |
||||
|
%td= link_to 'Show', client |
||||
|
%br |
Loading…
Reference in new issue