70 lines
1.6 KiB
HTML
70 lines
1.6 KiB
HTML
{% 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 %}
|