-
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 #497 from etalab/block_operational_acceptance_for_…
…dgfip Block operational acceptance for dgfip
- Loading branch information
Showing
13 changed files
with
84 additions
and
5 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
11 changes: 11 additions & 0 deletions
11
app/models/concerns/authorization_extensions/operational_acceptance.rb
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 @@ | ||
module AuthorizationExtensions::OperationalAcceptance | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
add_attribute :operational_acceptance_done | ||
|
||
validates :operational_acceptance_done, | ||
acceptance: true, | ||
if: -> { need_complete_validation?(:operational_acceptance) } | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/views/authorization_request_forms/build/operational_acceptance.html.erb
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,4 @@ | ||
<%= authorization_request_form(@authorization_request) do |f| %> | ||
<%= render partial: 'authorization_request_forms/shared/operational_acceptance', locals: { f: } %> | ||
<%= render partial: 'authorization_request_forms/build/wizard_buttons', locals: { f: } %> | ||
<% end %> |
7 changes: 7 additions & 0 deletions
7
app/views/authorization_request_forms/shared/_operational_acceptance.html.erb
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,7 @@ | ||
<%= f.info_for(:operational_acceptance) %> | ||
|
||
<fieldset class="fr-fieldset fr-mb-4w"> | ||
<div class="fr-fieldset__element"> | ||
<%= f.dsfr_check_box :operational_acceptance_done, required: true %> | ||
</div> | ||
</fieldset> |
5 changes: 5 additions & 0 deletions
5
app/views/authorization_requests/shared/blocks/_operational_acceptance.html.erb
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,5 @@ | ||
<%= render layout: 'authorization_requests/shared/blocks/summary_block', locals: { title: f.wording_for('steps.operational_acceptance'), block_id: :operational_acceptance, f:, editable: } do %> | ||
<% if @authorization_request.respond_to?(:operational_acceptance_done) %> | ||
<%= f.dsfr_check_box :operational_acceptance_done, disabled: true %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ fr: | |
contacts: "Les personnes impliquées" | ||
modalities: "Les modalités d'accès aux données" | ||
safety_certification: "Homologation de sécurité" | ||
operational_acceptance: "Recette fonctionnelle" | ||
finish: "La synthèse" | ||
|
||
terms_of_service_accepted: | ||
|
@@ -44,6 +45,28 @@ fr: | |
<p>Complétez les informations relatives à l’homologation et déposez la décision formelle d’homologation (également appelée attestation formelle).</p> | ||
<p>Toutefois, si votre organisme n’est pas soumis au RGS, vous pouvez remplir un questionnaire de sécurité à récupérer auprès de la DTNum à l’adresse mail suivante : <a href="mailto:[email protected]">[email protected]</a>, et à joindre dans le formulaire ci-dessous.</p> | ||
operational_acceptance: | ||
title: Recette fonctionelle | ||
subtitle: La qualification de votre téléservice est obligatoire tant pour votre homologation de sécurité ou vos obligations RGPD que pour demander l’entrée en production auprès de la DGFiP. | ||
info: | ||
title: Comment effectuer cette recette fonctionnelle ? | ||
content: | | ||
<p> | ||
La qualification de votre téléservice est obligatoire tant pour votre homologation de sécurité ou vos obligations RGPD que pour demander l’entrée en production auprès de la DGFiP. | ||
</p> | ||
<p> | ||
Pour vous accompagner dans vos travaux, un environnement de test est mis à votre disposition sur le portail des API de la DGFiP. | ||
</p> | ||
<p> | ||
Le périmètre des réponses de cet environnement de test est fonctionnellement identique à l’environnement de production. | ||
</p> | ||
<p> | ||
Un jeu de données fictives vous permet de valider l’intégration de quelques cas fonctionnels dans votre téléservice. L’environnement de test proposé par la DGFiP n’a donc pas vocation à recetter toutes les fonctionnalités du téléservice, qui doivent faire l’objet d’une recette interne. | ||
</p> | ||
<p> | ||
A l’issue de vos travaux, veuillez attester de la qualification de votre téléservice. | ||
</p> | ||
prefill_data_info: | ||
title: Nous avons pré-rempli des informations pour vous aider | ||
description: "Vous avez choisi le formulaire %{name}, nous avons pré-rempli les informations correspondantes." | ||
|
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