remontee bouton dossier en cours + icones

This commit is contained in:
Benoit Queyron 2024-07-24 12:33:01 +02:00
parent 5434e0a4d6
commit 420ebc70f9
No known key found for this signature in database
GPG key ID: 7054ED37BB1FF30A
2 changed files with 7 additions and 13 deletions

View file

@ -9,13 +9,14 @@
- if has_actions
- if has_edit_action
- if dossier.brouillon?
= link_to t('views.users.dossiers.dossier_action.edit_draft'), (url_for_dossier(dossier)), class: 'fr-btn fr-btn--sm fr-mr-1w'
= link_to t('views.users.dossiers.dossier_action.edit_draft'), (url_for_dossier(dossier)), class: 'fr-btn fr-btn--sm fr-mr-1w fr-icon-draft-line fr-btn--icon-left'
- else
= link_to t('views.users.dossiers.dossier_action.edit_dossier'), modifier_dossier_path(dossier), class: 'fr-btn fr-btn--sm fr-btn--tertiary fr-mr-1w'
= link_to t('views.users.dossiers.dossier_action.edit_dossier'), modifier_dossier_path(dossier), class: 'fr-btn fr-btn--sm fr-mr-1w fr-icon-draft-line fr-btn--icon-left'
- if has_new_dossier_action && dossier.termine?
= link_to t('views.users.dossiers.dossier_action.start_other_dossier'), (commencer_url(dossier.procedure.path)), class: 'fr-btn fr-btn--sm fr-btn--tertiary fr-mr-1w'
- if has_new_dossier_action
= link_to (commencer_url(dossier.procedure.path)), class: 'fr-btn fr-btn--sm fr-btn--tertiary fr-mr-1w fr-icon-file-fill fr-btn--icon-left' do
= t('views.users.dossiers.dossier_action.start_other_dossier')
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: {class: 'invite-user-actions'}, menu_options: {id: dom_id(dossier, :actions_menu)}, button_options: {class: 'fr-btn--sm fr-btn--tertiary'}) do |menu|
- menu.with_button_inner_html do
@ -32,13 +33,6 @@
= t('views.users.dossiers.dossier_action.transfer_dossier')
- if has_new_dossier_action
- if !dossier.termine?
- menu.with_item do
= link_to(commencer_url(dossier.procedure.path), role: 'menuitem') do
= dsfr_icon('fr-icon-file-fill', :sm)
.dropdown-description
= t('views.users.dossiers.dossier_action.start_other_dossier')
- menu.with_item do
= link_to(clone_dossier_path(dossier), method: :post, role: 'menuitem') do
= dsfr_icon('fr-icon-file-copy-line', :sm)

View file

@ -539,7 +539,7 @@ fr:
deleted_badge: Supprimé
dossier_action:
edit_dossier: "Modifier le dossier"
start_other_dossier: "Commencer un autre dossier vide"
start_other_dossier: "Commencer un nouveau dossier"
clone: "Dupliquer ce dossier"
delete_dossier: "Supprimer le dossier"
delete_dossier_confirm: "En continuant, vous allez supprimer ce dossier ainsi que les informations quil contient. Toute suppression entraîne lannulation de la démarche en cours.\n\nConfirmer la suppression ?"