4878: Refactor Workbench "Re-run job" button for more code reuse.
authorBrett Smith <brett@curoverse.com>
Tue, 27 Jan 2015 23:09:20 +0000 (18:09 -0500)
committerBrett Smith <brett@curoverse.com>
Tue, 27 Jan 2015 23:09:20 +0000 (18:09 -0500)
commit829551057b61b57d1d08aae39c9095da30166f2a
treec5a04260c90a73b91eae73f25d807e39d4a218ca
parent77d1908a811b84008cac3834fac542c7b301e1a3
4878: Refactor Workbench "Re-run job" button for more code reuse.

* Avoid adding new routes: add the modal directly to the job show
  page, and submit the new work with the existing job creation route.
* Fix id references; e.g., for labels.
apps/workbench/app/controllers/jobs_controller.rb
apps/workbench/app/views/jobs/_rerun_job_with_options_popup.html.erb
apps/workbench/app/views/jobs/_show_job_buttons.html.erb [deleted file]
apps/workbench/app/views/jobs/rerun_job_with_options_popup.js.erb [deleted file]
apps/workbench/app/views/jobs/show.html.erb
apps/workbench/config/routes.rb
apps/workbench/test/integration/jobs_test.rb