Add edit dossier link

[fix #4114]

Signed-off-by: Chaïb Martinez <chaibax@gmail.com>
This commit is contained in:
Chaïb Martinez 2019-07-17 17:39:45 +02:00 committed by Pierre de La Morinerie
parent 75741fca19
commit 14192916f1
4 changed files with 19 additions and 4 deletions

View file

@ -1,4 +1,4 @@
%span.dropdown.invite-user-action %span.dropdown.invite-user-action{ :style => "float:right;right: 10px;" }
%button.button.dropdown-button %button.button.dropdown-button
%span.icon.person %span.icon.person
- if dossier.invites.count > 0 - if dossier.invites.count > 0

View file

@ -9,6 +9,20 @@
Actions Actions
.dropdown-content.fade-in-down .dropdown-content.fade-in-down
%ul.dropdown-items %ul.dropdown-items
- if !dossier.read_only?
- if dossier.brouillon?
%li
= link_to(url_for_dossier(dossier)) do
%span.icon.edit
.dropdown-description
Modifier le brouillon
- else
%li
= link_to modifier_dossier_path(dossier) do
%span.icon.edit
.dropdown-description
Modifier le dossier
- if has_new_dossier_action - if has_new_dossier_action
%li %li
= link_to procedure_lien(dossier.procedure) do = link_to procedure_lien(dossier.procedure) do

View file

@ -10,5 +10,5 @@
.container .container
- if !@dossier.read_only? - if !@dossier.read_only?
= link_to "Modifier le dossier", modifier_dossier_path(@dossier), class: 'button primary edit-form' = link_to "Modifier le dossier", modifier_dossier_path(@dossier), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
.clearfix .clearfix

View file

@ -11,8 +11,9 @@
= "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}" = "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}"
- if current_user.owns?(dossier) - if current_user.owns?(dossier)
.header-actions = link_to "Modifier mon dossier", modifier_dossier_path(dossier.id), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
= render partial: 'invites/dropdown', locals: { dossier: dossier } = render partial: 'invites/dropdown', locals: { dossier: dossier }
.clearfix
%ul.tabs %ul.tabs
= dynamic_tab_item('Résumé', dossier_path(dossier)) = dynamic_tab_item('Résumé', dossier_path(dossier))