feat: added assigned_tickets page
This commit is contained in:
69
ticketsystem/templates/ticketsystem/assigned_tickets.html
Normal file
69
ticketsystem/templates/ticketsystem/assigned_tickets.html
Normal file
@@ -0,0 +1,69 @@
|
||||
{% extends "ticketsystem/base.html" %}
|
||||
{% block content %}
|
||||
<style>
|
||||
.ticket-list-container {
|
||||
max-width: 700px;
|
||||
margin: 2rem auto;
|
||||
padding: 2rem;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
background-color: #fafafa;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.ticket-list-container h1 {
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.8rem;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.ticket-item {
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.ticket-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.ticket-item a {
|
||||
text-decoration: none;
|
||||
color: #007bff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ticket-item a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ticket-meta {
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
margin-top: 0.3rem;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div class="ticket-list-container">
|
||||
<h1>🧾 Meine zugewiesenen Tickets</h1>
|
||||
<p style="color: #777; font-size: 0.9rem; margin-top: -0.5rem; margin-bottom: 1.5rem;">
|
||||
Hinweis: Bereits geschlossene Tickets werden hier nicht aufgelistet.
|
||||
</p>
|
||||
|
||||
{% for ticket in tickets %}
|
||||
<div class="ticket-item">
|
||||
<a href="{% url 'detail' ticket.pk %}">
|
||||
#{{ ticket.id }} – {{ ticket.title }}
|
||||
</a>
|
||||
<div class="ticket-meta">
|
||||
Status: {{ ticket.get_status_display }} |
|
||||
Priorität: {{ ticket.get_priority_display }} |
|
||||
Angelegt am {{ ticket.created_at|date:"d.m.Y H:i" }}
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<p>Es sind derzeit keine Tickets vorhanden.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -49,6 +49,7 @@
|
||||
<div class="navbar-left">
|
||||
<a href="{% url 'home' %}">🏠 Start</a>
|
||||
<a href="{% url 'ticket-list' %}">📋 Tickets</a>
|
||||
<a href="{% url 'assigned-tickets' %}">🧾 Meine Tickets</a>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
{% if user.is_authenticated %}
|
||||
|
||||
Reference in New Issue
Block a user