Eric Davis
4666ddb10e
Fixed two bugs caused by the core changes to project/subprojects. Might break compatibility with the 0.8.x branch of Redmine.
...
#2089
2009-02-05 17:08:26 -08:00
Eric Davis
4acf180b95
After saving a new rate from Projects, the rate link was pointed to the wrong url
...
#2031
2009-01-26 15:07:27 -08:00
Eric Davis
55a3a4dbce
Display if the rate row is the default rate. #2031
2009-01-26 14:25:21 -08:00
Eric Davis
dc6acf5031
Changed the create.rjs so it will replace the td on the admin and project panel.
...
* td's are now id'ed like rate_project_user
#1923
2009-01-21 12:20:17 -08:00
Eric Davis
363e8c0c5a
Converted the Membership rate form to an Ajax remote form.
...
* Changed the form_for to be a remote_form_for
* Changed the url to use the js format
* Added RJS to add the Saved rate to the rate cell
* Added id to the table cell so the rate cell can be replaced on success
* Added an Error RJS to flash an error message
#1921
2009-01-20 16:37:23 -08:00
Eric Davis
56298bc867
Added a link to delete a Rate. #1919
2009-01-20 11:34:43 -08:00
Eric Davis
3fccd98102
Added hints to the edit form so a user will not edit a locked Rate. #1919
2009-01-20 11:17:37 -08:00
Eric Davis
05dd3649f6
Fixed the sorts by updated to 0.8 to use the new sort API and fixing the update element id. #1915
2009-01-19 15:00:43 -08:00
Eric Davis
f870a6019e
Hacked some column sorting onto RatesController
...
* Added SortHelper to RatesController
* Init and updating the sorting (pre 0.8 sort_update)
* RatesController#index will only render the layout on non-xhr requests
* Changed Rate.history_for_user to take an order clause
* Added rate_sort_header_tag and rate_sort_link to the SortHelper in order
to get the correct parameters for sorting Rates
* Added rate_sort_header_tags to the Rate lists
#1915
2009-01-19 14:43:54 -08:00
Eric Davis
3f4ea96777
Changed RatesController#update to redirect to:
...
* Rate list for user or
* the back_url if provided
#1914
2009-01-19 11:54:54 -08:00
Eric Davis
e97a68be0d
Show different buttons based on if the Rate is new. #1914
2009-01-19 11:49:43 -08:00
Eric Davis
7d32fc7088
Added a new helper to UsersHelper.
...
* project_options_for_select doesn't allow setting the selected project
so it is replaced with project_options_for_select_with_selected in the views
#1914
2009-01-19 11:47:02 -08:00
Eric Davis
627a03c5e6
Enabled the edit link on index.
2009-01-19 11:35:39 -08:00
Eric Davis
22ec6f56b7
Added a back_url field to the Rate for that will store the redirect path.
...
* Used in the User Administration panel so RatesController can redirect back to
the panel as needed.
#1914
2009-01-19 11:32:27 -08:00
Eric Davis
b7a4850b06
Wrong name for the project select field. #1914
2009-01-19 11:20:00 -08:00
Eric Davis
8fe67ef8ae
Updated the form to use the form_for now that there is a Rate object. #1914
2009-01-19 11:14:39 -08:00
Eric Davis
83764cfe40
Use the same form for new as well as edit. #1916
2009-01-19 10:57:28 -08:00
Eric Davis
c178f616d5
Integrated views into the controller specs. #1916
2009-01-19 10:56:39 -08:00
Eric Davis
ae0be85f76
Using form partial for the new rate. #1916
2009-01-19 10:45:53 -08:00
Eric Davis
6698ff8169
Moved the Rate History out of the users partial and into a partial for Rates
...
* This will allow the RatesController to use the same view
#1916
2009-01-19 10:28:58 -08:00
Eric Davis
441a86e7a6
Added generated RESTful RatesController. #1916
2009-01-19 09:53:47 -08:00
Eric Davis
8eeb0f4872
Moved form to a partial, it will be used with other views. #1914
2009-01-19 09:46:14 -08:00