Hide other delete links when the demarche has not been persisted
This commit is contained in:
parent
2c44754981
commit
f8b1bc96bb
1 changed files with 5 additions and 5 deletions
|
@ -59,8 +59,8 @@
|
|||
- else
|
||||
%a{ href: url_for(deliberation), target: '_blank' }
|
||||
= deliberation.filename.to_s
|
||||
= link_to 'supprimer', delete_deliberation_admin_procedure_path(@procedure),
|
||||
method: :delete
|
||||
- if @procedure.persisted?
|
||||
= link_to 'supprimer', delete_deliberation_admin_procedure_path(@procedure), method: :delete
|
||||
%br
|
||||
Modifier :
|
||||
= f.file_field :deliberation,
|
||||
|
@ -75,9 +75,9 @@
|
|||
- else
|
||||
%a{ href: url_for(notice), target: '_blank' }
|
||||
= notice.filename.to_s
|
||||
\-
|
||||
= link_to 'supprimer', delete_notice_admin_procedure_path(@procedure),
|
||||
method: :delete
|
||||
- if @procedure.persisted?
|
||||
\-
|
||||
= link_to 'supprimer', delete_notice_admin_procedure_path(@procedure), method: :delete
|
||||
%br
|
||||
Modifier :
|
||||
= f.file_field :notice,
|
||||
|
|
Loading…
Reference in a new issue