2024-01-15 21:31:06 -05:00
|
|
|
from django.urls import reverse
|
|
|
|
|
|
|
|
import dashboard
|
2024-02-06 00:41:01 -05:00
|
|
|
from dashboard import Link
|
2024-01-15 21:31:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
@dashboard.register
|
2024-02-06 00:41:01 -05:00
|
|
|
class MembershipworksDashboardFragment(dashboard.LinksCardDashboardFragment):
|
2024-01-15 21:31:06 -05:00
|
|
|
name = "MembershipWorks"
|
|
|
|
|
2024-02-06 00:41:01 -05:00
|
|
|
links = [
|
|
|
|
Link(
|
|
|
|
"Upcoming Events",
|
|
|
|
reverse("membershipworks:upcoming-events"),
|
|
|
|
permission="membershipworks.view_event",
|
|
|
|
tooltip="Generator for Wordpress posts",
|
|
|
|
),
|
|
|
|
Link(
|
|
|
|
"Event Report",
|
|
|
|
reverse("membershipworks:event-index-report"),
|
|
|
|
permission="membershipworks.view_event",
|
|
|
|
),
|
|
|
|
Link(
|
|
|
|
"Event Attendees",
|
|
|
|
reverse("membershipworks:event-attendees"),
|
|
|
|
permission="membershipworks.view_event",
|
|
|
|
),
|
2024-02-16 11:37:30 -05:00
|
|
|
Link(
|
|
|
|
"Missing Paperwork",
|
|
|
|
reverse("membershipworks:missing-paperwork-report"),
|
|
|
|
permission="membershipworks.view_member",
|
|
|
|
),
|
2024-02-06 00:41:01 -05:00
|
|
|
]
|