forked from demarches-simplifiees/demarches-simplifiees.fr
-
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 commit '32cc6aefb841881ceafa1f6886211c5e2a1cab50' into feature/…
…import-2023-06-23 # Conflicts: # app/views/users/dossiers/etablissement.html.haml # app/views/users/dossiers/etablissement/_infos_entreprise.html.haml # app/views/users/dossiers/siret.html.haml
- Loading branch information
Showing
17 changed files
with
81 additions
and
164 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
%div{ class: "fr-alert fr-alert--#{state}" } | ||
%div{ class: alert_class(state) } | ||
= content_tag(heading_level, class: 'fr-alert__title') do | ||
= "#{prefix_for_state}#{title}" | ||
= body |
17 changes: 8 additions & 9 deletions
17
app/components/types_de_champ_editor/errors_summary/errors_summary.html.haml
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#errors-summary | ||
- if invalid? | ||
.card.warning | ||
.card-title Le formulaire contient des erreurs | ||
= render Dsfr::AlertComponent.new(state: :warning, title: "Le formulaire contient des erreurs", extra_class_names: 'fr-mb-2w') do |c| | ||
- c.body do | ||
- if condition_errors? | ||
%p= t('.fix_conditional', count: errors_for(:condition).size) | ||
= error_message_for(:condition) | ||
|
||
- if condition_errors? | ||
%p.mb-2= t('.fix_conditional', count: errors_for(:condition).size) | ||
= error_message_for(:condition) | ||
|
||
- if header_section_errors? | ||
%p.mb-2= t('.fix_header_section', count: errors_for(:header_section).size) | ||
= error_message_for(:header_section) | ||
- if header_section_errors? | ||
%p= t('.fix_header_section', count: errors_for(:header_section).size) | ||
= error_message_for(:header_section) |
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 |
---|---|---|
|
@@ -32,13 +32,14 @@ | |
|
||
- if @procedure.draft_changed? | ||
.fr-container | ||
.card.featured | ||
.card-title | ||
= t(:has_changes, scope: [:administrateurs, :revision_changes]) | ||
= render Procedure::RevisionChangesComponent.new changes: @procedure.revision_changes, previous_revision: @procedure.published_revision | ||
.flex.mt-2.justify-end | ||
= button_to "Réinitialiser les modifications", admin_procedure_reset_draft_path(@procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w', data: { confirm: 'Êtes-vous sûr de vouloir réinitialiser les modifications ?' }, method: :put | ||
= button_to 'Publier les modifications', admin_procedure_publication_path(@procedure), class: 'fr-btn', id: 'publish-procedure-link', data: { disable_with: "Publication..." }, disabled: [email protected]_revision.valid?, method: :get | ||
= render Dsfr::CalloutComponent.new(title: t(:has_changes, scope: [:administrateurs, :revision_changes]), icon: "fr-fi-information-line") do |c| | ||
- c.body do | ||
= render Procedure::RevisionChangesComponent.new changes: @procedure.revision_changes, previous_revision: @procedure.published_revision | ||
|
||
- c.bottom do | ||
%ul.fr-mt-2w.fr-btns-group.fr-btns-group--inline | ||
%li= button_to "Réinitialiser les modifications", admin_procedure_reset_draft_path(@procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w', data: { confirm: 'Êtes-vous sûr de vouloir réinitialiser les modifications ?' }, method: :put | ||
%li= button_to 'Publier les modifications', admin_procedure_publication_path(@procedure), class: 'fr-btn', id: 'publish-procedure-link', data: { disable_with: "Publication..." }, disabled: [email protected]_revision.valid?, method: :get | ||
|
||
- if [email protected]_expires_when_termine_enabled? | ||
= render partial: 'administrateurs/procedures/suggest_expires_when_termine', locals: { procedure: @procedure } | ||
|
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
- if dossier_submission_is_closed?(dossier) | ||
.card.featured | ||
.card-title | ||
Le dépôt de dossier est fermé | ||
- if dossier.procedure.closed_at.present? | ||
Il n’est plus possible de déposer de dossier pour cette démarche en ligne depuis le #{try_format_date(dossier.procedure.closed_at)}. | ||
- else | ||
Il n’est plus possible de déposer de dossier pour cette démarche en ligne. | ||
= render Dsfr::CalloutComponent.new(title: "Le dépôt de dossier est fermé") do |c| | ||
- c.with_body do | ||
- if dossier.procedure.closed_at.present? | ||
%p Il n’est plus possible de déposer de dossier pour cette démarche en ligne depuis le #{try_format_date(dossier.procedure.closed_at)}. | ||
- else | ||
%p Il n’est plus possible de déposer de dossier pour cette démarche en ligne. |
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
28 changes: 9 additions & 19 deletions
28
app/views/users/dossiers/_procedure_removed_banner.html.haml
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 |
---|---|---|
@@ -1,30 +1,20 @@ | ||
.card.warning.mb-3.no-list | ||
- if dossier.procedure.discarded? | ||
.flex.justify-between | ||
.card-title= t('users.dossiers.header.banner.procedure_deleted_title') | ||
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier}) if !dossier.brouillon? | ||
- if dossier.termine? | ||
- title = dossier.procedure.discarded? ? "procedure_deleted_title" : "procedure_close_title" | ||
= render Dsfr::AlertComponent.new(state: :warning, title: t("users.dossiers.header.banner.#{title}"), extra_class_names: 'fr-mb-2w') do |c| | ||
- c.body do | ||
- if dossier.termine? && dossier.procedure.discarded? | ||
%p | ||
= t('users.dossiers.header.banner.procedure_deleted_dossier_termine_content') | ||
- elsif dossier.brouillon? | ||
- elsif !dossier.brouillon? && dossier.procedure.discarded? | ||
%p | ||
= t('users.dossiers.header.banner.procedure_close_content') | ||
= t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content') | ||
- else | ||
%p | ||
= t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content') | ||
= t('users.dossiers.header.banner.procedure_close_content') | ||
|
||
= render partial: "users/dossiers/replacement_procedure", locals: { replacement_procedure: dossier.procedure.replaced_by_procedure } | ||
%p | ||
= t('users.dossiers.header.banner.contact_service', service_name: dossier.procedure.service.nom, service_phone_number: dossier.procedure.service.telephone, service_email: dossier.procedure.service.email) | ||
|
||
- else | ||
.flex.justify-between | ||
.card-title= t('users.dossiers.header.banner.procedure_close_title') | ||
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier }) if !dossier.brouillon? | ||
%p | ||
= t('users.dossiers.header.banner.procedure_close_content') | ||
|
||
= render partial: "users/dossiers/replacement_procedure", locals: { replacement_procedure: dossier.procedure.replaced_by_procedure } | ||
%p | ||
= t('users.dossiers.header.banner.contact_service', service_name: dossier.procedure.service.nom, service_phone_number: dossier.procedure.service.telephone, service_email: dossier.procedure.service.email) | ||
|
||
- if !dossier.brouillon? | ||
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier }) |
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