diff --git a/app/assets/stylesheets/manager.scss b/app/assets/stylesheets/manager.scss index 973137e02..7e0be3a87 100644 --- a/app/assets/stylesheets/manager.scss +++ b/app/assets/stylesheets/manager.scss @@ -51,3 +51,8 @@ .cell-disabled { opacity: 0.6; } + +.mandatory { + color: #A10005; + font-size: 18px; +} diff --git a/app/components/manager/dossier_champ_row_component/dossier_champ_row_component.html.haml b/app/components/manager/dossier_champ_row_component/dossier_champ_row_component.html.haml index 2f6199047..7dfae5e85 100644 --- a/app/components/manager/dossier_champ_row_component/dossier_champ_row_component.html.haml +++ b/app/components/manager/dossier_champ_row_component/dossier_champ_row_component.html.haml @@ -2,7 +2,7 @@ %td{ class: cell_class(cell: :label) } = row.libelle - if row.mandatory? - %span.mandatory{ style: 'color: #A10005;' } * + %span.mandatory * %td{ class: cell_class } = I18n.t("activerecord.attributes.type_de_champ.type_champs.#{row.type_champ}") diff --git a/app/views/fields/types_de_champ_collection_field/_type_champ_line.html.haml b/app/views/fields/types_de_champ_collection_field/_type_champ_line.html.haml index 8a445bd23..2c0ba90d5 100644 --- a/app/views/fields/types_de_champ_collection_field/_type_champ_line.html.haml +++ b/app/views/fields/types_de_champ_collection_field/_type_champ_line.html.haml @@ -2,7 +2,7 @@ %td.cell-data = type_de_champ.libelle - if type_de_champ.mandatory? - %span.mandatory{ style: 'color: #A10005;' } * + %span.mandatory * %td.cell-data = I18n.t("activerecord.attributes.type_de_champ.type_champs.#{type_de_champ.type_champ}")