create subpages

This commit is contained in:
Jonas Heinrich 2025-08-21 09:45:11 +02:00
parent dc0440fcef
commit aac1cdb118
9 changed files with 184 additions and 3 deletions

View file

@ -0,0 +1,36 @@
{% extends "base.html" %}
{% block title %}{{ member }} Stadträt:in{% endblock %}
{% block content %}
<h2 class="mb-1">{{ member.first_name }} {{ member.last_name }}</h2>
<p class="text-muted mb-3">
{% if member.public_body %}in <a href="{% url 'public_body_detail' slug=member.public_body.slug %}">{{ member.public_body.name }}</a>{% endif %}
{% if member.party %} • {{ member.party }} (<a href="{% url 'party_detail' pk=member.party.id %}">Profil</a>){% endif %}
</p>
<h3 class="mt-4">Fragen an {{ member.first_name }}</h3>
<ul class="list-group mb-4">
{% for q in questions %}
<li class="list-group-item">
<strong>{{ q.title }}</strong>
<div class="text-muted">{{ q.created_at|date:'d.m.Y H:i' }}</div>
</li>
{% empty %}
<li class="list-group-item">Keine Fragen.</li>
{% endfor %}
</ul>
<h3 class="mt-4">Abstimmungen (Beteiligung)</h3>
<ul class="list-group">
{% for v in votes %}
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>
<strong>{{ v.title }}</strong>
{% if v.date %}<span class="text-muted ms-2">({{ v.date|date:'d.m.Y' }})</span>{% endif %}
</span>
<span class="text-muted">{{ v.public_body.name }}</span>
</li>
{% empty %}
<li class="list-group-item">Keine Abstimmungen.</li>
{% endfor %}
</ul>
{% endblock %}