Browse Source

removes references to agency_name

master
Louis Knapp 8 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; border: 5px solid black;
height: 400px; height: 400px;
} }
} }

1
app/controllers/clients_controller.rb

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

2
app/models/client.rb

@ -1,6 +1,4 @@
class Client < ActiveRecord::Base class Client < ActiveRecord::Base
# TODO: figure out why application_date validation is fubar
# validates :application_date, presence: true
belongs_to :bike belongs_to :bike
belongs_to :agency belongs_to :agency

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

@ -78,11 +78,6 @@
.col-sm-10 .col-sm-10
= f.check_box :bike_fixed, disabled: disabled = 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 .form-group
= f.label "Application Voided:", class: "col-sm-2 control-label" = f.label "Application Voided:", class: "col-sm-2 control-label"
.col-sm-10 .col-sm-10

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

@ -8,7 +8,7 @@
.client-information .client-information
= @client.name = @client.name
%br %br
= @client.agency.agency_name if @client.agency = @client.agency.name if @client.agency
.horizontal-line .horizontal-line
%br %br
Includes: Includes:
@ -41,7 +41,7 @@
.client-information .client-information
= @client.name = @client.name
%br %br
= @client.agency.agency_name if @client.agency = @client.agency.name if @client.agency
.horizontal-line .horizontal-line
.row .row
.col-xs-6 .col-xs-6

3
notes.md

@ -2,12 +2,15 @@
- search bikes via brand, make, or serial number. - search bikes via brand, make, or serial number.
- add mechanics table and change text input to a dropdown - add mechanics table and change text input to a dropdown
- freecyclery receipts should fit into sleeve and not squish data - 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 - assign a bike from the available freecyclery bikes page
- there should be nice feedback indicating that the bike was sold - there should be nice feedback indicating that the bike was sold
- order agencies by name - order agencies by name
- restyle agencies page to not have show or destroy links - restyle agencies page to not have show or destroy links
# Tech # Tech
- clients should require a name
- eliminate duplication between client receipts and freecyclery receipts
- use log number in bike url instead of id - use log number in bike url instead of id
- paginate 'all clients' page - paginate 'all clients' page
- convert to bootstrap-less - convert to bootstrap-less

Loading…
Cancel
Save