feat(aufgaben): Verknüpfungen, implizite Fälligkeit, Issue-Facade (WP-0015)
- Aufgabe.erstellt_am für implizite 7-Tage-Fälligkeit - frist_effektiv property; ist_ueberfaellig nutzt sie - AufgabenVerknuepfung (GenericForeignKey) mit HTMX-Panel - ExternalIssue (OneToOne) mit IssueAdapter-ABC und HTMX-Panel - link_registry.py und issue_facade.py als zentrale Registries - 8 neue Tests, 76 gesamt grün Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a0c0ddf2eb
commit
816c281f6a
19 changed files with 713 additions and 19 deletions
|
|
@ -0,0 +1,34 @@
|
|||
<form hx-post="{% url 'ausschreibungen:aufgaben:verknuepfung_neu' ausschreibung.pk aufgabe.pk %}"
|
||||
hx-target="#verknuepfungen-list"
|
||||
hx-swap="beforeend"
|
||||
hx-on::after-request="if(event.detail.successful) this.reset(); document.getElementById('verknuepfung-form-container').innerHTML = '';"
|
||||
class="space-y-2 border border-slate-200 rounded p-3 mt-2">
|
||||
{% csrf_token %}
|
||||
<div>
|
||||
<label class="form-label">Typ</label>
|
||||
<select name="ziel_typ"
|
||||
class="form-input text-sm"
|
||||
hx-get="{% url 'ausschreibungen:aufgaben:verknuepfung_objekte' ausschreibung.pk aufgabe.pk %}"
|
||||
hx-target="#verknuepfung-obj-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-trigger="change"
|
||||
required>
|
||||
<option value="">— Typ wählen —</option>
|
||||
{% for ct_id, label in form.fields.ziel_typ.choices %}
|
||||
{% if ct_id %}<option value="{{ ct_id }}">{{ label }}</option>{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div id="verknuepfung-obj-container">
|
||||
<p class="text-xs text-slate-400">Bitte zuerst einen Typ wählen.</p>
|
||||
</div>
|
||||
<div>
|
||||
<label class="form-label">Kommentar</label>
|
||||
{{ form.kommentar }}
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<button type="submit" class="btn-primary text-xs">Verknüpfen</button>
|
||||
<button type="button" class="btn-ghost text-xs"
|
||||
onclick="document.getElementById('verknuepfung-form-container').innerHTML = ''">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue