-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #560 from etalab/features/fqf-habilitation
- Loading branch information
Showing
13 changed files
with
92 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AuthorizationRequest::FormulaireQF < AuthorizationRequest | ||
include AuthorizationExtensions::CadreJuridique | ||
include AuthorizationExtensions::PersonalData | ||
|
||
%i[ | ||
contact_metier | ||
delegue_protection_donnees | ||
].each do |contact_kind| | ||
contact contact_kind, validation_condition: ->(record) { record.need_complete_validation?(:contacts) } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AuthorizationDefinitionPolicy < ApplicationPolicy | ||
class Scope < Scope | ||
def resolve | ||
if registered_subdomain? | ||
scope.where(public: true, startable_by_applicant: true, id: registered_subdomain.authorization_definitions.map(&:id)) | ||
else | ||
scope.where(public: true, startable_by_applicant: true) | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
formulaire-qf: | ||
name: Tarification sociale des services municipaux à l'enfance | ||
introduction: | | ||
Accéder au quotient familial CAF & MSA pour simplifier la tarification sociale municipale à l'enfance par le biais du "formulaire de collecte du quotient familial" et du portail agent HubEE. | ||
authorization_request: FormulaireQF | ||
steps: | ||
- name: legal | ||
- name: personal_data | ||
- name: contacts | ||
data: | ||
cadre_juridique_nature: |+ | ||
- Cadre légal général : L'article L114-8 du Code des relations entre le public et l’administration qui fixe le cadre général qui oblige l’administration à échanger des données lors d’une démarche d’un usager. | ||
destinataire_donnees_caractere_personnel: Agents de la municipalité |
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 |
---|---|---|
|
@@ -694,3 +694,6 @@ fr: | |
<a href="mailto:[email protected]" target="_blank">[email protected]</a> | ||
api_impot_particulier_editeur: *api_impot_particulier_sandbox | ||
|
||
formulaire_qf: | ||
legal: *api_particulier_editor_common_wordings |
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,25 @@ | ||
# language: fr | ||
|
||
Fonctionnalité: Soumission d'une demande d'habilitation Formulaire QF | ||
Contexte: | ||
Sachant que je suis un demandeur | ||
Et que je me connecte | ||
|
||
Scénario: Je soumets une demande d'habilitation valide | ||
* je démarre une nouvelle demande d'habilitation "Formulaire d'accès au Quotient Familial" | ||
|
||
* je renseigne le cadre légal | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne les infos concernant les données personnelles | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne les informations du délégué à la protection des données | ||
* je renseigne les informations du contact métier | ||
* je clique sur "Suivant" | ||
|
||
* j'adhère aux conditions générales | ||
* je clique sur "Soumettre la demande d'habilitation" | ||
|
||
Alors il y a un message de succès contenant "soumise avec succès" | ||
Et je suis sur la page "Demandes et habilitations" |
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