Merge pull request #11016 from demarches-simplifiees/a11y-miscellaneous
Corrige diverses coquilles
This commit is contained in:
commit
1e18b66012
4 changed files with 4 additions and 10 deletions
|
@ -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:)
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
fr:
|
en:
|
||||||
activerecord:
|
activerecord:
|
||||||
errors:
|
errors:
|
||||||
models:
|
models:
|
||||||
|
|
Loading…
Reference in a new issue