style: replace legacy icon person
This commit is contained in:
parent
dbfbaf4cea
commit
38bee3639d
8 changed files with 13 additions and 11 deletions
|
@ -113,10 +113,6 @@
|
|||
background-image: image-url("icons/account-circle.svg");
|
||||
}
|
||||
|
||||
&.person {
|
||||
background-image: image-url("icons/blue-person.svg");
|
||||
}
|
||||
|
||||
&.super-admin {
|
||||
background-image: image-url("icons/super-admin.svg");
|
||||
}
|
||||
|
|
|
@ -143,4 +143,12 @@ module ApplicationHelper
|
|||
def download_details(attachment)
|
||||
"#{attachment.filename.extension.upcase} – #{number_to_human_size(attachment.byte_size)}"
|
||||
end
|
||||
|
||||
def dsfr_icon(classes, *options)
|
||||
sm = options.include?(:sm)
|
||||
mr = options.include?(:mr)
|
||||
|
||||
tag.span(class: class_names(classes, 'fr-icon--sm': sm, 'fr-mr-1v': mr),
|
||||
"aria-hidden" => true)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
- @experts_procedure.each do |expert_procedure|
|
||||
%tr
|
||||
%td
|
||||
%span.icon.person
|
||||
= dsfr_icon('fr-icon-user-fill')
|
||||
= expert_procedure.expert.email
|
||||
%td.text-center
|
||||
= expert_procedure.avis.count
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
- instructeurs.each do |instructeur|
|
||||
%tr
|
||||
%td
|
||||
%span.icon.person
|
||||
= dsfr_icon('fr-icon-user-fill')
|
||||
#{instructeur.email}
|
||||
|
||||
- confirmation_message = procedure.routing_enabled? ? "Êtes-vous sûr de vouloir retirer l’instructeur « #{instructeur.email} » du groupe « #{groupe_instructeur.label} » ?" : "Êtes-vous sûr de vouloir retirer l’instructeur « #{instructeur.email} » de la démarche ?"
|
||||
|
|
|
@ -43,11 +43,10 @@
|
|||
= procedure.auto_archive_on.strftime('%d/%m/%Y')
|
||||
|
||||
%div
|
||||
= dsfr_icon('fr-icon-team-fill')
|
||||
- if procedure.routing_enabled?
|
||||
%span.icon.person
|
||||
%span.fr-badge= procedure.groupe_instructeurs.count
|
||||
- else
|
||||
%span.icon.person
|
||||
%span.fr-badge= procedure.instructeurs.count
|
||||
|
||||
%span.icon.folder.fr-ml-1w
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- invites = dossier.invites.load
|
||||
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: {class: 'invite-user-action'}, button_options: { class: ['fr-btn--secondary'] }, menu_options: { id: 'invite-content' }) do |menu|
|
||||
- menu.with_button_inner_html do
|
||||
%span.icon.person
|
||||
= dsfr_icon('fr-icon-user-add-fill', :sm, :mr)
|
||||
- if invites.present?
|
||||
= t('views.invites.dropdown.view_invited_people')
|
||||
%span.badge= invites.size
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
%span.icon.justificatif
|
||||
%span.icon.printer
|
||||
%span.icon.account
|
||||
%span.icon.person
|
||||
%span.icon.super-admin
|
||||
%span.icon.mail
|
||||
%span.icon.reply
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
- if has_transfer_action
|
||||
- menu.with_item do
|
||||
= link_to(transferer_dossier_path(dossier), role: 'menuitem') do
|
||||
%span.icon.person
|
||||
= dsfr_icon('fr-icon-user-add-fill', :sm)
|
||||
.dropdown-description
|
||||
= t('views.users.dossiers.dossier_action.transfer_dossier')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue