vergabe-teilnahme/vergabe_teilnahme/templates/bibliothek/entscheidungsregel_form.html

43 lines
1.9 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block title %}{% if obj %}Bearbeiten{% else %}Neue Entscheidungsregel{% endif %}{% endblock %}
{% block content %}
<div class="max-w-2xl">
<h1 class="page-title mb-6">{% if obj %}{{ obj.regelname }} bearbeiten{% else %}Neue Entscheidungsregel{% endif %}</h1>
<form method="post" class="space-y-4">
{% csrf_token %}
<div class="card space-y-4">
<div><label class="form-label">Regelname *</label>{{ form.regelname }}</div>
<div><label class="form-label">Beschreibung</label>{{ form.beschreibung }}</div>
<div class="grid grid-cols-2 gap-4">
<div><label class="form-label">Kategorie *</label>{{ form.kategorie }}</div>
<div><label class="form-label">Gewichtung</label>{{ form.gewichtung }}</div>
</div>
<div><label class="form-label">Bewertungslogik</label>{{ form.bewertungslogik }}</div>
<div><label class="form-label">Schwellenwert</label>{{ form.schwellenwert }}</div>
</div>
<div class="card space-y-4">
<h2 class="section-title">Empfehlung</h2>
<div class="flex gap-4">{{ form.empfehlung }}</div>
<div><label class="form-label">Begründung</label>{{ form.begruendung }}</div>
</div>
<div class="card space-y-4">
<h2 class="section-title">Gültigkeit</h2>
<div class="grid grid-cols-3 gap-4">
<div><label class="form-label">Gültig von</label>{{ form.gueltig_von }}</div>
<div><label class="form-label">Gültig bis</label>{{ form.gueltig_bis }}</div>
<div><label class="form-label">Verantwortlicher</label>{{ form.verantwortlicher }}</div>
</div>
<label class="flex items-center gap-2 text-sm">{{ form.aktiv }} Aktiv</label>
</div>
<div class="flex gap-3">
<button type="submit" class="btn-primary">Speichern</button>
<a href="{% url 'bibliothek:entscheidungsregeln_liste' %}" class="btn-secondary">Abbrechen</a>
</div>
</form>
</div>
{% endblock %}