-
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.
Introduce Annuaire des Entreprises definition/form
Need some wordings now
- Loading branch information
Showing
7 changed files
with
108 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/models/authorization_request/annuaire_des_entreprise.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,10 @@ | ||
class AuthorizationRequest::AnnuaireDesEntreprise < AuthorizationRequest | ||
include AuthorizationExtensions::BasicInfos | ||
include AuthorizationExtensions::CadreJuridique | ||
|
||
add_attributes :description_equipe | ||
|
||
add_scopes(validation: { | ||
presence: true, if: -> { need_complete_validation?(:scopes) } | ||
}) | ||
end |
37 changes: 37 additions & 0 deletions
37
app/views/authorization_request_forms/annuaire_des_entreprises.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,37 @@ | ||
<%= authorization_request_form(@authorization_request) do |f| %> | ||
<div class="fr-mt-2w"> | ||
<%= render partial: "authorization_request_forms/shared/block_titles", locals: { f: f, block_name: :legal } %> | ||
<%= f.info_for(:basic_infos) %> | ||
|
||
<fieldset class="fr-fieldset" aria-label="feedme" aria-describedby="name-1-fieldset-messages"> | ||
<div class="fr-fieldset__element"> | ||
<%= f.dsfr_text_field :intitule, required: true %> | ||
</div> | ||
|
||
<div class="fr-fieldset__element"> | ||
<%= f.dsfr_text_area :description, rows: 10, required: true %> | ||
</div> | ||
|
||
<div class="fr-fieldset__element"> | ||
<%= f.dsfr_text_area :description_equipe, rows: 10, required: true %> | ||
</div> | ||
</fieldset> | ||
</div> | ||
|
||
<div class="fr-mt-2w"> | ||
<%= render partial: "authorization_request_forms/shared/block_titles", locals: { f: f, block_name: :legal } %> | ||
<%= render partial: 'authorization_request_forms/shared/legal', locals: { f: f } %> | ||
</div> | ||
|
||
<div class="fr-mt-2w"> | ||
<%= render partial: "authorization_request_forms/shared/block_titles", locals: { f: f, block_name: :scopes } %> | ||
</div> | ||
|
||
<div class="fr-container-fluid"> | ||
<%= render partial: 'authorization_request_forms/shared/scopes', locals: { f: } %> | ||
</div> | ||
|
||
<%= render partial: 'authorization_request_forms/shared/submit_buttons', locals: { f: f } %> | ||
<% 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
6 changes: 6 additions & 0 deletions
6
config/authorization_request_forms/annuaire_des_entreprises.yml
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,6 @@ | ||
annuaire-des-entreprises: | ||
description: FEEDME | ||
introduction: | | ||
Ceci est une introduction à remplir | ||
authorization_request: AnnuaireDesEntreprise | ||
single_page_view: annuaire_des_entreprises |
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,19 @@ | ||
# language: fr | ||
|
||
Fonctionnalité: Soumission d'une demande d'habilitation L'Annuaires des Entreprises | ||
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 "L'Annuaires des Entreprises" | ||
* je renseigne les infos de bases du projet | ||
* je renseigne le cadre légal | ||
* je coche "Scope 1" | ||
* je clique sur "Enregistrer les modifications" | ||
* je clique sur "Continuer vers le résumé" | ||
* 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