diff --git a/templates/auth/login.html b/templates/auth/login.html new file mode 100644 index 0000000..e673c9e --- /dev/null +++ b/templates/auth/login.html @@ -0,0 +1,96 @@ +{% load static tailwind_cli %} + + + + + + + + {{ brand_name }} - Sign In + + + {% tailwind_css %} + + + + +
+
+ {% if branding and branding.logo %} + {{ brand_name }} + {% else %} +
+ {{ brand_name|first }} +
+ {% endif %} +

{{ brand_name }}

+

Project Management

+
+ + +
+

Sign in to your account

+ + {% if form.errors %} +
+ + + + Invalid username or password. +
+ {% endif %} + +
+ {% csrf_token %} +
+ + +
+
+ +
+ + +
+
+ +
+ +
+
+
Or continue with
+
+ + + + Google + +
+ +

© {% now "Y" %} {{ copyright_name }}. All rights reserved.

+
+ + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9523da0 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,268 @@ +{% load static tailwind_cli %} + + + + + + + + + {% if branding and branding.favicon %} + + {% endif %} + {{ brand_name }} - {% block title %}Dashboard{% endblock %} + {% block extra_head %}{% endblock %} + + + {% tailwind_css %} + + + + + + + + + + + +
+ +
{% include "components/mobile_sidebar.html" %}
+
+ {% include "components/topbar.html" %} +
{% if navigation_style == 'top' %}{% include "components/top_nav.html" %}{% endif %}
+
+ {% block breadcrumb %}{% endblock %} + {% block content %}{% endblock %} +
+ +
+
+ {% include "components/confirm_modal.html" %} + + {% include "components/toast_container.html" %} + + + {% block extra_scripts %}{% endblock %} + + diff --git a/templates/components/confirm_modal.html b/templates/components/confirm_modal.html new file mode 100644 index 0000000..5db2c55 --- /dev/null +++ b/templates/components/confirm_modal.html @@ -0,0 +1,11 @@ +
+
+
+

+

+
+ + +
+
+
diff --git a/templates/components/create_ticket_modal.html b/templates/components/create_ticket_modal.html new file mode 100644 index 0000000..fc79f1a --- /dev/null +++ b/templates/components/create_ticket_modal.html @@ -0,0 +1,63 @@ + +
+
+
+
+

Create Ticket

+ +
+
+ {% csrf_token %} + + + +
+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="createTicketData.description" %} +
+
+
+ + +
+
+
+
diff --git a/templates/components/edit_epic_modal.html b/templates/components/edit_epic_modal.html new file mode 100644 index 0000000..fa4f8c5 --- /dev/null +++ b/templates/components/edit_epic_modal.html @@ -0,0 +1,46 @@ + +
+
+
+
+

Edit Epic

+ +
+
+ {% csrf_token %} +
+
+
+ + +
+
+ + + Lower numbers appear first +
+
+
+
+ + +
+
+ + +
+
+
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="editEpicData.description" %} +
+
+
+ + +
+
+
+
diff --git a/templates/components/external_dashboard_modal.html b/templates/components/external_dashboard_modal.html new file mode 100644 index 0000000..a913887 --- /dev/null +++ b/templates/components/external_dashboard_modal.html @@ -0,0 +1,53 @@ + +
+
+
+
+

External Dashboard

+ +
+
+
+

Dashboard URL

+
+ + +
+
+
+

Password

+
+ + +
+
+ {% if external_access.last_accessed_at %} +
+

Last Accessed

+

{{ external_access.last_accessed_at|date:"d/m/Y H:i" }}

+
+ {% endif %} +
+

Status

+ + {{ external_access.is_active|yesno:"Active,Inactive" }} + +
+
+
Instructions
+
    +
  1. Share the Dashboard URL with your external users
  2. +
  3. Provide them with the password for access
  4. +
  5. Users will be able to view project progress and tickets
  6. +
+
+
+
+ {% csrf_token %} + +
+ +
+
+
+
diff --git a/templates/components/gantt_chart.html b/templates/components/gantt_chart.html new file mode 100644 index 0000000..67c4072 --- /dev/null +++ b/templates/components/gantt_chart.html @@ -0,0 +1,219 @@ + + + + +
+
+ Loading timeline... +
+
+ + + diff --git a/templates/components/mobile_sidebar.html b/templates/components/mobile_sidebar.html new file mode 100644 index 0000000..e7b059c --- /dev/null +++ b/templates/components/mobile_sidebar.html @@ -0,0 +1,36 @@ +
+
+
+
+
+ {% if branding and branding.logo %} + {{ brand_name }} + {% else %} +
{{ brand_name|first }}
+ {% endif %} + {{ brand_name }} +
+ +
+ +
+
diff --git a/templates/components/project_tabs.html b/templates/components/project_tabs.html new file mode 100644 index 0000000..4922775 --- /dev/null +++ b/templates/components/project_tabs.html @@ -0,0 +1,38 @@ +
+ +
diff --git a/templates/components/rich_text_editor.html b/templates/components/rich_text_editor.html new file mode 100644 index 0000000..899fe01 --- /dev/null +++ b/templates/components/rich_text_editor.html @@ -0,0 +1,159 @@ + + + + + + + + + +
+ + + +
+ +
+ + +
+ + + + + + + + + +
+ + + +
+ +
+ + +
+
+ +
+ +
+ + +
+ + +
+ + + +
+ + + + + + + diff --git a/templates/components/rich_text_editor_assets.html b/templates/components/rich_text_editor_assets.html new file mode 100644 index 0000000..0d03e8c --- /dev/null +++ b/templates/components/rich_text_editor_assets.html @@ -0,0 +1,952 @@ + + + + \ No newline at end of file diff --git a/templates/components/sidebar.html b/templates/components/sidebar.html new file mode 100644 index 0000000..5645266 --- /dev/null +++ b/templates/components/sidebar.html @@ -0,0 +1,73 @@ + diff --git a/templates/components/sw.js b/templates/components/sw.js new file mode 100644 index 0000000..5454399 --- /dev/null +++ b/templates/components/sw.js @@ -0,0 +1,12 @@ +// Empty Service Worker +self.addEventListener("install", (event) => { + self.skipWaiting(); +}); + +self.addEventListener("activate", (event) => { + event.waitUntil(self.clients.claim()); +}); + +self.addEventListener("fetch", (event) => { + // Do nothing +}); diff --git a/templates/components/toast_container.html b/templates/components/toast_container.html new file mode 100644 index 0000000..e5e7c34 --- /dev/null +++ b/templates/components/toast_container.html @@ -0,0 +1,9 @@ +
+ +{% if messages %} + +{% endif %} diff --git a/templates/components/top_nav.html b/templates/components/top_nav.html new file mode 100644 index 0000000..7847532 --- /dev/null +++ b/templates/components/top_nav.html @@ -0,0 +1,26 @@ +
+ + Dashboard + + + Projects + + + Timeline + + + Board + + + Tickets + + + Epics + + + Analytics + + + Leaderboard + +
diff --git a/templates/components/topbar.html b/templates/components/topbar.html new file mode 100644 index 0000000..52d7752 --- /dev/null +++ b/templates/components/topbar.html @@ -0,0 +1,63 @@ + diff --git a/templates/contributions/index.html b/templates/contributions/index.html new file mode 100644 index 0000000..40d462e --- /dev/null +++ b/templates/contributions/index.html @@ -0,0 +1,143 @@ +{% extends "base.html" %} +{% block title %}User Contributions{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+

User Contributions

+

GitHub-style contribution heatmap

+
+
+ {% for year in available_years %} + {{ year }} + {% endfor %} +
+
+ +
+ {% for entry in contributions %} +
+
+
+ {% with name=entry.user.get_full_name|default:entry.user.username %} +
{{ name|make_list|first|upper }}
+
+

{{ name }}

+

Activity for {{ target_year }}

+
+ {% endwith %} +
+
+
+
+
+
+

{{ entry.tickets_created }}

+

Tickets Created

+
+
+

{{ entry.status_changes }}

+

Status Changes

+
+
+

{{ entry.comments_made }}

+

Comments Made

+
+
+

{{ entry.active_days }}

+

Active Days

+
+
+
+ +
+
+

Daily Contributions

+
+ Less +
+
+
+
+
+
+
+ More +
+
+
+
+
+
Sun
+
Mon
+
Tue
+
Wed
+
Thu
+
Fri
+
Sat
+
+ {% for week in entry.weeks %} +
+ {% for day in week %} +
+ {% endfor %} +
+ {% empty %} +

No data for this period

+ {% endfor %} +
+
+
+
+
+ {% empty %} +
+ +

No contributions data

+
+ {% endfor %} +
+ + +{% endblock %} \ No newline at end of file diff --git a/templates/dashboard/index.html b/templates/dashboard/index.html new file mode 100644 index 0000000..a7d16bf --- /dev/null +++ b/templates/dashboard/index.html @@ -0,0 +1,108 @@ +{% extends "base.html" %} +{% load static %} +{% block title %}Dashboard{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} + +
+
+
+

Welcome back, {{ request.user.get_full_name|default:request.user.username }}!

+

Loading quote...

+
+
+

{% now "d" %}

+

{% now "M Y" %}

+
+
+
+ + + + +
+ {% for stat in stats %} +
+ {% if stat.super %} +
+ Admin +
+ {% endif %} +
+
+ +
+ {{ stat.label }} +
+

{{ stat.value }}

+

{{ stat.desc }}

+
+ {% endfor %} +
+ + +
+

Tickets per Project

Distribution across projects

+

Monthly Trend

Ticket creation over time

+
+ + +
+

User Statistics

Individual contributions

+

Recent Activity

Latest updates across projects

+
+ + +

Project Timeline

Upcoming milestones and deadlines

+{% endblock %} + +{% block extra_scripts %} + +{% endblock %} diff --git a/templates/dashboard/partials/monthly_trend_chart.html b/templates/dashboard/partials/monthly_trend_chart.html new file mode 100644 index 0000000..f3aa1ef --- /dev/null +++ b/templates/dashboard/partials/monthly_trend_chart.html @@ -0,0 +1,93 @@ +
+
+
+

Monthly Ticket Trend

+

Creation and completion over time

+
+
+
+ + Created +
+
+ + Completed +
+
+
+
+ +
+
+ diff --git a/templates/dashboard/partials/notif_badge.html b/templates/dashboard/partials/notif_badge.html new file mode 100644 index 0000000..95d1d8c --- /dev/null +++ b/templates/dashboard/partials/notif_badge.html @@ -0,0 +1 @@ +{{ count }} \ No newline at end of file diff --git a/templates/dashboard/partials/notif_dropdown.html b/templates/dashboard/partials/notif_dropdown.html new file mode 100644 index 0000000..39ac6d1 --- /dev/null +++ b/templates/dashboard/partials/notif_dropdown.html @@ -0,0 +1,42 @@ +
+
+

Notifications

+ Mark all as read +
+
+ {% for notif in notifications %} + +
+ + {% if notif.type == "comment_added" %} + + {% elif notif.type == "status_changed" %} + + {% else %} + + {% endif %} + +
+

{{ notif.title }}

+ {% if notif.message %} +

{{ notif.message }}

+ {% endif %} +

{{ notif.created_at|timesince }} ago

+
+
+
+ {% empty %} +
+ + No new notifications +
+ {% endfor %} +
+
+ View all notifications +
+
diff --git a/templates/dashboard/partials/project_timeline.html b/templates/dashboard/partials/project_timeline.html new file mode 100644 index 0000000..e776662 --- /dev/null +++ b/templates/dashboard/partials/project_timeline.html @@ -0,0 +1,95 @@ +
+
+
+

Project Timeline

+

Upcoming milestones and deadlines

+
+
+ + +
+
+ + {% if projects %} +
+ {% for p in projects %} +
+
+
+
+

{{ p.name }}

+ + {{ p.status }} + +
+
+ {{ p.start_date|date:"d/m/Y" }} - {{ p.end_date|date:"d/m/Y" }} + {{ p.total_days }} days +
+
+
+
+
+
+ {% if p.progress > 0 %} +
+ {% endif %} +
+ {{ p.progress|stringformat:".0f" }}% +
+
+
+ {% if p.past_days > 0 %} + {{ p.past_days }} day{{ p.past_days|pluralize }} done + {% endif %} +
+
+ {% if p.remaining_days > 0 %} + {{ p.remaining_days }} day{{ p.remaining_days|pluralize }} left + {% elif p.remaining_days < 0 %} + {{ p.remaining_days|stringformat:"d"|cut:"-" }} day{{ p.remaining_days|pluralize }} overdue + {% else %} + Due today + {% endif %} +
+
+
+
+ {% endfor %} +
+ {% else %} +
+
+ +
+

+ {% if current_filter == 'pinned' %}No pinned projects{% else %}No projects found{% endif %} +

+

+ {% if current_filter == 'pinned' %} + You haven't pinned any projects yet. Pin important projects to keep them easily accessible. + {% else %} + Create a new project or check your project permissions. + {% endif %} +

+
+ {% endif %} +
diff --git a/templates/dashboard/partials/recent_activity.html b/templates/dashboard/partials/recent_activity.html new file mode 100644 index 0000000..340b850 --- /dev/null +++ b/templates/dashboard/partials/recent_activity.html @@ -0,0 +1,77 @@ +
+
+
+

Recent Activities

+

Latest updates across projects

+
+ + View All + +
+ +
+
+ + to + +
+ + + +
+ + + +
+ + + + + + + + + {% if histories %} + {% for h in histories %} + + + + + {% endfor %} + {% else %} + + + + {% endif %} + +
ActivityStatus
+
+ {{ h.user.get_full_name|default:h.user.username }} + changed + "{{ h.ticket.name|truncatechars:40 }}" +
+

+ {% now "Y-m-d" as today_str %}{% if h.created_at|date:"Y-m-d" == today_str %}{{ h.created_at|time:"H:i" }}{% else %}{{ h.created_at|date:"M d, H:i" }}{% endif %} + • {{ h.ticket.uuid }} + • {{ h.ticket.project.name }} +

+
+ + {{ h.status.name }} + +
+ +

No Activity Found

+

No ticket activities found for the selected period.

+
+
+
+ \ No newline at end of file diff --git a/templates/dashboard/partials/stats_cards.html b/templates/dashboard/partials/stats_cards.html new file mode 100644 index 0000000..37c72db --- /dev/null +++ b/templates/dashboard/partials/stats_cards.html @@ -0,0 +1,27 @@ +
+ {% for stat in stats %} +
+ {% if stat.super %} +
+ Admin +
+ {% endif %} +
+
+ +
+ {{ stat.label }} +
+

+ {{ stat.value }} +

+

{{ stat.desc }}

+
+ {% endfor %} +
diff --git a/templates/dashboard/partials/tickets_per_project_chart.html b/templates/dashboard/partials/tickets_per_project_chart.html new file mode 100644 index 0000000..9debdfc --- /dev/null +++ b/templates/dashboard/partials/tickets_per_project_chart.html @@ -0,0 +1,28 @@ +
+
+
+

Number of tickets per project

+

Distribution across active projects

+
+
+
+
+ {% for item in chart_data %} +
+
+ {{ item.name }} + {{ item.count }} +
+
+
+
+
+ {% empty %} +
+ +

No project data available

+
+ {% endfor %} +
+
+
\ No newline at end of file diff --git a/templates/dashboard/partials/user_statistics_chart.html b/templates/dashboard/partials/user_statistics_chart.html new file mode 100644 index 0000000..fb08c91 --- /dev/null +++ b/templates/dashboard/partials/user_statistics_chart.html @@ -0,0 +1,40 @@ +
+
+
+

User Statistics Chart

+

Individual contribution breakdown

+
+
+
+ +
+
+ \ No newline at end of file diff --git a/templates/dashboard/recent_activity_all.html b/templates/dashboard/recent_activity_all.html new file mode 100644 index 0000000..be06b11 --- /dev/null +++ b/templates/dashboard/recent_activity_all.html @@ -0,0 +1,133 @@ +{% extends "base.html" %} +{% block title %}Recent Activity{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+

Recent Activities

+

All ticket activity history

+
+ + Back to Dashboard + +
+ +
+
+ +
+ + +
+ + + + + +
+ + to + +
+ + + + + + + + + {% if search_query or start_date or end_date or today_filter or user_filter %} + Clear + {% endif %} +
+
+ +
+
+ + + + + + + + + {% if histories %} + {% for h in histories %} + + + + + {% endfor %} + {% else %} + + + + {% endif %} + +
ActivityStatus
+
+ {{ h.user.get_full_name|default:h.user.username }} + changed + "{{ h.ticket.name|truncatechars:60 }}" +
+

+ {% now "Y-m-d" as today_str %}{% if h.created_at|date:"Y-m-d" == today_str %}{{ h.created_at|time:"H:i" }}{% else %}{{ h.created_at|date:"M d, H:i" }}{% endif %} + • {{ h.ticket.uuid }} + • {{ h.ticket.project.name }} +

+
+ + {{ h.status.name }} + +
+ +

No Activity Found

+

No ticket activities found matching the filters.

+
+
+
+ + {% if page_obj.has_other_pages %} +
+ {% if page_obj.has_previous %} + Previous + {% endif %} +
+ {% for num in page_obj.paginator.page_range %} + {% if num == page_obj.number %} + {{ num }} + {% elif num > page_obj.number|add:"-3" and num < page_obj.number|add:"3" %} + {{ num }} + {% endif %} + {% endfor %} +
+ {% if page_obj.has_next %} + Next + {% endif %} +
+ {% endif %} +
+{% endblock %} \ No newline at end of file diff --git a/templates/emails/base_email.html b/templates/emails/base_email.html new file mode 100644 index 0000000..c259d05 --- /dev/null +++ b/templates/emails/base_email.html @@ -0,0 +1,84 @@ + + + + + + + + +
+
+

{{ site_name|default:"Project Management" }}

+
+
+ {% block email_content %}{% endblock %} +
+ +
+ + diff --git a/templates/emails/deadline_reminder.html b/templates/emails/deadline_reminder.html new file mode 100644 index 0000000..477f909 --- /dev/null +++ b/templates/emails/deadline_reminder.html @@ -0,0 +1,45 @@ +{% extends "emails/base_email.html" %} +{% block email_content %} +

⏰ Deadline Approaching

+

+ This is a reminder that the following ticket is due in {{ days_left }} day{% if days_left != 1 %}s{% endif %}: +

+ +
+

{{ ticket_name }}

+

{{ ticket_uuid }}

+
+ + + + + + + + + + + + + + + {% if priority_name %} + + + + + {% endif %} +
Due Date{{ due_date }}
Project{{ project_name }}
Status{{ status_name }}
Priority{{ priority_name }}
+ +{% if days_left <= 2 %} +
+

+ ⚠️ This ticket is due very soon! Please prioritize it. +

+
+{% endif %} + +
+ View Ticket +
+{% endblock %} diff --git a/templates/emails/notification.html b/templates/emails/notification.html new file mode 100644 index 0000000..de43f08 --- /dev/null +++ b/templates/emails/notification.html @@ -0,0 +1,34 @@ +{% extends "emails/base_email.html" %} +{% block email_content %} +

{{ title }}

+

{{ message }}

+ +{% if ticket_url %} +
+ View Ticket +
+{% endif %} + +
+ + + {% if ticket_uuid %} + + + + + {% endif %} + {% if project_name %} + + + + + {% endif %} + {% if user_name %} + + + + + {% endif %} +
Ticket{{ ticket_uuid }}
Project{{ project_name }}
By{{ user_name }}
+{% endblock %} diff --git a/templates/epics/form.html b/templates/epics/form.html new file mode 100644 index 0000000..26d2efc --- /dev/null +++ b/templates/epics/form.html @@ -0,0 +1,99 @@ +{% extends "base.html" %} +{% block title %}{% if epic %}Edit {{ epic.name }}{% else %}Create Epic{% endif %}{% endblock %} +{% block extra_head %} +{% include "components/rich_text_editor_assets.html" %} +{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+

{% if epic %}Edit Epic{% else %}Create Epic{% endif %}

+

{% if epic %}Update epic details{% else %}Create a new epic to group related tickets{% endif %}

+
+ +
+ {% csrf_token %} + +
+
+

Epic Details

+

Basic information about the epic.

+
+
+ {% if not selected_project %} +
+ + +
+ {% else %} +
+ + + +
+ {% endif %} + +
+ + +
+ +
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="description" %} +
+ +
+
+ + +
+
+ + +
+
+
+
+ +
+ + + Cancel + +
+
+
+{% endblock %} +{% block extra_scripts %} +{% endblock %} diff --git a/templates/epics/overview.html b/templates/epics/overview.html new file mode 100644 index 0000000..12b1079 --- /dev/null +++ b/templates/epics/overview.html @@ -0,0 +1,242 @@ +{% extends "base.html" %} +{% block title %}Epics Overview{% endblock %} +{% block extra_head %} +{% include "components/rich_text_editor_assets.html" %} +{% endblock %} +{% block breadcrumb %} + +{% endblock %} + +{% block content %} +
+ +{% if not selected_project_id %} +
+
+

Epics Overview

+

Browse epics across all projects

+
+
+
+
+

Select Project

+

Choose a project to view its epics

+
+ +
+
+
+ + + +
+
+ + {% if not projects %} +
+

No Projects Available

+

You don't have access to any projects yet.

+
+ {% else %} +
+ +
+
+ +

No Projects Found

+

Try adjusting your search terms

+
+ {% endif %} +
+
+ +{% else %} +
+
+

Epics Overview

+

{{ selected_project.name }}

+
+
+ Back +
+
+
+
+
+ + +
+
+ + {% if epics %} +
+
+

Epics Overview

+
+
+ {% for epic in epics %} +
+
+
+
+

{{ epic.name }}

+
+ {{ epic.start_date|date:"M d, Y"|default:"-" }} — {{ epic.end_date|date:"M d, Y"|default:"-" }} +
+
+
+
+ + {{ epic.tickets.count }} tickets + + +
+
+
+ {% if epic.description %} +
+
{{ epic.description|safe }}
+
+ {% endif %} +
+
+

Tickets

+ +
+ {% if epic.tickets.all %} +
+ + + + + + + + + + + + + {% for ticket in epic.tickets.all %} + + + + + + + + + {% endfor %} + +
IDTicketStatusActions
{{ ticket.uuid|truncatechars:8 }}{{ ticket.name }} + + {{ ticket.status.name }} + + + View +
+
+ {% else %} +
No tickets found for this epic.
+ {% endif %} +
+
+
+ {% endfor %} +
+
+ {% else %} +
+
+ +
+

No epics found in this project

+

This project doesn't have any epics yet. Create an epic to organize your tickets.

+ Create Epic +
+ {% endif %} +
+{% endif %} + {% include "components/edit_epic_modal.html" %} + {% include "components/create_ticket_modal.html" %} +
+{% endblock %} diff --git a/templates/external/access.html b/templates/external/access.html new file mode 100644 index 0000000..a28fa8f --- /dev/null +++ b/templates/external/access.html @@ -0,0 +1,22 @@ + + + + + + {{ access.project.name }} - External Dashboard + + + + + + {% if authenticated %} + {% include "external/partials/dashboard.html" %} + {% else %} + {% include "external/partials/login.html" %} + {% endif %} + + diff --git a/templates/external/list.html b/templates/external/list.html new file mode 100644 index 0000000..5d69ac2 --- /dev/null +++ b/templates/external/list.html @@ -0,0 +1,94 @@ +{% extends "base.html" %} +{% block title %}External Access{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+

External Access

+

{{ accesses.count }} access entries

+
+
+ + +
+

Access Entries

{{ accesses.count }} entries

+
+ + + + + + + + + + + + + {% for a in accesses %} + + + + + + + + + {% empty %} + + + + {% endfor %} + +
ProjectTokenPasswordStatusLast AccessedActions
{{ a.project.name }} +
+ {{ a.access_token|truncatechars:20 }} + +
+
+
+ + +
+
+ {% if a.is_active %} + Active + {% else %} + Inactive + {% endif %} + + {% if a.last_accessed_at %}{{ a.last_accessed_at|date:"M d, Y H:i" }}{% else %}Never{% endif %} + +
+
+ {% csrf_token %} + +
+
+ {% csrf_token %} + +
+ Open Link +
+
+ +

No external access entries

+

Create one from a project's settings.

+
+
+
+{% endblock %} diff --git a/templates/external/partials/dashboard.html b/templates/external/partials/dashboard.html new file mode 100644 index 0000000..25c4acf --- /dev/null +++ b/templates/external/partials/dashboard.html @@ -0,0 +1,66 @@ +
+
+
+

{{ access.project.name }}

+

External Client Dashboard — {{ tickets|length }} tickets

+
+
+ {% csrf_token %} + +
+
+ +
+
+ + + + + + + + + + + + + {% for t in tickets %} + + + + + + + + + {% empty %} + + + + {% endfor %} + +
IDNameStatusPriorityCreatedDue
{{ t.uuid }}{{ t.name }} + + {{ t.status.name }} + + + {% if t.priority %} + + {{ t.priority.name }} + + {% else %} + — + {% endif %} + {{ t.created_at|date:"M d, Y" }} + {% if t.due_date %}{{ t.due_date|date:"M d, Y" }}{% else %}—{% endif %} +
+ +

No tickets yet

+
+
+
+
diff --git a/templates/external/partials/login.html b/templates/external/partials/login.html new file mode 100644 index 0000000..5ac28a1 --- /dev/null +++ b/templates/external/partials/login.html @@ -0,0 +1,28 @@ +
+
+
+
D
+

{{ access.project.name }}

+

Enter the password to access this project.

+
+ +
+ {% if error %} +
{{ error }}
+ {% endif %} + +
+ {% csrf_token %} +
+ + +
+ +
+
+
+
diff --git a/templates/leaderboard/index.html b/templates/leaderboard/index.html new file mode 100644 index 0000000..2522349 --- /dev/null +++ b/templates/leaderboard/index.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block title %}Leaderboard{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +{% include "leaderboard/partials/content.html" %} +{% endblock %} \ No newline at end of file diff --git a/templates/leaderboard/partials/content.html b/templates/leaderboard/partials/content.html new file mode 100644 index 0000000..148d2b0 --- /dev/null +++ b/templates/leaderboard/partials/content.html @@ -0,0 +1,144 @@ +{% load static %} +
+
+

Leaderboard

+

+ {% if days == 7 %}Last 7 Days{% else %}Last 30 Days{% endif %} · Top {{ top_n }} Contributors +

+
+
+ + +
+
+ +
+ {% for entry in leaderboard %} +
+ {# Mobile layout #} +
+
+
+
+ {% if forloop.counter0 == 0 %}🥇{% elif forloop.counter0 == 1 %}🥈{% elif forloop.counter0 == 2 %}🥉{% else %}🏅{% endif %} +
+
+ #{{ forloop.counter }} +
+
+
+
+ {% with name=entry.user.get_full_name|default:entry.user.username %} +
+ {{ name|make_list|first|upper }} +
+ {% endwith %} +
+

{{ entry.user.get_full_name|default:entry.user.username }}

+
+
+

+ Total Score: {{ entry.score|floatformat:0 }} +

+
+
+
+
+

{{ entry.tickets_created }}

+

Tickets

+
+
+

{{ entry.status_changes }}

+

Updates

+
+
+

{{ entry.comments_made }}

+

Comments

+
+
+

{{ entry.active_days }}

+

Active Days

+
+
+
+ + {# Desktop layout #} + +
+ {% empty %} +
+ 🏆 +

No Contributors Found

+

No user activity found for the selected time period.

+
+ {% endfor %} +
+ +
+
+
+

📊 Scoring System

+

How contribution scores are calculated

+
+
+
+
+

📐 Score Calculation Formula:

+

+ Total Score = (Status Changes × 5) + (Tickets Created × 2) + (Comments Made × 2) + (Active Days × 1) +

+
+
+
diff --git a/templates/notifications/list.html b/templates/notifications/list.html new file mode 100644 index 0000000..a61b0e1 --- /dev/null +++ b/templates/notifications/list.html @@ -0,0 +1,188 @@ +{% extends "base.html" %} +{% block title %}Notifications{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+

Notifications

+ Mark all as read +
+ +
+ +
+ +
+
+ +
+ + +
+ + + + {% if search_query or type_filter %} + Clear + {% endif %} +
+
+ + {% if notifications %} +
+ {% csrf_token %} + + +
+ + + +
+ +
+
+ + + + + + + + + + + + + + {% for notif in notifications %} + + + + + + + + + + + {% endfor %} + +
+ + MessageTicketTypeDateActions
+ + +
+

{{ notif.title|striptags }}

+ {% if notif.message %} +

{{ notif.message|striptags }}

+ {% endif %} +
+
+ {% if notif.data.ticket_id %} + + Ticket #{{ notif.data.ticket_id }} + + {% else %} + N/A + {% endif %} + + + {{ notif.type|title|cut:"_" }} + + {{ notif.created_at|timesince }} ago +
+ {% if not notif.read_at %} + Mark read + {% endif %} + {% if notif.data.ticket_id %} + View + {% endif %} +
+
+
+
+
+ + {% if page_obj.has_other_pages %} +
+ {% if page_obj.has_previous %} + Previous + {% endif %} +
+ {% for num in page_obj.paginator.page_range %} + {% if num == page_obj.number %} + {{ num }} + {% elif num > page_obj.number|add:"-3" and num < page_obj.number|add:"3" %} + {{ num }} + {% endif %} + {% endfor %} +
+ {% if page_obj.has_next %} + Next + {% endif %} +
+ {% endif %} + + {% else %} +
+ +

No notifications found

+

+ {% if search_query or type_filter %} + Try adjusting your search or filter. + {% else %} + You'll see notifications here when activity happens on your tickets. + {% endif %} +

+
+ {% endif %} +
+ + +{% endblock %} \ No newline at end of file diff --git a/templates/projects/board.html b/templates/projects/board.html new file mode 100644 index 0000000..dacd7cf --- /dev/null +++ b/templates/projects/board.html @@ -0,0 +1,633 @@ +{% extends "base.html" %} +{% block title %}Project Board{% endblock %} +{% block extra_head %} + +{% include "components/rich_text_editor_assets.html" %} + +{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+ +{% if not selected_project %} + +
+
+

Project Board

+

Drag and drop tickets across status columns

+
+
+ + +
+
+
+

Select Project

+

Choose a project to view its board

+
+
+
+
+ +
+ +
+
+ {% if not projects %} +
+

No Projects Available

+

You don't have access to any projects yet.

+
+ {% elif search and not projects %} +
+ +

No Projects Found

+

Try adjusting your search terms

+
+ {% else %} + + {% endif %} +
+
+ +{% else %} + +
+
+

Project Board

+

{{ selected_project.name }}

+
+
+ + + + +
+
+ + +
+
+ +
+
+
Switch Project
+ {% for p in projects %} + + {{ p.ticket_prefix }} +
{{ p.name }}
+ {% if p.id == selected_project.id %}{% endif %} +
+ {% endfor %} +
+
+
+
+ + +
+ Swipe horizontally to view all columns +
+ + +{% if not can_move %} +
+
+ View Only ModeYou can view tickets but cannot move them +
+
+{% endif %} + + + + +
+
+ {% for col in columns %} +
+
+
+

+ {{ col.status.name }} + {{ col.count }} + {% if col.status.is_completed %} +
+ +
+ {% endif %} +

+ +
+
+
+ {% for ticket in col.tickets %} +
+
+ {{ ticket.uuid }} +
+ {% if ticket.priority %}{{ ticket.priority.name }}{% endif %} + {% if ticket.due_date %}{{ ticket.due_date|date:"M d" }}{% endif %} +
+
+

{{ ticket.name }}

+ {% if ticket.description %}

{{ ticket.description|striptags|truncatechars:100 }}

{% endif %} +
+
+ {% if ticket.assignees.all %} + {% for assignee in ticket.assignees.all|slice:":2" %} +
+ {{ assignee.get_full_name|default:assignee.username|first|upper }} + {{ assignee.get_full_name|default:assignee.username|truncatechars:8 }} +
+ {% endfor %} + {% if ticket.assignees.all|length > 2 %}
+{{ ticket.assignees.all|length|add:"-2" }}
{% endif %} + {% else %} +
+ Unassigned +
+ {% endif %} +
+ View +
+
+ {% empty %} +
No tickets
+ {% endfor %} +
+
+ {% endfor %} + {% if not columns %} +
No status columns found for this project
+ {% endif %} +
+
+ + +
+
+
+
+

New Ticket

+ +
+
+ {% csrf_token %} +
+ + +
+
+ + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="ticketDescription" %} +
+ + +
+
+ + +

Select multiple users to assign this ticket to. Only project members can be assigned.

+
+
+ + +
+
+ + +
+
+
+ + +
+
+
+
+
+ + + +
+
+
+
+
+

Export to Excel

+

Select columns to include in the export

+
+ +
+
+
+ +
+
+
+ + +
+
+
+ + +
+
+
+
+
+

Filter by User

+

Select users to filter tickets

+
+ +
+
+
+ {% for u in project_users %} + + {% empty %}

No users with tickets in this project

{% endfor %} +
+
+
+ +
+ + +
+
+
+
+ +{% endif %} +
+{% endblock %} + +{% block extra_scripts %} + + +{% endblock %} diff --git a/templates/projects/detail.html b/templates/projects/detail.html new file mode 100644 index 0000000..2830a17 --- /dev/null +++ b/templates/projects/detail.html @@ -0,0 +1,558 @@ +{% extends "base.html" %} +{% block title %}{{ project.name }}{% endblock %} + +{% block breadcrumb %} + +{% endblock %} + +{% block content %} + +
+
+ {{ project.ticket_prefix }} +
+

{{ project.name }}

+
+
+
+ Back + Project Board + + Edit +
+
+ +
+ + {# Row 1: Left col (Project Info + Timestamps) | Right col (Statistics) #} +
+ + {# LEFT: Project Information + Timestamps stacked #} +
+ + {# Project Information Card #} +
+

Project Information

+ +
+ +
+

Project Name

+

{{ project.name }}

+
+ + +
+

Ticket Prefix

+ + {{ project.ticket_prefix }} + +
+
+ + +
+

Description

+ {% if project.description %} +
{{ project.description|safe }}
+ {% else %} +

No description provided.

+ {% endif %} +
+ +
+ +
+

Start Date

+

{{ project.start_date|date:"d/m/Y"|default:"—" }}

+
+ + +
+

End Date

+

{{ project.end_date|date:"d/m/Y"|default:"—" }}

+
+
+ +
+ +
+

Remaining Days

+ {% if remaining_days is not None %} + + {{ remaining_days }} days + + {% else %} + — + {% endif %} +
+ + +
+

Pinned Status

+ {% if project.pinned_date %} + Pinned + {% else %} + Not pinned + {% endif %} +
+
+
+ + {# Timestamps Card #} +
+ +
+
+
+

Created At

+

{{ project.created_at|date:"d/m/Y H:i" }}

+
+
+

Last Updated

+

{{ project.updated_at|date:"d/m/Y H:i" }}

+
+
+
+
+ +
+ + {# RIGHT: Project Statistics Card #} +
+
+

Project Statistics

+
+ +
+
+ Total Members +
+ {{ members_count }} +
+
+ +
+ Total Tickets +
+ {{ tickets_count_total }} +
+
+ +
+ Total Epics +
+ {{ epics_count }} +
+
+ +
+ Ticket Statuses +
+ {{ statuses_count }} +
+
+
+
+
+ + {% include "components/project_tabs.html" with active_tab_var="$store.projectDetail.activeTab" %} + + +
+
+

Ticket Statuses

+
+
+
+ + +
+ {% if statuses_search %}Clear{% endif %} +
+
+ +
+
+ {% for col in all_statuses_columns %} + + {% endfor %} +
+
+
+
+
+
+ + + + {% if "name" in statuses_columns %}{% endif %} + {% if "color" in statuses_columns %}{% endif %} + {% if "sort_order" in statuses_columns %}{% endif %} + {% if "is_completed" in statuses_columns %}{% endif %} + + + + {% for s in statuses %} + + {% if "name" in statuses_columns %}{% endif %} + {% if "color" in statuses_columns %}{% endif %} + {% if "sort_order" in statuses_columns %}{% endif %} + {% if "is_completed" in statuses_columns %}{% endif %} + + {% empty %} + + {% endfor %} + +
NameColorOrderCompleted
{{ s.name }}{{ s.color }}{{ s.sort_order }}{% if s.is_completed %}Yes{% else %}No{% endif %}
No statuses found.
+
+ {% if statuses_paginator.paginator.num_pages > 1 %} +
+ {{ statuses.start_index }}–{{ statuses.end_index }} of {{ statuses.paginator.count }} +
+ {% if statuses.has_previous %}‹{% endif %} + {{ statuses.number }}/{{ statuses.paginator.num_pages }} + {% if statuses.has_next %}›{% endif %} +
+
+ {% endif %} +
+ + +
+
+

Members

+
+
+
+ + +
+ {% if members_search %}Clear{% endif %} +
+
+ +
+
+ {% for col in all_members_columns %} + + {% endfor %} +
+
+
+
+
+
+ + + + {% if "name" in members_columns %}{% endif %} + {% if "email" in members_columns %}{% endif %} + {% if "joined" in members_columns %}{% endif %} + + + + {% for pm in members %} + + {% if "name" in members_columns %} + + {% endif %} + {% if "email" in members_columns %}{% endif %} + {% if "joined" in members_columns %}{% endif %} + + {% empty %} + + {% endfor %} + +
NameEmailJoined
+
+
{{ pm.user.get_full_name|default:pm.user.username|first|upper }}
+
+

{{ pm.user.get_full_name|default:pm.user.username }}

+

@{{ pm.user.username }}

+
+
+
{{ pm.user.email }}{{ pm.joined_at|date:"d/m/Y"|default:"-" }}
No members found.
+
+ {% if members_paginator.paginator.num_pages > 1 %} +
+ {{ members.start_index }}–{{ members.end_index }} of {{ members.paginator.count }} +
+ {% if members.has_previous %}‹{% endif %} + {{ members.number }}/{{ members.paginator.num_pages }} + {% if members.has_next %}›{% endif %} +
+
+ {% endif %} +
+ + +
{% csrf_token %}
+
+
+ selected + + +
+
+

Epics

+
+
+
+ + +
+ {% if epics_search %}Clear{% endif %} +
+
+ +
+
+ {% for col in all_epics_columns %} + + {% endfor %} +
+
+
+
+
+
+ + + + + {% if "name" in epics_columns %}{% endif %} + {% if "sort_order" in epics_columns %}{% endif %} + {% if "start_date" in epics_columns %}{% endif %} + {% if "end_date" in epics_columns %}{% endif %} + {% if "tickets" in epics_columns %}{% endif %} + + + + {% for e in epics %} + + + {% if "name" in epics_columns %}{% endif %} + {% if "sort_order" in epics_columns %}{% endif %} + {% if "start_date" in epics_columns %}{% endif %} + {% if "end_date" in epics_columns %}{% endif %} + {% if "tickets" in epics_columns %}{% endif %} + + {% empty %} + + {% endfor %} + +
NameOrderStartEndTickets
{{ e.name }}{{ e.sort_order }}{{ e.start_date|date:"d/m/Y"|default:"-" }}{{ e.end_date|date:"d/m/Y"|default:"-" }}{{ e.ticket_count }}
No epics found.
+
+ {% if epics_paginator.paginator.num_pages > 1 %} +
+ {{ epics.start_index }}–{{ epics.end_index }} of {{ epics.paginator.count }} +
+ {% if epics.has_previous %}‹{% endif %} + {{ epics.number }}/{{ epics.paginator.num_pages }} + {% if epics.has_next %}›{% endif %} +
+
+ {% endif %} +
+ + +
{% csrf_token %}
+
+
+ selected + + +
+
+

Tickets

+
+
+
+ + +
+ {% if tickets_search or tickets_status or tickets_priority %}Clear{% endif %} +
+ + +
+ +
+
+ {% for col in all_ticket_columns %} + + {% endfor %} +
+
+
+
+
+
+ + + + + {% if "uuid" in tickets_columns %}{% endif %} + {% if "name" in tickets_columns %}{% endif %} + {% if "status" in tickets_columns %}{% endif %} + {% if "priority" in tickets_columns %}{% endif %} + {% if "assignees" in tickets_columns %}{% endif %} + {% if "start_date" in tickets_columns %}{% endif %} + {% if "due_date" in tickets_columns %}{% endif %} + {% if "created_at" in tickets_columns %}{% endif %} + + + + {% for t in tickets %} + + + {% if "uuid" in tickets_columns %}{% endif %} + {% if "name" in tickets_columns %}{% endif %} + {% if "status" in tickets_columns %}{% endif %} + {% if "priority" in tickets_columns %}{% endif %} + {% if "assignees" in tickets_columns %}{% endif %} + {% if "start_date" in tickets_columns %}{% endif %} + {% if "due_date" in tickets_columns %}{% endif %} + {% if "created_at" in tickets_columns %}{% endif %} + + {% empty %} + + {% endfor %} + +
IDNameStatusPriorityAssigneesStartDueCreated
{{ t.uuid }}{{ t.name }}{{ t.status.name }}{% if t.priority %}{{ t.priority.name }}{% else %}-{% endif %}{% if t.assignees.all %}
{% for a in t.assignees.all|slice:":3" %}
{{ a.get_full_name|default:a.username|first|upper }}
{% endfor %}
{% else %}-{% endif %}
{{ t.start_date|date:"d/m/Y"|default:"-" }}{{ t.due_date|date:"d/m/Y"|default:"-" }}{{ t.created_at|date:"d/m/Y" }}
No tickets found.
+
+ {% if tickets_paginator.paginator.num_pages > 1 %} +
+ {{ tickets.start_index }}–{{ tickets.end_index }} of {{ tickets.paginator.count }} +
+ {% if tickets.has_previous %}‹{% endif %} + {{ tickets.number }}/{{ tickets.paginator.num_pages }} + {% if tickets.has_next %}›{% endif %} +
+
+ {% endif %} +
+ + +
{% csrf_token %}
+
+
+ selected + + +
+
+

Project Notes

+
+
+
+ + +
+ {% if notes_search %}Clear{% endif %} +
+
+ +
+
+ {% for col in all_notes_columns %} + + {% endfor %} +
+
+
+
+
+
+ + + + + {% if "title" in notes_columns %}{% endif %} + {% if "date" in notes_columns %}{% endif %} + {% if "content" in notes_columns %}{% endif %} + {% if "created_by" in notes_columns %}{% endif %} + + + + + {% for n in notes %} + + + {% if "title" in notes_columns %}{% endif %} + {% if "date" in notes_columns %}{% endif %} + {% if "content" in notes_columns %}{% endif %} + {% if "created_by" in notes_columns %}{% endif %} + + + {% empty %} + + {% endfor %} + +
TitleDateContentCreated ByActions
{{ n.title }}{{ n.note_date|date:"d/m/Y" }}{{ n.content|striptags|truncatewords:20|default:"-" }}{{ n.created_by.get_full_name|default:n.created_by.username }} + View +
No notes found.
+
+ {% if notes_paginator.paginator.num_pages > 1 %} +
+ {{ notes.start_index }}–{{ notes.end_index }} of {{ notes.paginator.count }} +
+ {% if notes.has_previous %}‹{% endif %} + {{ notes.number }}/{{ notes.paginator.num_pages }} + {% if notes.has_next %}›{% endif %} +
+
+ {% endif %} +
+ +
+ + {% include "components/external_dashboard_modal.html" with show_state="$store.projectDetail.externalModalOpen" %} + +{% endblock %} + +{% block extra_scripts %} + +{% endblock %} diff --git a/templates/projects/form.html b/templates/projects/form.html new file mode 100644 index 0000000..b48828e --- /dev/null +++ b/templates/projects/form.html @@ -0,0 +1,1060 @@ +{% extends "base.html" %} +{% block title %}{% if project %}Edit {{ project.name }}{% else %}Create Project{% endif %}{% endblock %} +{% block extra_head %} +{% include "components/rich_text_editor_assets.html" %} +{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+

{% if project %}Edit Project{% else %}Create Project{% endif %}

+
+ {% if project %} + +
+ {% csrf_token %} + +
+ {% endif %} +
+
+ +
+ {% csrf_token %} + +
+ +
+
+ + +
+ +
+ + {% include "components/rich_text_editor.html" with input_name="description" initial_value=project.description %} +
+
+ + +
+
+ + +
+ +
+ +
+ + +
+

Choose a color for the project card and badge

+
+ +
+ + +
+ +
+ + +
+ + {% if not project %} +
+ + +
+ {% else %} +
+ {% endif %} + +
+ + +
+
+
+ +
+ + {% if not project %} + + {% endif %} + Cancel +
+
+
+ +{% if project %} + +
+ {% include "components/project_tabs.html" with active_tab_var="activeTab" %} + + {% if statuses %} +
+
+

Ticket Statuses

+ +
+
+ {% csrf_token %} + + +
+
+ + selected + + + +
+
+ + + + + + + + + + + + + {% for s in statuses %} + + + + + + + + + {% empty %} + + {% endfor %} + +
+ + Status NameColorOrderCompleted StatusActions
+ + {{ s.name }}{{ s.color }}{{ s.sort_order }}{% if s.is_completed %}Yes{% else %}No{% endif %} + +
+ {% csrf_token %} + + +
+
No statuses found.
+
+
+ +
+
+

Members

+
+
+
+ + +
+ {% if members_search %}Clear{% endif %} +
+ +
+
+
+ {% csrf_token %} + + +
+
+ + selected + + + +
+
+ + + + + + + + + + + + {% for pm in members %} + + + + + + + + {% empty %} + + {% endfor %} + +
+ + NameEmailJoinedActions
+ + +
+
{{ pm.user.get_full_name|default:pm.user.username|first|upper }}
+
+

{{ pm.user.get_full_name|default:pm.user.username }}

+

@{{ pm.user.username }}

+
+
+
{{ pm.user.email|default:"-" }}{{ pm.created_at|date:"d/m/Y" }} +
+ {% csrf_token %} + +
+
No members found.
+
+
+ + {% if epics %} +
+
+

Epics

+
+
+
+ + +
+ + {% if epics_search %}Clear{% endif %} +
+ +
+
+
+ {% csrf_token %} + +
+
+ + selected + + + +
+
+ + + + + + + + + + + + + + {% for e in epics %} + + + + + + + + + + {% empty %} + + {% endfor %} + +
+ + NameSort OrderStart DateEnd DateTicketsActions
+ + {{ e.name }}{{ e.sort_order }}{{ e.start_date|date:"d/m/Y"|default:"-" }}{{ e.end_date|date:"d/m/Y"|default:"-" }}{{ e.ticket_count }} +
+ +
{% csrf_token %}
+
+
No epics found.
+
+ {% if epics_paginator.paginator.num_pages > 1 %} +
+

Showing {{ epics.start_index }}–{{ epics.end_index }} of {{ epics.paginator.count }}

+
+
+ {% if epics_search %}{% endif %} + +
+
+ {% if epics.has_previous %} + « + ‹ + {% endif %} + Page {{ epics.number }}/{{ epics.paginator.num_pages }} + {% if epics.has_next %} + › + » + {% endif %} +
+
+
+ {% endif %} +
+ {% endif %} + + {% if full_tickets %} +
+
+

Tickets

+
+
+
+ + +
+ {% if tickets_search or tickets_status or tickets_priority %}Clear{% endif %} +
+
+ + +
+
+ + +
+
+ +
+
+ {% for col in all_ticket_columns %} + + {% endfor %} +
+
+
+ Import from Excel + +
+
+
+ {% csrf_token %} + +
+
+ + selected + + + +
+
+ + + + + {% if "uuid" in tickets_columns %}{% endif %} + {% if "name" in tickets_columns %}{% endif %} + {% if "status" in tickets_columns %}{% endif %} + {% if "priority" in tickets_columns %}{% endif %} + {% if "assignees" in tickets_columns %}{% endif %} + {% if "start_date" in tickets_columns %}{% endif %} + {% if "due_date" in tickets_columns %}{% endif %} + {% if "created_at" in tickets_columns %}{% endif %} + + + + + {% for t in tickets %} + + + {% if "uuid" in tickets_columns %}{% endif %} + {% if "name" in tickets_columns %}{% endif %} + {% if "status" in tickets_columns %}{% endif %} + {% if "priority" in tickets_columns %}{% endif %} + {% if "assignees" in tickets_columns %}{% endif %} + {% if "start_date" in tickets_columns %}{% endif %} + {% if "due_date" in tickets_columns %}{% endif %} + {% if "created_at" in tickets_columns %}{% endif %} + + + {% empty %} + + {% endfor %} + +
+ + UUIDNameStatusPriorityAssigneesStart DateDue DateCreatedActions
+ + {{ t.uuid }}{{ t.name }}{{ t.status.name }}{% if t.priority %}{{ t.priority.name }}{% else %}-{% endif %}{% if t.assignees.all %}
{% for a in t.assignees.all|slice:":3" %}
{{ a.get_full_name|default:a.username|first|upper }}
{% endfor %}{% if t.assignees.all|length > 3 %}
+{{ t.assignees.all|length|add:"-3" }}
{% endif %}
{% else %}-{% endif %}
{{ t.start_date|date:"d/m/Y"|default:"-" }}{{ t.due_date|date:"d/m/Y"|default:"-" }}{{ t.created_at|date:"d/m/Y" }}
{% csrf_token %}
No tickets found.
+
+ {% if tickets_paginator.paginator.num_pages > 1 %} +
+

Showing {{ tickets.start_index }}–{{ tickets.end_index }} of {{ tickets.paginator.count }}

+
+
+ {% if tickets_search %}{% endif %} + {% if tickets_status %}{% endif %} + {% if tickets_priority %}{% endif %} + +
+
+ {% if tickets.has_previous %} + « + ‹ + {% endif %} + Page {{ tickets.number }}/{{ tickets.paginator.num_pages }} + {% if tickets.has_next %} + › + » + {% endif %} +
+
+
+ {% endif %} +
+ {% endif %} + +
+
+

Project Notes

+
+
+
+ + +
+ + {% if notes_search %}Clear{% endif %} +
+ +
+
+
+ {% csrf_token %} + +
+
+ + selected + + + +
+
+ + + + + + + + + + + + + {% for n in notes %} + + + + + + + + + {% empty %} + + {% endfor %} + +
+ + TitleDateContentCreated ByActions
+ + {{ n.title }}{{ n.note_date|date:"d/m/Y" }}{{ n.content|striptags|truncatewords:20|default:"-" }}{{ n.created_by.get_full_name|default:n.created_by.username }} + +
+ {% csrf_token %} + + +
+
No notes found.
+
+ {% if notes_paginator.paginator.num_pages > 1 %} +
+

Showing {{ notes.start_index }}–{{ notes.end_index }} of {{ notes.paginator.count }}

+
+
+ {% if notes_search %}{% endif %} + +
+
+ {% if notes.has_previous %} + « + ‹ + {% endif %} + Page {{ notes.number }}/{{ notes.paginator.num_pages }} + {% if notes.has_next %} + › + » + {% endif %} +
+
+
+ {% endif %} +
+ +
+{% endif %} + +{% if project %} +{% include "components/external_dashboard_modal.html" with show_state="externalModalOpen" %} + + +{% endif %} +{% if project %} + +
+
+
+
+

Create Status

+ +
+
+ {% csrf_token %} + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+ + +
+
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+

Attach User

+ +
+ + +
+ {% csrf_token %} + + +
+
+ + + + + +
+
+
+ + +
+
+
    + +
  • No users found
  • +
+
+ + + +
+
+ + +
+ + + +
+
+ +
+
+ + +
+
+
+ + +
+

Create

+ +
+ + +
+ {% csrf_token %} + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+
+ +
+
+ + +
+
+
+
+

Edit Status

+ +
+
+ {% csrf_token %} +
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+
+
+ + +
+
+
+
+

Create Note

+ +
+
+ {% csrf_token %} + + +
+
+ + +
+
+ + {% include "components/rich_text_editor.html" with input_name="content" initial_value="" %} +
+
+
+ + +
+
+
+
+ + +
+
+
+
+

Edit Note

+ +
+
+ {% csrf_token %} + +
+
+
+ + +
+
+ + {% include "components/rich_text_editor.html" with input_name="content" alpine_model="editNoteData.content" %} +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+

Create Epic

+ +
+
+ {% csrf_token %} +
+
+
+ + +
+
+ + + Lower numbers appear first +
+
+
+
+ + +
+
+ + +
+
+
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="createEpicData.description" %} +
+
+
+ + +
+
+
+
+ + + {% include "components/edit_epic_modal.html" %} + + + {% include "components/create_ticket_modal.html" %} + + +
+
+
+
+

Edit Ticket

+ +
+
+ {% csrf_token %} +
+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="editTicketData.description" %} +
+
+
+ + +
+
+
+
+
+{% endif %} +{% endif %} +{% endblock %} +{% block extra_scripts %} +{% endblock %} diff --git a/templates/projects/list.html b/templates/projects/list.html new file mode 100644 index 0000000..f011a14 --- /dev/null +++ b/templates/projects/list.html @@ -0,0 +1,252 @@ +{% extends "base.html" %} +{% block title %}Projects{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+

Projects

+

{{ page_obj.paginator.count }} total projects

+
+
+ {% if request.user.role != "member" %} + New Project + {% endif %} +
+ {% for c in columns %}{% endfor %} + {% if per_page != 10 %}{% endif %} + + + {% if search %} + Clear + {% endif %} +
+
+
+ +
+ {% csrf_token %} + +
+
+ + selected + + + +
+ +
+
+
+ Reset +
+
+
+ +
+
+ + {% if per_page != 10 %}{% endif %} + {% for c in all_columns %} + + {% endfor %} +
+
+
+ +
+
+ +
+ + + + + {% if "color" in columns %}{% endif %} + {% if "name" in columns %}{% endif %} + {% if "ticket_prefix" in columns %}{% endif %} + {% if "progress" in columns %}{% endif %} + {% if "start_date" in columns %}{% endif %} + {% if "end_date" in columns %}{% endif %} + {% if "remaining_days" in columns %}{% endif %} + {% if "pinned" in columns %}{% endif %} + {% if "members" in columns %}{% endif %} + {% if "tickets" in columns %}{% endif %} + {% if "created_at" in columns %}{% endif %} + {% if "updated_at" in columns %}{% endif %} + + + + + {% for p in projects %} + + + {% if "color" in columns %} + + {% endif %} + {% if "name" in columns %} + + {% endif %} + {% if "ticket_prefix" in columns %} + + {% endif %} + {% if "progress" in columns %} + + {% endif %} + {% if "start_date" in columns %} + + {% endif %} + {% if "end_date" in columns %} + + {% endif %} + {% if "remaining_days" in columns %} + + {% endif %} + {% if "pinned" in columns %} + + {% endif %} + {% if "members" in columns %} + + {% endif %} + {% if "tickets" in columns %} + + {% endif %} + {% if "created_at" in columns %} + + {% endif %} + {% if "updated_at" in columns %} + + {% endif %} + + + {% empty %} + + + + {% endfor %} + +
+ + + + Name {% if sort == 'name' %}{% endif %} + + PrefixProgress + + Start Date {% if sort == 'start_date' %}{% endif %} + + End DateRemaining DaysPinned + + Members {% if sort == 'members' %}{% endif %} + + + + Tickets {% if sort == 'tickets' %}{% endif %} + + CreatedUpdatedActions
+ + +
+
+ {{ p.name }} + + {{ p.ticket_prefix }} + + {% with prog=p.progress_percentage %} + + {{ prog }}% + + {% endwith %} + {{ p.start_date|date:"d/m/Y"|default:"—" }}{{ p.end_date|date:"d/m/Y"|default:"—" }} + {% if p.remaining_days is None %} + — + {% else %} + {% with days=p.remaining_days %} + + {{ days }} days + + {% endwith %} + {% endif %} + +
+ {% csrf_token %} + +
+
{{ p.member_count }}{{ p.ticket_count }}{{ p.created_at|date:"d/m/Y H:i" }}{{ p.updated_at|date:"d/m/Y H:i" }} +
+ View + Edit +
+
+ +

No projects yet

+ {% if request.user.role != "member" %} + Create your first project + {% endif %} +
+
+ + {% if page_obj.has_other_pages %} +
+

+ Showing {{ page_obj.start_index }}–{{ page_obj.end_index }} of {{ page_obj.paginator.count }} +

+
+ {% if page_obj.has_previous %} + Previous + {% endif %} + {% for n in page_obj.paginator.page_range %} + {% if n == page_obj.number %} + {{ n }} + {% elif n >= page_obj.number|add:"-2" and n <= page_obj.number|add:"2" %} + {{ n }} + {% endif %} + {% endfor %} + {% if page_obj.has_next %} + Next + {% endif %} +
+
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/projects/partials/board_columns.html b/templates/projects/partials/board_columns.html new file mode 100644 index 0000000..7055203 --- /dev/null +++ b/templates/projects/partials/board_columns.html @@ -0,0 +1,93 @@ +
+
+
+

{{ project.name }}

+ {{ project.ticket_prefix }} +
+
+ + New Ticket +
+
+ +
+ {% for col in columns %} +
+
+
+
+ {{ col.status.name }} + {% if col.status.is_completed %}{% endif %} + {{ col.count }} + +
+
+
+ {% for ticket in col.tickets %} +
+
+ {{ ticket.uuid }} + {% if ticket.priority %} + {{ ticket.priority.name }} + {% endif %} +
+

{{ ticket.name }}

+ {% if ticket.description %} +

{{ ticket.description|striptags|truncatechars:100 }}

+ {% endif %} +
+
+ {% for assignee in ticket.assignees.all|slice:":3" %} +
+ {{ assignee.get_full_name|default:assignee.username|make_list|first|upper }} +
+ {% endfor %} + {% if ticket.assignees.count > 3 %} +
+{{ ticket.assignees.count|add:"-3" }}
+ {% endif %} +
+ {% if ticket.due_date %} + + {{ ticket.due_date|date:"M d" }} + + {% endif %} +
+
+ {% empty %} +
+

No tickets

+
+ {% endfor %} +
+
+ {% endfor %} +
+
diff --git a/templates/projects/timeline.html b/templates/projects/timeline.html new file mode 100644 index 0000000..c69059e --- /dev/null +++ b/templates/projects/timeline.html @@ -0,0 +1,77 @@ +{% extends "base.html" %} +{% block title %}Project Timeline{% endblock %} +{% block breadcrumb %} + +{% endblock %} + +{% block content %} +
+ +
+
+

Project Timeline

+

Gantt chart view of project schedules

+
+
+ + +
+
+
+

Timeline View

+
+ + Read Only Mode +
+
+
+
+ {% if has_data %} + {% include "components/gantt_chart.html" with gantt_data=gantt_data_json name_column_label="Project Name" is_project_timeline=True gantt_height=calculated_height %} + {% else %} +
+ + + +

No project data available

+

Add start and end dates to projects to view timeline

+
+ {% endif %} +
+
+ + +
+
+

Status Legend

+
+
+
+
+
+ In Progress +
+
+
+ Nearly Complete +
+
+
+ Approaching Deadline +
+
+
+ Overdue +
+
+
+
+ +
+{% endblock %} \ No newline at end of file diff --git a/templates/settings/ui.html b/templates/settings/ui.html new file mode 100644 index 0000000..e8be8d4 --- /dev/null +++ b/templates/settings/ui.html @@ -0,0 +1,91 @@ +{% extends "base.html" %} +{% block title %}UI Settings{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+

UI Settings

+

Customize your interface preferences

+
+ + +
+
+ {% csrf_token %} + +
+
+ +
+

Navigation Layout

+

Choose your preferred navigation style

+
+
+
+ + +
+
+ +
+
+ +
+

Color Theme

+

Personalize your interface colors

+
+
+
+
+ {% for name, hex, label in color_palette %} + + {% endfor %} +
+ +
+
+
— Primary accent color
+
+
+
+ +
+ +
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/tickets/detail.html b/templates/tickets/detail.html new file mode 100644 index 0000000..8caae68 --- /dev/null +++ b/templates/tickets/detail.html @@ -0,0 +1,284 @@ +{% extends "base.html" %} +{% block title %}{{ ticket.uuid }} - {{ ticket.name }}{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block extra_head %} +{% include "components/rich_text_editor_assets.html" %} +{% endblock %} +{% block content %} +
+ + Back to Tickets + +
+ {{ ticket.uuid }} +
+ + Edit + +
+ {% csrf_token %} + +
+
+
+

+ + +

+
+ {{ ticket.status.name }} + {% if ticket.priority %} + {{ ticket.priority.name }} + {% endif %} + {{ ticket.project.name }} +
+
+ +
+
+
+ +

Ticket Information

+
+
+
+ Ticket ID +
+ {{ ticket.uuid }} + +
+
+
+ Ticket Name +

{{ ticket.name }}

+
+
+ Project +

{{ ticket.project.name }}

+
+
+ Start Date +
+ + +
+
+
+ Due Date +
+ + +
+
+
+
+ +
+
+ +

Status & Assignment

+
+
+
+ Status +
+ {{ ticket.status.name }} +
+
+
+ Assigned To +
+ {% for a in ticket.assignees.all %} + + {{ a.get_full_name|default:a.username|make_list|first|upper }} + {{ a.get_full_name|default:a.username }} + + {% empty %} + Unassigned + {% endfor %} +
+
+
+ Created By +

{{ ticket.created_by.get_full_name|default:ticket.created_by.username|default:"—" }}

+
+
+ Due Date +

+ {% if ticket.due_date %}{{ ticket.due_date|date:"d M Y" }}{% else %}—{% endif %} +

+
+
+
+
+ +
+
+ +

Description

+
+
+
+
+
+ {% if ticket.description %} +
{{ ticket.description|safe }}
+ {% else %} +

No description provided.

+ {% endif %} +
+
+ +
+
+ {% csrf_token %} + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="descContent" %} +
+ + +
+
+
+
+
+
+ +
+
+
+ +

Comments

+

({{ ticket.comments.count }})

+
+ +
+
+
+
+ {% include "tickets/partials/comments.html" with comments=ticket.comments.all %} +
+
+
+ {% csrf_token %} + {% include "components/rich_text_editor.html" with input_name="comment" alpine_model="commentContent" %} +
+ +
+
+
+
+
+
+ +
+
+
+
+ +

Metadata

+
+ +
+
+
+
+ Created At +

{{ ticket.created_at|date:"d M Y H:i" }}

+
+
+ Updated At +

{{ ticket.updated_at|date:"d M Y H:i" }}

+
+
+ Epic +

{% if ticket.epic %}{{ ticket.epic.name }}{% else %}No Epic{% endif %}

+
+
+
+
+ +
+
+
+ +

Status History

+
+ +
+
+
+
+
+ {% for h in ticket.histories.all %} +
+
+
+
+ Status changed to {{ h.status.name }} +
+
+ Updated by: {{ h.user.get_full_name|default:h.user.username }} + • + {{ h.created_at|date:"d M H:i" }} +
+
+
+ {% empty %} +
+ +

No history yet

+
+ {% endfor %} +
+
+
+
+
+{% endblock %} +{% block extra_scripts %} + + +{% endblock %} \ No newline at end of file diff --git a/templates/tickets/form.html b/templates/tickets/form.html new file mode 100644 index 0000000..80a4435 --- /dev/null +++ b/templates/tickets/form.html @@ -0,0 +1,246 @@ +{% extends "base.html" %} +{% block title %}{% if ticket %}Edit {{ ticket.uuid }}{% else %}Create Ticket{% endif %}{% endblock %} +{% block extra_head %} + +{% include "components/rich_text_editor_assets.html" %} + +{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+ + {% if ticket %} +
{{ ticket.uuid }}
+ {% endif %} +

{% if ticket %}Edit Ticket{% else %}Create Ticket{% endif %}

+

{% if ticket %}Update ticket details and assignment.{% else %}Create a new ticket within a project.{% endif %}

+
+ {% if ticket %} +
+ + + View + + +
+ {% csrf_token %} + +
+
+ {% endif %} +
+ +
+ {% csrf_token %} + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ + +
+ + {% include "components/rich_text_editor.html" with input_name="description" alpine_model="description" %} +
+ + +
+
+ + +

Select multiple users to assign this ticket to.

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + Cancel + + +
+
+ +
+ + +{% endblock %} +{% block extra_scripts %} + + +{% endblock %} diff --git a/templates/tickets/import.html b/templates/tickets/import.html new file mode 100644 index 0000000..3f64001 --- /dev/null +++ b/templates/tickets/import.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} +{% block title %}Import Tickets{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+ + Back to Tickets + +

Import Tickets

+

Upload an Excel file to create tickets in bulk.

+
+ +
+

Upload File

Select an Excel file to import tickets

+
+
+ {% csrf_token %} +
+ + +
+ +
+
+
+ +
+

Required Columns

Expected Excel file format

+
+

The Excel file must have a header row with the following columns:

+ +
+
+ +{% if result %} +
+

Import Results

{{ result.created }} ticket(s) created

+
+
{{ result.created }} ticket(s) created successfully.
+ {% if result.errors %} +
+

Errors ({{ result.errors|length }})

+
    + {% for err in result.errors %} +
  • {{ err }}
  • + {% endfor %} +
+
+ {% endif %} + +
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/tickets/list.html b/templates/tickets/list.html new file mode 100644 index 0000000..30d0dc7 --- /dev/null +++ b/templates/tickets/list.html @@ -0,0 +1,414 @@ +{% extends "base.html" %} +{% block title %}Tickets{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+

Tickets

+

{{ page_obj.paginator.count }} total tickets

+
+ +
+ +
+ {% csrf_token %} + +
+
+ + selected + + + +
+ +
+
+
+ Reset + +
+
+
+ {% for c in columns %}{% endfor %} + {% if selected_project %}{% endif %} + {% if selected_status %}{% endif %} + {% if selected_priority %}{% endif %} + {% if due_from %}{% endif %} + {% if due_to %}{% endif %} + {% if per_page != 10 %}{% endif %} + + + {% if search %} + + {% endif %} +
+
+ +
+
+ + {% if per_page != 10 %}{% endif %} + {% if selected_project %}{% endif %} + {% if selected_status %}{% endif %} + {% if selected_epic %}{% endif %} + {% if selected_priority %}{% endif %} + {% if selected_created_by %}{% endif %} + {% if due_from %}{% endif %} + {% if due_to %}{% endif %} + {% for aid in selected_assignees %}{% endfor %} + {% for c in all_columns %} + + {% endfor %} +
+
+
+ +
+
+ + {% if openFilters or selected_project or selected_status or selected_epic or selected_priority or selected_assignees or selected_created_by or due_from or due_to %} +
+
+ {% for c in columns %}{% endfor %} + {% if per_page != 10 %}{% endif %} + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ {% else %} +
+
+ {% for c in columns %}{% endfor %} + {% if per_page != 10 %}{% endif %} + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ {% endif %} + +
+ + + + + {% if "uuid" in columns %}{% endif %} + {% if "project" in columns %}{% endif %} + {% if "name" in columns %}{% endif %} + {% if "status" in columns %}{% endif %} + {% if "priority" in columns %}{% endif %} + {% if "assignees" in columns %}{% endif %} + {% if "creator" in columns %}{% endif %} + {% if "start_date" in columns %}{% endif %} + {% if "due_date" in columns %}{% endif %} + {% if "epic" in columns %}{% endif %} + {% if "created_at" in columns %}{% endif %} + + + + + {% for t in tickets %} + + + {% if "uuid" in columns %} + + {% endif %} + {% if "project" in columns %} + + {% endif %} + {% if "name" in columns %} + + {% endif %} + {% if "status" in columns %} + + {% endif %} + {% if "priority" in columns %} + + {% endif %} + {% if "assignees" in columns %} + + {% endif %} + {% if "creator" in columns %} + + {% endif %} + {% if "start_date" in columns %} + + {% endif %} + {% if "due_date" in columns %} + + {% endif %} + {% if "epic" in columns %} + + {% endif %} + {% if "created_at" in columns %} + + {% endif %} + + + {% empty %} + + + + {% endfor %} + +
+ + + + Ticket ID {% if sort == 'uuid' %}{% endif %} + + + + Project {% if sort == 'project' %}{% endif %} + + + + Name {% if sort == 'name' %}{% endif %} + + + + Status {% if sort == 'status' %}{% endif %} + + + + Priority {% if sort == 'priority' %}{% endif %} + + + Assign To + + + Created By {% if sort == 'creator' %}{% endif %} + + + + Start Date {% if sort == 'start_date' %}{% endif %} + + + + Due Date {% if sort == 'due_date' %}{% endif %} + + + + Epic {% if sort == 'epic' %}{% endif %} + + + + Created At {% if sort == 'created_at' %}{% endif %} + + Actions
+ + +
+ {{ t.uuid }} + +
+
+ {{ t.project.ticket_prefix }} + + {{ t.name|truncatechars:30 }} + + + {% if t.status.is_completed %}{% endif %} + {{ t.status.name }} + + + {% if t.priority %} + {{ t.priority.name }} + {% else %} + — + {% endif %} + +
+ {% with assignees=t.assignees.all %} + {% for a in assignees|slice:":2" %} +
+ {{ a.get_full_name|default:a.username|make_list|first|upper }} +
+ {% endfor %} + {% if assignees|length > 2 %} +
+ +{{ assignees|length|add:"-2" }} +
+ {% for a in assignees %} +
{{ a.get_full_name|default:a.username }}
+ {% endfor %} +
+
+ {% endif %} + {% endwith %} +
+
{{ t.created_by.get_full_name|default:t.created_by.username|default:"—" }}{{ t.start_date|date:"d/m/Y"|default:"—" }} + {% if t.due_date %}{{ t.due_date|date:"d/m/Y" }}{% else %}—{% endif %} + {{ t.epic.name|default:"—" }}{{ t.created_at|date:"d/m/Y H:i" }} +
+ View + Edit + +
+
+ +

No tickets found

+ Create your first ticket +
+
+ + {% if page_obj.has_other_pages %} +
+

+ Showing {{ page_obj.start_index }}–{{ page_obj.end_index }} of {{ page_obj.paginator.count }} +

+
+ {% if page_obj.has_previous %} + Previous + {% endif %} + {% for n in page_obj.paginator.page_range %} + {% if n == page_obj.number %} + {{ n }} + {% elif n >= page_obj.number|add:"-2" and n <= page_obj.number|add:"2" %} + {{ n }} + {% endif %} + {% endfor %} + {% if page_obj.has_next %} + Next + {% endif %} +
+
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/tickets/partials/comment_item.html b/templates/tickets/partials/comment_item.html new file mode 100644 index 0000000..b2ca347 --- /dev/null +++ b/templates/tickets/partials/comment_item.html @@ -0,0 +1,71 @@ +
+
+
+
+ {{ comment.user.get_full_name|default:comment.user.username|make_list|first|upper }} +
+
+
+
+
+ {{ comment.user.get_full_name|default:comment.user.username }} +
+
+
+ {{ comment.created_at|timesince }} ago +
+ {% if request.user == comment.user or request.user.is_superuser %} +
+ + + + + Edit + + +
+ {% endif %} +
+
+
+ {{ comment.comment|safe }} +
+ {% if comment.created_at|date:"U" != comment.updated_at|date:"U" %} +
(edited {{ comment.updated_at|timesince }} ago)
+ {% endif %} +
+ +
+
+
+ {% csrf_token %} + + {% include "components/rich_text_editor.html" with input_name="comment" alpine_model="replyContent" %} +
+ + +
+
+
+ {% if comment.replies.all %} +
+ {% for reply in comment.replies.all %} + {% include "tickets/partials/comment_item.html" with comment=reply %} + {% endfor %} +
+ {% endif %} +
+
+
\ No newline at end of file diff --git a/templates/tickets/partials/comments.html b/templates/tickets/partials/comments.html new file mode 100644 index 0000000..c38485d --- /dev/null +++ b/templates/tickets/partials/comments.html @@ -0,0 +1,12 @@ +
+ {% for c in comments %} + {% include "tickets/partials/comment_item.html" with comment=c %} + {% empty %} +
+ + + +

No comments yet. Be the first to comment!

+
+ {% endfor %} +
\ No newline at end of file diff --git a/templates/tickets/priorities.html b/templates/tickets/priorities.html new file mode 100644 index 0000000..15db4f8 --- /dev/null +++ b/templates/tickets/priorities.html @@ -0,0 +1,115 @@ +{% extends "base.html" %} +{% block title %}Ticket Priorities{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block extra_head %} + +{% endblock %} +{% block content %} +
+
+

Ticket Priorities

+

{{ priorities.count }} priorities

+
+
+ +{% if request.user.role != 'member' %} +
+

Add New Priority

Create a new ticket priority level

+
+
+ {% csrf_token %} +
+ + +
+
+ +
+ + +
+
+ +
+
+
+{% endif %} + +
+

Existing Priorities

{{ priorities.count }} priority level{{ priorities.count|pluralize }}

+
+ + + + + + {% if request.user.role != 'member' %} + + {% endif %} + + + + {% for p in priorities %} + + + + {% if request.user.role != 'member' %} + + {% endif %} + + {% empty %} + + {% endfor %} + +
ColorNameActions
+
+
+ {% if request.user.role != 'member' %} +
+ + +
+ {% endif %} +
+
+ + {% if request.user.role != 'member' %} + + {% endif %} + +
+ +
+ {% csrf_token %} + +
+
+
+
+ {% csrf_token %} + + +
+ + +
+
No priorities defined yet
+
+
+{% endblock %} diff --git a/templates/tickets/timeline.html b/templates/tickets/timeline.html new file mode 100644 index 0000000..151c5b1 --- /dev/null +++ b/templates/tickets/timeline.html @@ -0,0 +1,118 @@ +{% extends "base.html" %} +{% block title %}Ticket Timeline{% endblock %} +{% block breadcrumb %} + +{% endblock %} + +{% block content %} + +{% if not selected_project_id %} +
+

Ticket Timeline

+

Gantt chart of tickets within a project

+
+ +
+
+ + +
+ + {% if not projects %} +
+

No Projects Available

+

You don't have access to any projects yet.

+
+ {% else %} +
+ {% for p in projects %} +
+ + {% if p.pinned_date %} +
+
+ +
+
+ {% endif %} + {{ p.ticket_prefix }} +

{{ p.name }}

+
+
+ {% endfor %} +
+ {% endif %} +
+ +{% else %} +
+
+
+ + +
+
+ +
+
+
+

Ticket Timeline

+
+ + Read Only View +
+
+
+
+ {% if tickets_with_dates %} + {% include "components/gantt_chart.html" with gantt_data=gantt_json name_column_label="Task Name" gantt_height=600 %} + {% else %} +
+ +

No tickets with due dates

+

Add due dates to tickets to see the timeline

+
+ {% endif %} +
+
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/users/detail.html b/templates/users/detail.html new file mode 100644 index 0000000..e56117b --- /dev/null +++ b/templates/users/detail.html @@ -0,0 +1,92 @@ +{% extends "base.html" %} +{% block title %}{{ u.get_full_name|default:u.username }}{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+ {% if u.profile_image %} + {{ u.get_full_name|default:u.username }} + {% else %} +
+ {{ u.get_full_name|default:u.username|make_list|first|upper }} +
+ {% endif %} +
+

{{ u.get_full_name|default:u.username }}

+

@{{ u.username }} · {{ u.email }}

+
+
+
+ Edit + Back +
+
+ +
+
+

Role

+

+ + {% for r, label in roles_label.items %}{% if r == role %}{{ label }}{% endif %}{% endfor %} + +

+
+
+

Joined

+

{{ u.date_joined|date:"M d, Y" }}

+
+
+

Status

+

+ {% if u.is_active %} + + Active + + {% else %} + + Inactive + + {% endif %} +

+
+
+ +
+
+
+

Activity Overview

+
+
+
+
+

{{ projects_count }}

+

Projects

+
+
+

{{ assigned_count }}

+

Tickets Assigned

+
+
+

{{ created_count }}

+

Tickets Created

+
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/users/form.html b/templates/users/form.html new file mode 100644 index 0000000..f70999e --- /dev/null +++ b/templates/users/form.html @@ -0,0 +1,398 @@ +{% extends "base.html" %} +{% block title %}{% if editing %}Edit User{% else %}Create User{% endif %}{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+ + +
+

+ {% if editing %}Edit User{% else %}Create User{% endif %} +

+
+ + +
+ {% csrf_token %} + +
+ + +
+
+ + + {% if form.username.errors %}

{{ form.username.errors.0 }}

{% endif %} +
+
+ + + {% if form.email.errors %}

{{ form.email.errors.0 }}

{% endif %} +
+
+ + +
+
+ + +
+
+ + +
+
+ + + {% if not editing %} +
+
+ + + {% if form.password1.errors %}

{{ form.password1.errors.0 }}

{% endif %} +
+
+ + + {% if form.password2.errors %}

{{ form.password2.errors.0 }}

{% endif %} +
+
+ {% endif %} + + +
+ + {% if can_change_role %} + + {% else %} + +
+ Only admins can change roles. +
+ {% endif %} +
+ + +
+ + +
+ + + {% if editing and user_obj.profile_image %} +
+ +
+ Profile + {{ form.profile_image }} +
+
+ {% endif %} + +
+ + +
+ + + Cancel + +
+
+ + + {% if editing %} +
+ + +
+

Projects

+
+ +
+ +
+ +
+ + {% if project_search %} + Clear + {% endif %} +
+ + +
+ + +
+ + +
+ +
+ + + +
+
+ + + +
+
+ + +
+ {% csrf_token %} + + +
+ + +
+ + selected + + + +
+ +
+ + + + + + + + + + + + + + {% for membership in user_memberships %} + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
+ + Project NameDescriptionTicket PrefixTicketsMembersActions
+ + {{ membership.project.name }}{{ membership.project.description|default:"—"|striptags|truncatechars:50 }} + {{ membership.project.ticket_prefix }} + {{ membership.ticket_count }}{{ membership.member_count }} +
+ View +
+ {% csrf_token %} + +
+
+
+ {% if project_search %}No projects match "{{ project_search }}".{% else %}Not assigned to any projects yet.{% endif %} +
+
+ + +
+

+ Showing {{ proj_page_obj.start_index }}–{{ proj_page_obj.end_index }} of {{ proj_page_obj.paginator.count }} result{{ proj_page_obj.paginator.count|pluralize }} +

+ {% if proj_page_obj.has_other_pages %} +
+ {% if proj_page_obj.has_previous %} + Previous + {% endif %} + {% for n in proj_page_obj.paginator.page_range %} + {% if n == proj_page_obj.number %} + {{ n }} + {% elif n >= proj_page_obj.number|add:"-2" and n <= proj_page_obj.number|add:"2" %} + {{ n }} + {% endif %} + {% endfor %} + {% if proj_page_obj.has_next %} + Next + {% endif %} +
+ {% endif %} +
+ + +
+
+
+ +
+

Attach Project

+ +
+ + +
+ {% csrf_token %} + + +
+
+ + + + + +
+
+
+ + +
+
+
    + +
  • No projects found
  • +
+
+
+
+ + +
+ + {% if available_projects.exists %} + + {% endif %} + +
+
+
+
+
+ {% endif %} + +
+{% endblock %} \ No newline at end of file diff --git a/templates/users/list.html b/templates/users/list.html new file mode 100644 index 0000000..09b887d --- /dev/null +++ b/templates/users/list.html @@ -0,0 +1,448 @@ +{% extends "base.html" %} +{% block title %}Users{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
+
+
+

Users

+

{{ page_obj.paginator.count }} active users

+
+
+ +
+ + + {% if search %} + Clear + {% endif %} +
+
+
+ +
+ {% csrf_token %} + +
+
+ + selected + + + +
+ +
+
+
+ + + + + {% if has_projects or has_assigned or has_created or role %} + Clear filters + {% endif %} +
+
+
+ +
+
+ {% for c in all_columns %} + + {% endfor %} + {% for key, val in request.GET.items %}{% if key != 'columns' and key != 'page' %}{% endif %}{% endfor %} +
+
+
+ +
+
+ +
+ + + + + {% if "name" in columns %}{% endif %} + {% if "email" in columns %}{% endif %} + {% if "roles" in columns %}{% endif %} + {% if "projects" in columns %}{% endif %} + {% if "assigned" in columns %}{% endif %} + {% if "created" in columns %}{% endif %} + {% if "joined" in columns %}{% endif %} + + + + + {% for u in users %} + + + {% if "name" in columns %} + + {% endif %} + {% if "email" in columns %} + + {% endif %} + {% if "roles" in columns %} + + {% endif %} + {% if "projects" in columns %} + + {% endif %} + {% if "assigned" in columns %} + + {% endif %} + {% if "created" in columns %} + + {% endif %} + {% if "joined" in columns %} + + {% endif %} + + + {% empty %} + + + + {% endfor %} + +
+ + NameEmailRolesProjectsAssignedCreatedJoinedActions
+ + +
+ {% if u.profile_image %} + {{ u.get_full_name|default:u.username }} + {% else %} +
+ {{ u.get_full_name|default:u.username|make_list|first|upper }} +
+ {% endif %} +
+

{{ u.get_full_name|default:u.username }}

+

@{{ u.username }}

+
+
+
{{ u.email|default:"-" }} + {% if u.role %} + + {{ u.get_role_display|default:u.role|title }} + + {% else %} + - + {% endif %} + {{ u.project_count }}{{ u.assigned_count }}{{ u.ticket_count }}{{ u.date_joined|date:"M d, Y" }} +
+ + +
+
+ +

No users found

+ {% if search %} +

No users match your search criteria.

+ {% endif %} +
+
+ + {% if page_obj.has_other_pages %} +
+

+ Showing {{ page_obj.start_index }}–{{ page_obj.end_index }} of {{ page_obj.paginator.count }} +

+
+ {% if page_obj.has_previous %} + Previous + {% endif %} + {% for n in page_obj.paginator.page_range %} + {% if n == page_obj.number %} + {{ n }} + {% elif n >= page_obj.number|add:"-2" and n <= page_obj.number|add:"2" %} + {{ n }} + {% endif %} + {% endfor %} + {% if page_obj.has_next %} + Next + {% endif %} +
+
+ {% endif %} +
+ + +
+
+
+ + +
+

View user

+ +
+ + +
+ + +
+
+ +
+
+
+ +
+
+
+ + +
+
+ +
+
+
+ +
+
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+ + +
+
+
+ + +
+

Edit User

+ +
+ + +
+ {% csrf_token %} + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+ + +
+ + +
+
+ +
+
+ + +{% endblock %} \ No newline at end of file