-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'production' into frf/robot.txt-exclude-sensitive-paths
- Loading branch information
Showing
67 changed files
with
528 additions
and
266 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Agents::PagesController < AgentAuthController | ||
layout "application" | ||
|
||
CONTACT_TEAM_URL = "https://cal.com/forms/937585aa-48a4-4efd-a642-961fad79c9c5".freeze | ||
|
||
def home | ||
skip_authorization | ||
|
||
accessible_organisations = policy_scope(Organisation, policy_scope_class: Agent::OrganisationPolicy::Scope) | ||
|
||
if accessible_organisations.count == 1 | ||
redirect_to admin_organisation_agent_agenda_path(accessible_organisations.first, current_agent) | ||
elsif accessible_organisations.count > 1 | ||
redirect_to admin_organisations_path | ||
end | ||
end | ||
|
||
private | ||
|
||
def pundit_user | ||
AgentContext.new(current_agent) | ||
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,3 +107,7 @@ select { | |
outline-offset: $focus-outline-offset; | ||
} | ||
} | ||
|
||
.form-group { | ||
margin: 8px 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
:support_email, | ||
:secretariat_email, | ||
:verticale, | ||
:allow_agent_creation_with_agent_connect, | ||
keyword_init: true | ||
) | ||
|
||
|
@@ -36,6 +37,7 @@ class Domain | |
france_connect_enabled: true, | ||
support_email: "[email protected]", | ||
verticale: :rdv_solidarites, | ||
allow_agent_creation_with_agent_connect: false, | ||
secretariat_email: "[email protected]" | ||
# secretariat_email est utilisé comme adresse de "Reply-To" pour les e-mails | ||
# qui contiennent des ICS. Lorsque l'événement ICS est acceptée par le | ||
|
@@ -58,6 +60,7 @@ class Domain | |
france_connect_enabled: false, | ||
support_email: "[email protected]", | ||
verticale: :rdv_aide_numerique, | ||
allow_agent_creation_with_agent_connect: false, | ||
secretariat_email: "[email protected]" | ||
), | ||
|
||
|
@@ -76,6 +79,7 @@ class Domain | |
france_connect_enabled: true, | ||
support_email: "[email protected]", | ||
verticale: :rdv_mairie, | ||
allow_agent_creation_with_agent_connect: true, | ||
secretariat_email: "[email protected]" | ||
), | ||
].freeze | ||
|
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
Oops, something went wrong.