- add decorator for procedure and procedures
- add link to procedure on admin procedures list
This commit is contained in:
parent
515713b3fa
commit
49217a1b39
10 changed files with 38 additions and 41 deletions
14
app/views/admin/procedures/_list.html.haml
Normal file
14
app/views/admin/procedures/_list.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
%table.table
|
||||
%thead
|
||||
%th#id ID
|
||||
%th#libelle Libellé
|
||||
%th#lien Lien
|
||||
- @procedures.each do |procedure|
|
||||
%tr
|
||||
%td.col-md-1.col-lg-1= procedure.id
|
||||
%td.col-md-6.col-lg-6
|
||||
= link_to(procedure.libelle, "/admin/procedures/#{procedure.id}")
|
||||
%td= link_to procedure.lien, procedure.lien
|
||||
|
||||
.pagination
|
||||
= will_paginate @procedures, renderer: BootstrapPagination::Rails
|
Loading…
Add table
Add a link
Reference in a new issue