2019-05-17 10:43:50 +02:00
|
|
|
require "administrate/base_dashboard"
|
|
|
|
|
|
|
|
class BillSignatureDashboard < Administrate::BaseDashboard
|
|
|
|
ATTRIBUTE_TYPES = {
|
|
|
|
dossier_operation_logs: Field::HasMany,
|
|
|
|
id: Field::Number,
|
|
|
|
digest: Field::String,
|
|
|
|
created_at: Field::DateTime,
|
|
|
|
updated_at: Field::DateTime,
|
|
|
|
serialized: AttachmentField,
|
|
|
|
signature: AttachmentField
|
|
|
|
}.freeze
|
|
|
|
|
|
|
|
COLLECTION_ATTRIBUTES = [
|
|
|
|
:id,
|
|
|
|
:created_at,
|
|
|
|
:dossier_operation_logs,
|
|
|
|
:digest,
|
|
|
|
:serialized,
|
|
|
|
:signature
|
|
|
|
].freeze
|
2020-07-07 09:30:39 +02:00
|
|
|
|
|
|
|
# The show page is disabled, but administrate requires the constant
|
|
|
|
# to be defined
|
|
|
|
SHOW_PAGE_ATTRIBUTES = [].freeze
|
2019-05-17 10:43:50 +02:00
|
|
|
end
|