Follow: user new dossier follow controller instead of backoffice
This commit is contained in:
parent
f07b6eab53
commit
a7f270bac4
2 changed files with 4 additions and 4 deletions
|
@ -53,9 +53,9 @@
|
||||||
|
|
||||||
%td.center
|
%td.center
|
||||||
- if current_gestionnaire.follow?(dossier)
|
- if current_gestionnaire.follow?(dossier)
|
||||||
= link_to('Quitter', backoffice_dossier_follow_path(dossier_id: dossier.id), 'data-method' => :put, class: 'btn-sm btn-danger', id: "suivre_dossier_#{dossier.id}")
|
= link_to('Quitter', unfollow_dossier_path(dossier.procedure, dossier), method: :patch, class: 'btn-sm btn-danger', id: "suivre_dossier_#{dossier.id}")
|
||||||
- else
|
- else
|
||||||
= link_to('Suivre', backoffice_dossier_follow_path(dossier_id: dossier.id), 'data-method' => :put, class: 'btn-sm btn-primary', id: "suivre_dossier_#{dossier.id}")
|
= link_to('Suivre', follow_dossier_path(dossier.procedure, dossier), method: :patch, class: 'btn-sm btn-primary', id: "suivre_dossier_#{dossier.id}")
|
||||||
%td.center{ style: "color: #{dossier.total_follow == 0 ? 'red' : ''}" }
|
%td.center{ style: "color: #{dossier.total_follow == 0 ? 'red' : ''}" }
|
||||||
= dossier.total_follow
|
= dossier.total_follow
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
.row
|
.row
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
- if current_gestionnaire.follow?(@facade.dossier)
|
- if current_gestionnaire.follow?(@facade.dossier)
|
||||||
= link_to backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), "data-method" => :put, class: "button-navbar-action", id: "suivre_dossier_#{@facade.dossier.id}" do
|
= link_to unfollow_dossier_path(@facade.dossier.procedure, @facade.dossier), method: :patch, class: "button-navbar-action", id: "suivre_dossier_#{@facade.dossier.id}" do
|
||||||
%i.fa.fa-user-times
|
%i.fa.fa-user-times
|
||||||
Ne plus suivre
|
Ne plus suivre
|
||||||
- else
|
- else
|
||||||
= link_to backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), 'data-method' => :put, class: 'button-navbar-action', id: "suivre_dossier_#{@facade.dossier.id}" do
|
= link_to follow_dossier_path(@facade.dossier.procedure, @facade.dossier), method: :patch, class: 'button-navbar-action', id: "suivre_dossier_#{@facade.dossier.id}" do
|
||||||
%i.fa.fa-user-plus
|
%i.fa.fa-user-plus
|
||||||
Suivre le dossier
|
Suivre le dossier
|
||||||
.row
|
.row
|
||||||
|
|
Loading…
Reference in a new issue