feat(WP-0011): Marktbegleiter-Analyse — Katalog, Passagen, Auswertung
Implementiert UC-MB-01 bis UC-MB-03: Marktbegleiter-Katalog (Liste, Detail, Anlegen/Bearbeiten), Ausschreibungspassagen mit Verlässlichkeitsscore (1–10, Validator), Musterauswertung mit Aggregationen (Ausschreiber-Häufigkeit, Ø-Score, Passagen-Anzahl). 4 Tests grün. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f88e2e7562
commit
bde10f3a69
13 changed files with 737 additions and 12 deletions
35
vergabe_teilnahme/templates/marktbegleiter/passage_form.html
Normal file
35
vergabe_teilnahme/templates/marktbegleiter/passage_form.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{% if neu %}Neue Passage{% else %}Passage bearbeiten{% endif %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="flex items-center justify-between mb-5">
|
||||
<h1 class="page-title">{% if neu %}Neue Passage{% else %}Passage bearbeiten{% endif %}</h1>
|
||||
<a href="{% url 'marktbegleiter:passagen:liste' ausschreibung_id=ausschreibung.pk %}" class="btn-secondary">Abbrechen</a>
|
||||
</div>
|
||||
<p class="text-sm text-slate-500 mb-5">Ausschreibung: <strong>{{ ausschreibung.titel }}</strong></p>
|
||||
|
||||
<div class="card max-w-3xl" x-data="{ score: {{ passage.verlaesslichkeitsscore|default:5 }} }">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
<div class="mb-4">
|
||||
<label class="form-label">{{ field.label }}</label>
|
||||
{% if field.name == 'verlaesslichkeitsscore' %}
|
||||
<div class="flex items-center gap-3">
|
||||
{{ field }}
|
||||
<span class="text-sm font-medium text-brand-600" x-text="score"></span>
|
||||
<span class="text-xs text-slate-400">(1=sehr unsicher, 10=sehr sicher)</span>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ field }}
|
||||
{% endif %}
|
||||
{% if field.errors %}
|
||||
<p class="text-red-500 text-xs mt-1">{{ field.errors|join:", " }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="flex gap-3 mt-6">
|
||||
<button type="submit" class="btn-primary">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue