Skip to content

Commit d7b36cf

Browse files
committed
Add school code to dashboard
We sometimes refer to schools by there code or want to send the code to teachers for students to use
1 parent 753d634 commit d7b36cf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/dashboards/school_dashboard.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class SchoolDashboard < Administrate::BaseDashboard
1111
# on pages throughout the dashboard.
1212
ATTRIBUTE_TYPES = {
1313
id: Field::String,
14+
code: Field::String,
1415
creator: Field::BelongsTo.with_options(class_name: 'User'),
1516
postal_code: Field::String,
1617
creator_role: Field::String,
@@ -44,6 +45,7 @@ class SchoolDashboard < Administrate::BaseDashboard
4445
# Feel free to add, remove, or rearrange items.
4546
COLLECTION_ATTRIBUTES = %i[
4647
name
48+
code
4749
user_origin
4850
reference
4951
country_code
@@ -58,6 +60,7 @@ class SchoolDashboard < Administrate::BaseDashboard
5860
# an array of attributes that will be displayed on the model's show page.
5961
SHOW_PAGE_ATTRIBUTES = %i[
6062
name
63+
code
6164
user_origin
6265
creator
6366
roles

0 commit comments

Comments
 (0)