demarches-normaliennes/app/dashboards/dubious_procedure_dashboard.rb

14 lines
467 B
Ruby
Raw Normal View History

require "administrate/base_dashboard"
class DubiousProcedureDashboard < Administrate::BaseDashboard
ATTRIBUTE_TYPES = {
id: Field::Number,
libelle: Field::String,
dubious_champs: Field::String,
2023-07-21 16:15:25 +02:00
aasm_state: Field::String,
hidden_at_as_template: Field::DateTime.with_options(format: "%d/%m/%Y")
}.freeze
2023-07-21 16:15:25 +02:00
COLLECTION_ATTRIBUTES = [:id, :libelle, :dubious_champs, :aasm_state, :hidden_at_as_template].freeze
COLLECTION_FILTERS = {}.freeze
end