-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wth - organization lock warning message
I updated the locked organization warning message to be more helpful to the user. I added a new controller action that requests the necessary data and moved some pieces around that I feel reflects a more MVC approach. [#134877103]
- Loading branch information
William Holt
committed
Nov 30, 2016
1 parent
946eaea
commit 361e005
Showing
7 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class LockedOrganizationsController < ApplicationController | ||
|
||
def show | ||
@organization = Organization.find(params[:org_id]) | ||
@service_provider = @organization.service_providers.where(is_primary_contact: true).first | ||
@identity = Identity.find(@service_provider.identity_id) | ||
@protocol = Protocol.find(params[:protocol_id]) | ||
@ssr = SubServiceRequest.where(service_request_id: params[:service_request_id], organization_id: @organization.id).first | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$('#modal_place').html("<%= j render 'service_requests/modals/locked_organization_modal', organization: @organization, identity: @identity, protocol: @protocol, ssr: @ssr %>") | ||
$('#modal_place').modal('show') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters