40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
|
|
<tr id="eintrag-{{ eintrag.pk }}" class="border-b border-slate-100 hover:bg-slate-50 text-sm">
|
||
|
|
<td class="py-2 font-medium text-slate-800 max-w-xs">
|
||
|
|
{{ eintrag.titel|truncatechars:60 }}
|
||
|
|
{% if eintrag.ausschreibung %}
|
||
|
|
<span class="text-xs text-slate-400 block">{{ eintrag.ausschreibung.titel|truncatechars:40 }}</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td class="py-2 text-slate-500 max-w-xs text-xs">{{ eintrag.beschreibung|truncatechars:100 }}</td>
|
||
|
|
<td class="py-2">
|
||
|
|
<span class="inline-block rounded-full px-2 py-0.5 text-xs
|
||
|
|
{% if eintrag.kategorie == 'fehler' %}bg-red-100 text-red-700
|
||
|
|
{% elif eintrag.kategorie == 'verbesserung' %}bg-blue-100 text-blue-700
|
||
|
|
{% else %}bg-slate-100 text-slate-700{% endif %}">
|
||
|
|
{{ eintrag.get_kategorie_display }}
|
||
|
|
</span>
|
||
|
|
</td>
|
||
|
|
<td class="py-2">
|
||
|
|
<span class="inline-block rounded-full px-2 py-0.5 text-xs
|
||
|
|
{% if eintrag.dringlichkeit == 'kritisch' %}bg-red-100 text-red-700
|
||
|
|
{% elif eintrag.dringlichkeit == 'hoch' %}bg-orange-100 text-orange-700
|
||
|
|
{% elif eintrag.dringlichkeit == 'mittel' %}bg-amber-100 text-amber-700
|
||
|
|
{% else %}bg-slate-100 text-slate-600{% endif %}">
|
||
|
|
{{ eintrag.get_dringlichkeit_display }}
|
||
|
|
</span>
|
||
|
|
</td>
|
||
|
|
<td class="py-2">
|
||
|
|
<form hx-post="/feedback/backlog/{{ eintrag.pk }}/status/"
|
||
|
|
hx-target="#eintrag-{{ eintrag.pk }}"
|
||
|
|
hx-swap="outerHTML">
|
||
|
|
{% csrf_token %}
|
||
|
|
<select name="status" onchange="this.form.requestSubmit()" class="text-xs border-slate-200 rounded p-1">
|
||
|
|
{% for val, label in status_choices %}
|
||
|
|
<option value="{{ val }}" {% if val == eintrag.status %}selected{% endif %}>{{ label }}</option>
|
||
|
|
{% endfor %}
|
||
|
|
</select>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
<td class="py-2 text-xs text-slate-500">{{ eintrag.datum|date:"d.m.Y" }}</td>
|
||
|
|
</tr>
|