mirror of
https://github.com/fspc/bike-database.git
synced 2025-02-23 01:23:24 -05:00
removes references to agency_name
This commit is contained in:
parent
6119733ad7
commit
caf01518be
@ -12,5 +12,4 @@
|
||||
border: 5px solid black;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,7 +67,6 @@ class ClientsController < ApplicationController
|
||||
:agency_id,
|
||||
:notes,
|
||||
:bike_fixed,
|
||||
:number_of_calls,
|
||||
:application_voided,
|
||||
:pickup_date,
|
||||
:volunteer_at_pickup)
|
||||
|
@ -1,6 +1,4 @@
|
||||
class Client < ActiveRecord::Base
|
||||
# TODO: figure out why application_date validation is fubar
|
||||
# validates :application_date, presence: true
|
||||
belongs_to :bike
|
||||
belongs_to :agency
|
||||
|
||||
|
@ -78,11 +78,6 @@
|
||||
.col-sm-10
|
||||
= f.check_box :bike_fixed, disabled: disabled
|
||||
|
||||
.form-group
|
||||
= f.label "Number of Calls Made:", class: "col-sm-2 control-label"
|
||||
.col-sm-10
|
||||
= f.text_field :number_of_calls, class: "form-control", disabled: disabled
|
||||
|
||||
.form-group
|
||||
= f.label "Application Voided:", class: "col-sm-2 control-label"
|
||||
.col-sm-10
|
||||
|
@ -8,7 +8,7 @@
|
||||
.client-information
|
||||
= @client.name
|
||||
%br
|
||||
= @client.agency.agency_name if @client.agency
|
||||
= @client.agency.name if @client.agency
|
||||
.horizontal-line
|
||||
%br
|
||||
Includes:
|
||||
@ -41,7 +41,7 @@
|
||||
.client-information
|
||||
= @client.name
|
||||
%br
|
||||
= @client.agency.agency_name if @client.agency
|
||||
= @client.agency.name if @client.agency
|
||||
.horizontal-line
|
||||
.row
|
||||
.col-xs-6
|
||||
|
3
notes.md
3
notes.md
@ -2,12 +2,15 @@
|
||||
- search bikes via brand, make, or serial number.
|
||||
- add mechanics table and change text input to a dropdown
|
||||
- freecyclery receipts should fit into sleeve and not squish data
|
||||
currently, when you print a single receipt it fits better - why is that?
|
||||
- assign a bike from the available freecyclery bikes page
|
||||
- there should be nice feedback indicating that the bike was sold
|
||||
- order agencies by name
|
||||
- restyle agencies page to not have show or destroy links
|
||||
|
||||
# Tech
|
||||
- clients should require a name
|
||||
- eliminate duplication between client receipts and freecyclery receipts
|
||||
- use log number in bike url instead of id
|
||||
- paginate 'all clients' page
|
||||
- convert to bootstrap-less
|
||||
|
Loading…
x
Reference in New Issue
Block a user