2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-05-16 12:20:24 +02:00
|
|
|
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")
|
2022-05-16 12:20:24 +02:00
|
|
|
}.freeze
|
2023-07-21 16:15:25 +02:00
|
|
|
COLLECTION_ATTRIBUTES = [:id, :libelle, :dubious_champs, :aasm_state, :hidden_at_as_template].freeze
|
2022-05-16 12:20:24 +02:00
|
|
|
COLLECTION_FILTERS = {}.freeze
|
|
|
|
end
|