demarches-normaliennes/app/dashboards/published_procedure_dashboard.rb
2024-06-28 18:20:05 +02:00

14 lines
488 B
Ruby

require "administrate/base_dashboard"
class PublishedProcedureDashboard < Administrate::BaseDashboard
ATTRIBUTE_TYPES = {
id: Field::Number,
libelle: Field::Text.with_options(truncate: 1000),
description: Field::Text.with_options(truncate: 1000),
service: Field::HasOne,
published_at: Field::DateTime
}.freeze
COLLECTION_ATTRIBUTES = [:id, :published_at, :libelle, :description, :service].freeze
COLLECTION_FILTERS = {}.freeze
SHOW_PAGE_ATTRIBUTES = {}
end