Skip to content

Commit

Permalink
Trie les comptes et les campagnes par la date de création (par défaut)
Browse files Browse the repository at this point in the history
sur le back-office

Co-authored-by: Étienne Charignon <[email protected]>
  • Loading branch information
cprodhomme and etienneCharignon committed Jun 7, 2021
1 parent 917fc75 commit 8966442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/admin/campagnes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
:compte_id, :affiche_competences_fortes, :parcours_type_id,
situations_configurations_attributes: %i[id situation_id questionnaire_id _destroy]

config.sort_order = 'created_at_desc'

filter :libelle
filter :code
filter :compte, if: proc { can? :manage, Compte }
Expand Down
2 changes: 2 additions & 0 deletions app/admin/comptes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

includes :structure

config.sort_order = 'created_at_desc'

filter :email
filter :statut_validation,
as: :select,
Expand Down

0 comments on commit 8966442

Please sign in to comment.