Merge pull request #11016 from demarches-simplifiees/a11y-miscellaneous

Corrige diverses coquilles
This commit is contained in:
Corinne Durrmeyer 2024-11-05 14:23:15 +00:00 committed by GitHub
commit 1e18b66012
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 10 deletions

View file

@ -6,7 +6,7 @@
.flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) } .flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) }
- if user_can_destroy? - if user_can_destroy?
= render NestedForms::OwnedButtonComponent.new(formaction: destroy_attachment_path, http_method: :delete, opt: {class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: t(".delete_file", filename: attachment.filename)}) do = render NestedForms::OwnedButtonComponent.new(formaction: destroy_attachment_path, http_method: :delete, opt: {class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: t(".delete_file", filename: attachment.filename)}) do
= t('.delete') = t('.delete_file', filename: attachment.filename)
- if downloadable?(attachment) - if downloadable?(attachment)
= render Dsfr::DownloadComponent.new(attachment: attachment) = render Dsfr::DownloadComponent.new(attachment: attachment)
@ -24,7 +24,7 @@
.flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) } .flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) }
- if user_can_destroy? - if user_can_destroy?
= render NestedForms::OwnedButtonComponent.new(formaction: destroy_attachment_path, http_method: :delete, opt: {class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: t(".delete_file", filename: attachment.filename)}) do = render NestedForms::OwnedButtonComponent.new(formaction: destroy_attachment_path, http_method: :delete, opt: {class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: t(".delete_file", filename: attachment.filename)}) do
= t('.delete') = t('.delete_file', filename: attachment.filename)
- if downloadable?(attachment) - if downloadable?(attachment)
= render Dsfr::DownloadComponent.new(attachment:) = render Dsfr::DownloadComponent.new(attachment:)

View file

@ -5,9 +5,3 @@
- render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at - render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at
- elsif @champ.legend_label? - elsif @champ.legend_label?
%legend.fr-fieldset__legend.fr-text--regular{ id: @champ.labelledby_id }= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at %legend.fr-fieldset__legend.fr-text--regular{ id: @champ.labelledby_id }= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at
- elsif @champ.single_checkbox?
-# no label to add
- else
-# champ civilite (and other?)
.fr-label.fr-mb-1w{ id: @champ.labelledby_id }
= render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at

View file

@ -24,7 +24,7 @@
= category.humanize = category.humanize
- if categories_error? - if categories_error?
.fr-messages-group{ id: "checkboxes-error-messages", aria_live: "assertive" } .fr-messages-group{ id: "checkboxes-error-messages", "aria-live": "assertive" }
- if categories_full_messages_errors.one? - if categories_full_messages_errors.one?
%p.fr-message.fr-message--error{ id: categories_errors_describedby_id }= categories_full_messages_errors.first %p.fr-message.fr-message--error{ id: categories_errors_describedby_id }= categories_full_messages_errors.first
- else - else

View file

@ -1,4 +1,4 @@
fr: en:
activerecord: activerecord:
errors: errors:
models: models: