Skip to content

Commit

Permalink
Merge pull request #354 from bmic-development/jtm_fix_step_4_multiclick
Browse files Browse the repository at this point in the history
Jtm fix step 4 multiclick
  • Loading branch information
Stuart-Johnson committed Jun 26, 2017
2 parents ffea357 + b96ec82 commit 9dd2c2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
= t(:proper)[:navigation][:save_as_draft][:body]
.modal-footer
.center-block
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path, class: 'btn btn-default yes-button'
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path, class: 'btn btn-default yes-button', data: { t(:proper)[:navigation][:bottom][:saving] }
%button.btn.btn-default{ type: 'button', data: { dismiss: 'modal' } }
= t(:constants)[:no_select]
4 changes: 2 additions & 2 deletions app/views/service_requests/navigation/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.col-sm-3.text-center
= link_to t(:proper)[:navigation][:bottom][:get_cost_estimate],
obtain_research_pricing_service_request_path(sub_service_request_id: sub_service_request_id),
class: 'btn btn-default get-a-cost-estimate'
class: 'btn btn-default get-a-cost-estimate', data: { disable_with: t(:proper)[:navigation][:bottom][:getting_cost] }
- else
.col-sm-6.text-center
- if service_request.submitted_at.blank? && service_request.protocol.present?
Expand All @@ -39,4 +39,4 @@
class: 'btn btn-default form-submit-button'
- else
.col-sm-3.text-right
= link_to action_name == 'review' ? t(:proper)[:navigation][:bottom][:submit] : t(:proper)[:navigation][:bottom][:save_and_continue], 'javascript:void(0)', class: 'btn btn-default form-submit-button'
= link_to action_name == 'review' ? t(:proper)[:navigation][:bottom][:submit] : t(:proper)[:navigation][:bottom][:save_and_continue], 'javascript:void(0)', class: 'btn btn-default form-submit-button', data: { disable_with: "#{action_name == 'review' ? t(:proper)[:navigation][:bottom][:submitting] : t(:proper)[:navigation][:bottom][:saving] }" }
3 changes: 3 additions & 0 deletions config/locales/proper.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ en:
get_cost_estimate: "Get a Cost Estimate"
save_and_continue: "Save and Continue →"
submit: "Submit Request →"
saving: "Saving..."
submitting: "Submitting..."
getting_cost: "Getting Cost..."
save_as_draft:
header: "Save as Draft"
body: "This study will be saved as a draft and no notifications or emails will be sent to Service Providers. Do you wish to proceed?"
Expand Down

0 comments on commit 9dd2c2c

Please sign in to comment.