2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-06-28 15:40:13 +02:00
|
|
|
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
|