2018-08-29 17:09:48 +02:00
|
|
|
- content_for(:title, "Dossiers")
|
|
|
|
|
2018-09-12 13:29:15 +02:00
|
|
|
- content_for :footer do
|
2019-03-25 10:53:45 +01:00
|
|
|
= render partial: "users/dossiers/index_footer"
|
2018-09-12 13:29:15 +02:00
|
|
|
|
2018-04-23 17:22:20 +02:00
|
|
|
.dossiers-headers.sub-header
|
2018-04-03 10:49:16 +02:00
|
|
|
.container
|
2018-06-20 15:29:52 +02:00
|
|
|
- if @dossiers_invites.count == 0
|
|
|
|
%h1.page-title Mes dossiers
|
2018-04-03 10:49:16 +02:00
|
|
|
|
2018-06-20 15:29:52 +02:00
|
|
|
- else
|
|
|
|
%h1.page-title Dossiers
|
|
|
|
%ul.tabs
|
2018-08-16 16:30:55 +02:00
|
|
|
= tab_item('mes dossiers',
|
|
|
|
dossiers_path(current_tab: 'mes-dossiers'),
|
|
|
|
active: @current_tab == 'mes-dossiers')
|
|
|
|
|
|
|
|
= tab_item('dossiers invités',
|
|
|
|
dossiers_path(current_tab: 'dossiers-invites'),
|
|
|
|
active: @current_tab == 'dossiers-invites')
|
2018-03-28 15:02:37 +02:00
|
|
|
|
2018-04-03 10:49:16 +02:00
|
|
|
.container
|
2018-06-25 15:14:22 +02:00
|
|
|
- if @dossiers.present?
|
|
|
|
%table.table.dossiers-table.hoverable
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th.notification-col
|
|
|
|
%th.number-col Nº dossier
|
2018-09-05 14:48:42 +02:00
|
|
|
%th Démarche
|
2018-06-25 15:14:22 +02:00
|
|
|
%th.status-col Statut
|
|
|
|
%th.updated-at-col Mis à jour
|
2019-01-16 15:34:38 +01:00
|
|
|
%th
|
2018-06-25 15:14:22 +02:00
|
|
|
%tbody
|
|
|
|
- @dossiers.each do |dossier|
|
2019-03-26 17:55:40 +01:00
|
|
|
%tr{ data: { 'dossier-id': dossier.id } }
|
2018-06-25 15:14:22 +02:00
|
|
|
%td.folder-col
|
2018-06-28 17:19:22 +02:00
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
%span.icon.folder
|
|
|
|
%td.number-col
|
2018-06-28 17:19:22 +02:00
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
= dossier.id
|
|
|
|
%td
|
2018-06-28 17:19:22 +02:00
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-09-07 12:21:50 +02:00
|
|
|
= procedure_libelle(dossier.procedure)
|
2018-06-25 15:14:22 +02:00
|
|
|
%td.status-col
|
2018-06-28 17:19:22 +02:00
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-09-05 11:58:34 +02:00
|
|
|
= render partial: 'shared/dossiers/status_badge', locals: { dossier: dossier }
|
2018-06-25 15:14:22 +02:00
|
|
|
%td.updated-at-col
|
2018-06-28 17:19:22 +02:00
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2019-06-05 17:07:38 +02:00
|
|
|
= try_format_date(dossier.updated_at)
|
2019-03-26 17:55:40 +01:00
|
|
|
%td.action-col.action-col
|
|
|
|
= render partial: 'dossier_actions', locals: { dossier: dossier }
|
2018-06-25 15:14:22 +02:00
|
|
|
= paginate(@dossiers)
|
2018-03-28 15:02:37 +02:00
|
|
|
|
2018-08-27 11:41:38 +02:00
|
|
|
- if current_user.feedbacks.empty? || current_user.feedbacks.last.created_at < 1.month.ago
|
2018-08-13 14:39:58 +02:00
|
|
|
#user-satisfaction
|
2018-08-27 11:49:36 +02:00
|
|
|
%h3 Que pensez-vous de la facilité d'utilisation de ce service ?
|
2018-08-13 14:39:58 +02:00
|
|
|
.icons
|
2018-08-27 13:06:23 +02:00
|
|
|
= link_to feedback_path(rating: Feedback.ratings.fetch(:unhappy)), data: { remote: true, method: :post } do
|
2018-08-13 14:39:58 +02:00
|
|
|
%span.icon.frown
|
2018-08-27 13:06:23 +02:00
|
|
|
= link_to feedback_path(rating: Feedback.ratings.fetch(:neutral)), data: { remote: true, method: :post } do
|
2018-08-13 14:39:58 +02:00
|
|
|
%span.icon.meh
|
2018-08-27 13:06:23 +02:00
|
|
|
= link_to feedback_path(rating: Feedback.ratings.fetch(:happy)), data: { remote: true, method: :post } do
|
2018-08-13 14:39:58 +02:00
|
|
|
%span.icon.smile
|
|
|
|
|
2018-06-25 15:14:22 +02:00
|
|
|
- else
|
2018-10-04 15:48:23 +02:00
|
|
|
.blank-tab
|
2018-06-26 18:04:04 +02:00
|
|
|
%h2.empty-text Aucun dossier.
|
2019-02-12 17:23:31 +01:00
|
|
|
%p.empty-text-details
|
|
|
|
Pour remplir une démarche, contactez votre administration en lui demandant le lien de la démarche.
|
|
|
|
%br
|
|
|
|
Celui ci doit ressembler à https://www.demarches-simplifiees.fr/commencer/xxx.
|