Merge pull request #2008 from betagouv/fix_demande_view
ManagerDemandeView: does not bug when there is no demand
This commit is contained in:
commit
9c57a7f786
1 changed files with 50 additions and 46 deletions
|
@ -8,7 +8,8 @@
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="main-content__body main-content__body--flush">
|
<% if @pending_demandes.present? %>
|
||||||
|
<section class="main-content__body main-content__body--flush">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<% keys = @pending_demandes.first.keys %>
|
<% keys = @pending_demandes.first.keys %>
|
||||||
|
@ -58,4 +59,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
<% else %>
|
||||||
|
<h1>Aucune demande</h1>
|
||||||
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue