Browse Source

removes references to agency_name

master
Louis Knapp 9 years ago
parent
commit
caf01518be
  1. 1
      app/assets/stylesheets/client_receipt.scss
  2. 1
      app/controllers/clients_controller.rb
  3. 2
      app/models/client.rb
  4. 5
      app/views/clients/_fields.html.haml
  5. 4
      app/views/freecyclery/receipt.html.haml
  6. 3
      notes.md

1
app/assets/stylesheets/client_receipt.scss

@ -12,5 +12,4 @@
border: 5px solid black;
height: 400px;
}
}

1
app/controllers/clients_controller.rb

@ -67,7 +67,6 @@ class ClientsController < ApplicationController
:agency_id,
:notes,
:bike_fixed,
:number_of_calls,
:application_voided,
:pickup_date,
:volunteer_at_pickup)

2
app/models/client.rb

@ -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

5
app/views/clients/_fields.html.haml

@ -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

4
app/views/freecyclery/receipt.html.haml

@ -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

@ -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…
Cancel
Save