Add button in manager to transition démarche in brouillon state

fix #2565
This commit is contained in:
Paul Chavard 2018-10-09 12:11:13 +02:00
parent acacfebd92
commit bcbfc370b2
4 changed files with 24 additions and 0 deletions

View file

@ -36,6 +36,10 @@ as well as a link to its edit page.
<% if !procedure.whitelisted? %>
<%= link_to 'whitelister', whitelist_manager_procedure_path(procedure), method: :post, class: 'button' %>
<% end %>
<% if procedure.publiee? && procedure.dossiers.empty? %>
<%= link_to 'passer en brouillon', draft_manager_procedure_path(procedure), method: :post, class: 'button' %>
<% end %>
<div>
</header>