[#887] afficher la liste des dossiers à l'utilisateur
This commit is contained in:
parent
ca363ca095
commit
8c549bf27b
10 changed files with 69 additions and 12 deletions
6
app/controllers/users/dossiers_controller.rb
Normal file
6
app/controllers/users/dossiers_controller.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class Users::DossiersController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
def index
|
||||
@dossiers = Dossier.all.decorate
|
||||
end
|
||||
end
|
|
@ -1,6 +0,0 @@
|
|||
class WelcomeController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
def index
|
||||
|
||||
end
|
||||
end
|
10
app/views/users/dossiers/index.html.haml
Normal file
10
app/views/users/dossiers/index.html.haml
Normal file
|
@ -0,0 +1,10 @@
|
|||
%h1 Vos dossiers :
|
||||
|
||||
%table.table
|
||||
%thead
|
||||
%th Nom du Projet
|
||||
%th Mise à jour
|
||||
- @dossiers.each do |dossier|
|
||||
%tr
|
||||
%td= dossier.nom_projet
|
||||
%td= dossier.last_update
|
|
@ -1,2 +0,0 @@
|
|||
%h1 coucou
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue