Improve work item dashboard
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m59s
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m59s
This commit is contained in:
parent
caa55559f4
commit
ea8a7a7871
@ -12,6 +12,7 @@ class WorkItemDashboard < Administrate::BaseDashboard
|
|||||||
course: Field::BelongsTo,
|
course: Field::BelongsTo,
|
||||||
available_from: Field::DateTime,
|
available_from: Field::DateTime,
|
||||||
due_at: Field::DateTime,
|
due_at: Field::DateTime,
|
||||||
|
completed_at: Field::DateTime,
|
||||||
title: Field::String,
|
title: Field::String,
|
||||||
tracked_time_entries: Field::HasMany,
|
tracked_time_entries: Field::HasMany,
|
||||||
document_link: Field::String,
|
document_link: Field::String,
|
||||||
@ -25,11 +26,11 @@ class WorkItemDashboard < Administrate::BaseDashboard
|
|||||||
# By default, it's limited to four items to reduce clutter on index pages.
|
# By default, it's limited to four items to reduce clutter on index pages.
|
||||||
# Feel free to add, remove, or rearrange items.
|
# Feel free to add, remove, or rearrange items.
|
||||||
COLLECTION_ATTRIBUTES = %i[
|
COLLECTION_ATTRIBUTES = %i[
|
||||||
id
|
title
|
||||||
course
|
course
|
||||||
available_from
|
available_from
|
||||||
due_at
|
due_at
|
||||||
title
|
completed_at
|
||||||
document_link
|
document_link
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
@ -45,6 +46,7 @@ class WorkItemDashboard < Administrate::BaseDashboard
|
|||||||
tracked_time_entries
|
tracked_time_entries
|
||||||
created_at
|
created_at
|
||||||
updated_at
|
updated_at
|
||||||
|
completed_at
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
# FORM_ATTRIBUTES
|
# FORM_ATTRIBUTES
|
||||||
@ -55,6 +57,7 @@ class WorkItemDashboard < Administrate::BaseDashboard
|
|||||||
course
|
course
|
||||||
available_from
|
available_from
|
||||||
due_at
|
due_at
|
||||||
|
completed_at
|
||||||
document_link
|
document_link
|
||||||
tracked_time_entries
|
tracked_time_entries
|
||||||
].freeze
|
].freeze
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user