PostMeeting 05-18

.
Background Color - return to how worked initially.  
	Removed erroneous stylesheet 'scaffold'.

----

1. 
After Zip, have "Sign Up" button that displays the form with Info on the service / sales-pitch.  Make that a separate intermediate page.

Move 1 question - type of power / renewable or cheapest.
Include email field, which is there now.

---

This is the devise registrations/new/form page - the same place the home page redirected previously, but it  now only requests:
	email 
	plan_type (cheap/renewable)

... and it carries over from prev-form and saves the values:
		zip_id
        service_type

---

Re the 'double-redirect' error, which created an error with form-re-display:
Although most of the form-fields are no longer connected to this page, we do have to do a redirect to the form if an error occurs, and re-pass the values passed from the previous form.  This is now done.

---

The next page is the next level of basic info, formerly on the previous page. It is now under the users view folder, and handled by users_controller.

The 'bill info' partial, which was part of this question-set, is also moved under this view-folder.  That is now split, with the address portions in a separate partial.

Rather than passing params again, we get the zip-table-info directly from the now-existing user model instance's relationship, as User.zip.<property> (city, state, zip)

---

I added check in the users_controller to make sure we don't create a 2nd bill for a user, if they go 'back' to the "first_page_sign_up" page and re-submit (as this step is no longer part of 'create'.


-------------------

2.
-FORM jQuery - show-hide based on:
	 :svc_new_old) Are you moving to a new address? 

... as discussed ... and then:

	:bill_upload_option - form-tag, not saved - 3 options
		1. upload direct  -> Paperclip to S3 -> processed by Admin-bill-form
		2. email attachment -> processed by Admin-bill-form (have our email visible here)
		3. fill in data on form here
		(send from phone -> ???  - wait on this)


----------------

3 - Merged in Changes you made to form-field labels, header, and footer, and got the Signature 'placeholder' into rails-format.


---------------

4.
Upload Bill Image Option with paperclip - 
	upload direct  -> Paperclip to S3 -> processed by Admin-bill-form

I went with the most straightforward config, which is to put all the settings in /config/initializers/paperclip.rb.  The credentials from ENV you had in production are moved there, along with some other settings.

	The other relevant pieces are in:
		/app/models/bill.rb (defining the attachment)
		/app/controllers/bills_controller.rb (permissions)
		/app/views/bills/show.html.erb (view field added at bottom)
		/app/views/users/first_page_sign_up.html.erb (when "Upload My Bill Now" is selected)

This appears to work from on localhost, though I cannot test the results.