Dossier_list_controller: renaming
This commit is contained in:
parent
ca799421c9
commit
494d5fed5c
2 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,6 @@ class Backoffice::DossiersListController < ApplicationController
|
||||||
dossiers_list_facade liste
|
dossiers_list_facade liste
|
||||||
service = dossiers_list_facade.service
|
service = dossiers_list_facade.service
|
||||||
|
|
||||||
@dossiers_archived = archived_dossier_list
|
|
||||||
|
|
||||||
if param_page.nil?
|
if param_page.nil?
|
||||||
params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page}
|
params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page}
|
||||||
|
@ -41,6 +40,8 @@ class Backoffice::DossiersListController < ApplicationController
|
||||||
default_smart_listing_create :follow_dossiers, service.suivi
|
default_smart_listing_create :follow_dossiers, service.suivi
|
||||||
default_smart_listing_create :all_state_dossiers, service.all_state
|
default_smart_listing_create :all_state_dossiers, service.all_state
|
||||||
default_smart_listing_create :archived_dossiers, service.archive
|
default_smart_listing_create :archived_dossiers, service.archive
|
||||||
|
|
||||||
|
@archived_dossiers = service.archive
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
= smart_listing_render :all_state_dossiers
|
= smart_listing_render :all_state_dossiers
|
||||||
|
|
||||||
|
|
||||||
- if @dossiers_archived
|
- if @archived_dossiers
|
||||||
.default_data_block
|
.default_data_block
|
||||||
.row.show-block#archived_dossiers
|
.row.show-block#archived_dossiers
|
||||||
.header
|
.header
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
.carret-down
|
.carret-down
|
||||||
Dossiers archivés
|
Dossiers archivés
|
||||||
.col-xs-2.count
|
.col-xs-2.count
|
||||||
= pluralize(@dossiers_archived.count, "dossier")
|
= pluralize(@archived_dossiers.count, "dossier")
|
||||||
|
|
||||||
.body
|
.body
|
||||||
= smart_listing_render :archived_dossiers
|
= smart_listing_render :archived_dossiers
|
||||||
|
|
Loading…
Reference in a new issue