mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
Louis | Abstracts freecyclery functionality and adds closed applications page
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,17 @@
|
||||
.container
|
||||
%br
|
||||
|
||||
%h1 Freecyclery Bikes for Pickup
|
||||
%table.table.table-striped.table-bordered.table-hover
|
||||
%thead
|
||||
%tr
|
||||
%th Brand
|
||||
%th Model
|
||||
%th Client
|
||||
%tbody
|
||||
- @bikes_for_pickup.each do |bike|
|
||||
%tr
|
||||
%td= bike.brand
|
||||
%td= bike.model
|
||||
%td= bike.client.name
|
||||
|
||||
Reference in New Issue
Block a user