Add column Organisation on Demo page
This commit is contained in:
parent
54788c2499
commit
f449be5c4e
2 changed files with 11 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
class DemoController < ApplicationController
|
class DemoController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@procedures = Procedure.all.where(archived: false).order('libelle ASC')
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
%table.table
|
%table.table
|
||||||
%tr
|
%tr
|
||||||
%th{colspan: 3}
|
%th{colspan: 4}
|
||||||
%h4 Lien vers les procédures TPS
|
%h4 Lien vers les procédures TPS
|
||||||
%tr
|
%tr
|
||||||
%td
|
%th ID
|
||||||
%th Titre
|
%th Titre
|
||||||
%th Description
|
%th Description
|
||||||
- Procedure.all.where(archived: false).each do |procedure|
|
%th Organisation
|
||||||
|
|
||||||
|
- @procedures.each do |procedure|
|
||||||
%tr
|
%tr
|
||||||
%td.col-md-1.col-lg-1
|
%td
|
||||||
|
= procedure.id
|
||||||
%td.col-md-4.col-lg-4
|
%td.col-md-4.col-lg-4
|
||||||
= link_to procedure.libelle, "/users/procedure/#{procedure.id}"
|
= link_to procedure.libelle, "/users/procedure/#{procedure.id}"
|
||||||
%td
|
%td
|
||||||
= procedure.description
|
= procedure.description
|
||||||
|
%td.col-md-3.col-lg-3
|
||||||
|
= procedure.organisation
|
Loading…
Add table
Reference in a new issue