{% extends "base.html" %}
{% block title %}Parteien – FragDenRat{% endblock %}
{% block content %}
<h2 class="mb-3">Parteien</h2>
<ul class="list-group">
	{% for p in items %}
		<li class="list-group-item d-flex justify-content-between align-items-center">
			<span>
				<a href="{% url 'party_detail' pk=p.id %}" class="text-decoration-none">
					<strong>{{ p.name }}</strong>
				</a>
				{% if p.abbreviation %}<span class="text-muted ms-2">({{ p.abbreviation }})</span>{% endif %}
			</span>
			{% if p.color %}<span class="badge" style="background-color: {{ p.color }};">&nbsp;&nbsp;&nbsp;</span>{% endif %}
		</li>
	{% empty %}
		<li class="list-group-item">Keine Einträge.</li>
	{% endfor %}
</ul>
{% endblock %} 