Add edit dossier link
[fix #4114] Signed-off-by: Chaïb Martinez <chaibax@gmail.com>
This commit is contained in:
parent
75741fca19
commit
14192916f1
4 changed files with 19 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
%span.dropdown.invite-user-action
|
||||
%span.dropdown.invite-user-action{ :style => "float:right;right: 10px;" }
|
||||
%button.button.dropdown-button
|
||||
%span.icon.person
|
||||
- if dossier.invites.count > 0
|
||||
|
|
|
@ -9,6 +9,20 @@
|
|||
Actions
|
||||
.dropdown-content.fade-in-down
|
||||
%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
|
||||
%li
|
||||
= link_to procedure_lien(dossier.procedure) do
|
||||
|
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
.container
|
||||
- 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
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
= "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}"
|
||||
|
||||
- if current_user.owns?(dossier)
|
||||
.header-actions
|
||||
= render partial: 'invites/dropdown', locals: { dossier: dossier }
|
||||
= 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 }
|
||||
.clearfix
|
||||
|
||||
%ul.tabs
|
||||
= dynamic_tab_item('Résumé', dossier_path(dossier))
|
||||
|
|
Loading…
Reference in a new issue