Commit Graph
31 Commits
Author SHA1 Message Date
Eric Davis 71060831fc Removed console logging statement. #1703 2008-10-13 11:19:22 -07:00
Eric Davis e5822befb0 Added the ability to pass a default value into the field_with_budget_observer_and_totals so the system defaults will appear correctly. #1351 2008-06-20 11:54:44 -07:00
Eric Davis 3dea68522e Added custom fields to track number or % values. #1348 2008-06-19 17:23:39 -07:00
Eric Davis 8295b737a1 Potential fix by calling the update every 5 seconds. Brute force but works.
When the FireFox "suggest history" dropbox is used, neither the blur nor change event is fired.  I have one solution that covers many of the common cases but fails on some others:

* Works - type, down arrow to suggest history, tab
* Works - type, down arrow to suggest history, enter, tab
* Works - type, click
* Works - type, tab
* Fails - down arrow to suggest history, enter, tab
* Fails - down arrow to suggest history, arrow right, tab

I have another solution which is to have a timer update the budget every 5 seconds.  This will make sure that even if the blur/change events are not fired, the values will be updated soon.  It's brute force but works (in FF so far, still need to test cross-browser).  I'm not seeing any performance impact, even with debugging on.

  #1350
2008-06-19 16:33:15 -07:00
Eric Davis b776098c7d Changed profit to take into account the overhead along with the total labor cost
when profit is a %

* Fixed Models
* Fixed JS Calculator
* Cleaned up specs to access attributes directly

  #1349
2008-06-19 15:29:02 -07:00
Eric Davis c5a59ba5fe More form cleanup. #1274 2008-06-12 15:14:17 -07:00
Eric Davis 52d6687f52 More form cleanup. #1274 2008-06-12 15:04:01 -07:00
Eric Davis 8a69714981 Converted side form to a table. #1274 2008-06-12 14:54:37 -07:00
Eric Davis ae723394d7 Reduced the size of the subject lin. #1274 2008-06-12 14:27:15 -07:00
Eric Davis 23c6ee6e92 Renamed Deliverable.due_date to due so it doesn't conflict with issue.due_date 2008-06-03 17:36:57 -07:00
Eric Davis 1ea8264c7d Moved call to after the form fields are setup. #1274 2008-06-03 16:30:58 -07:00
Eric Davis 9012487889 Corrected field display. #1274 2008-06-03 16:26:48 -07:00
Eric Davis 821b779535 Hooked up the edit form. #1190 2008-05-28 16:59:16 -07:00
Eric Davis 0e23c3c1c2 Added signoff checkboxes. #1135 2008-05-21 10:25:14 -07:00
Eric Davis 91f56a6f21 Hooked up the toggle to adjust the calculations. #1135 2008-05-21 09:30:15 -07:00
Eric Davis bdec36e7ea Added toggle for the fixed cost, #1135 2008-05-21 09:26:22 -07:00
Eric Davis 8548d46637 Added support for STI deliverables
* HourlyDeliverables cost are based on the time used
* FixedDeliverables are based on a flat rate
* Added a checkbox on the new Deliverable form to pick which one to use

  #1135
2008-05-21 09:15:52 -07:00
Eric Davis bd5bb6d1c5 Added validation on subject. Fixed failed save. #1135 2008-05-20 23:34:36 -07:00
Eric Davis bebb2ff15b Hide budget field, added text for budget. #1134 2008-05-20 23:24:14 -07:00
Eric Davis d11e964aba Removed old functions 2008-05-20 23:12:44 -07:00
Eric Davis df37d248a1 Updated the JS API to be singleton, #1135 2008-05-20 23:11:43 -07:00
Eric Davis cbd084eae1 Updates to the JS calucluations
* Moved JavaScript into a Class
* Updated the alignment of the form
* Added some JavaScript form DZone to format the number to a currency

  #1135
2008-05-20 22:52:30 -07:00
Eric Davis f8399f1968 Complted the JavaScript subtotals on the new Deliverable form
* Subtotals will be updated as data is entered
* Created a helper to setup the fields with observers
* Added JavaScript functions to calculate the values

  #1135
2008-05-20 22:27:00 -07:00
Eric Davis 1b35005881 Added todo marker 2008-05-20 21:42:39 -07:00
Eric Davis a9e4d6f490 Cleaned up JavaScript bugs in the amount parasr. #1135 2008-05-20 21:42:04 -07:00
Eric Davis e2df0f8925 Hooking up budget elements on the form. #1135 2008-05-20 21:30:39 -07:00
Eric Davis 02a1a28a53 Renamed deliverable.cost to deliverable.budget. #1135 2008-05-20 21:05:55 -07:00
Eric Davis b2ecaca21e Made the new deliverable form to submit via Ajax
* Added DeliverablesController#create
* Refactored each deliverable row to a partial
* Added RJS to update the page after a submission

  #1135
2008-05-20 20:58:35 -07:00
Eric Davis d1418c25d3 Cleanup of form UI. #1135 2008-05-20 20:29:55 -07:00
Eric Davis f49763c423 Adding TODO for other field 2008-05-20 20:20:16 -07:00
Eric Davis ca96475b52 Added the start of the deliverable form. #1135 2008-05-20 20:18:31 -07:00