Skip to content

Commit

Permalink
feat: add search bar to project list
Browse files Browse the repository at this point in the history
  • Loading branch information
wiwski committed Jun 14, 2023
1 parent cdea1be commit 4f6d09b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions euphrosyne/assets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ ul li {
list-style-type: none;
}

/* purgecss ignore */
#toolbar input#searchbar {
height: 1.93rem;
}

/* purgecss start ignore */
.fr-tag.to_schedule {
background: var(--background-contrast-yellow-tournesol);
Expand Down
2 changes: 2 additions & 0 deletions lab/admin/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class ProjectAdmin(LabPermissionMixin, ModelAdmin):
view_permission=LabRole.PROJECT_MEMBER,
)

search_fields = ("name",)

class Media:
js = ("pages/project.js",)
css = {"all": ("css/admin/project-admin.css",)}
Expand Down

0 comments on commit 4f6d09b

Please sign in to comment.