diff --git a/app/controllers/demo_controller.rb b/app/controllers/demo_controller.rb new file mode 100644 index 000000000..6c48fd52f --- /dev/null +++ b/app/controllers/demo_controller.rb @@ -0,0 +1,7 @@ +class DemoController < ApplicationController + + def index + + end + +end diff --git a/app/views/demo/index.html.haml b/app/views/demo/index.html.haml new file mode 100644 index 000000000..1c3573e43 --- /dev/null +++ b/app/views/demo/index.html.haml @@ -0,0 +1,15 @@ +%table.table + %tr + %th{colspan: 3} + %h4 Lien vers les procédures TPS + %tr + %td + %th Titre + %th Description + - Procedure.all.each do |procedure| + %tr + %td.col-md-1.col-lg-1 + %td.col-md-4.col-lg-4 + = link_to procedure.libelle, "/users/siret?procedure_id=#{procedure.id}" + %td + = procedure.description \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index ee0fed316..eb2beb06a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -17,6 +17,8 @@ Rails.application.routes.draw do get 'france_connect' => 'france_connect#login' get 'france_connect/callback' => 'france_connect#callback' + get 'demo' => 'demo#index' + namespace :users do get 'siret' => 'siret#index'