Fix export data dossiers
This commit is contained in:
parent
926ae9d805
commit
d144047a50
4 changed files with 14 additions and 9 deletions
|
@ -30,14 +30,14 @@ class Backoffice::DossiersListController < ApplicationController
|
||||||
|
|
||||||
def smartlisting_dossier dossiers_list=nil, liste='a_traiter'
|
def smartlisting_dossier dossiers_list=nil, liste='a_traiter'
|
||||||
dossiers_list_facade liste
|
dossiers_list_facade liste
|
||||||
dossiers_list = dossiers_list_facade.dossiers_to_display if dossiers_list.nil?
|
@dossiers_list = dossiers_list_facade.dossiers_to_display if dossiers_list.nil?
|
||||||
|
|
||||||
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}
|
||||||
end
|
end
|
||||||
|
|
||||||
@dossiers = smart_listing_create :dossiers,
|
@dossiers = smart_listing_create :dossiers,
|
||||||
dossiers_list,
|
@dossiers_list,
|
||||||
partial: "backoffice/dossiers/list",
|
partial: "backoffice/dossiers/list",
|
||||||
array: true,
|
array: true,
|
||||||
default_sort: dossiers_list_facade.service.default_sort
|
default_sort: dossiers_list_facade.service.default_sort
|
||||||
|
|
|
@ -6,14 +6,15 @@
|
||||||
=t('dynamics.backoffice.title')
|
=t('dynamics.backoffice.title')
|
||||||
|
|
||||||
%div.dropdown.pull-right#download_menu
|
%div.dropdown.pull-right#download_menu
|
||||||
- if @dossiers.count > 200
|
- if @dossiers_list.count > 200
|
||||||
%button.btn.btn-error.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: 'disabled', 'data-toggle' => :tooltip, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 200 dossiers en téléchargement, merci de bien vouloir appliquer vos filtres.'}
|
%button.btn.btn-error.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: 'disabled'}
|
||||||
= t('dynamics.backoffice.limit_excess_download_all_dossiers')
|
%span{'data-toggle' => :tooltip, "data-placement" => :left, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 200, merci de bien vouloir appliquer des filtres.'}
|
||||||
|
= t('dynamics.backoffice.limit_excess_download_all_dossiers')
|
||||||
- else
|
- else
|
||||||
%button.btn.btn-success.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
|
%button.btn.btn-success.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
|
||||||
%i.fa.fa-download
|
%i.fa.fa-download
|
||||||
= t('dynamics.backoffice.download_all_dossiers')
|
= t('dynamics.backoffice.download_all_dossiers')
|
||||||
%span.caret
|
%span.caret
|
||||||
%ul.dropdown-menu.dropdown-menu-right
|
%ul.dropdown-menu.dropdown-menu-right
|
||||||
%li
|
%li
|
||||||
= link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do
|
= link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20161110082244) do
|
ActiveRecord::Schema.define(version: 20161115053251) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -62,6 +62,12 @@ ActiveRecord::Schema.define(version: 20161110082244) do
|
||||||
add_index "administrations", ["email"], name: "index_administrations_on_email", unique: true, using: :btree
|
add_index "administrations", ["email"], name: "index_administrations_on_email", unique: true, using: :btree
|
||||||
add_index "administrations", ["reset_password_token"], name: "index_administrations_on_reset_password_token", unique: true, using: :btree
|
add_index "administrations", ["reset_password_token"], name: "index_administrations_on_reset_password_token", unique: true, using: :btree
|
||||||
|
|
||||||
|
create_table "ar_internal_metadata", primary_key: "key", force: :cascade do |t|
|
||||||
|
t.string "value"
|
||||||
|
t.datetime "created_at", null: false
|
||||||
|
t.datetime "updated_at", null: false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "assign_tos", id: false, force: :cascade do |t|
|
create_table "assign_tos", id: false, force: :cascade do |t|
|
||||||
t.integer "gestionnaire_id"
|
t.integer "gestionnaire_id"
|
||||||
t.integer "procedure_id"
|
t.integer "procedure_id"
|
||||||
|
@ -308,7 +314,6 @@ ActiveRecord::Schema.define(version: 20161110082244) do
|
||||||
t.string "lien_demarche"
|
t.string "lien_demarche"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.boolean "test"
|
|
||||||
t.integer "administrateur_id"
|
t.integer "administrateur_id"
|
||||||
t.boolean "archived", default: false
|
t.boolean "archived", default: false
|
||||||
t.boolean "euro_flag", default: false
|
t.boolean "euro_flag", default: false
|
||||||
|
|
|
@ -17,7 +17,6 @@ describe Procedure do
|
||||||
it { is_expected.to have_db_column(:description) }
|
it { is_expected.to have_db_column(:description) }
|
||||||
it { is_expected.to have_db_column(:organisation) }
|
it { is_expected.to have_db_column(:organisation) }
|
||||||
it { is_expected.to have_db_column(:direction) }
|
it { is_expected.to have_db_column(:direction) }
|
||||||
it { is_expected.to have_db_column(:test) }
|
|
||||||
it { is_expected.to have_db_column(:euro_flag) }
|
it { is_expected.to have_db_column(:euro_flag) }
|
||||||
it { is_expected.to have_db_column(:logo) }
|
it { is_expected.to have_db_column(:logo) }
|
||||||
it { is_expected.to have_db_column(:logo_secure_token) }
|
it { is_expected.to have_db_column(:logo_secure_token) }
|
||||||
|
|
Loading…
Add table
Reference in a new issue