Prototype implementation
This commit is contained in:
parent
315143a6fc
commit
14b0bc6d01
160 changed files with 5731 additions and 42 deletions
46
vergabe_teilnahme/templates/partials/feedback_modal.html
Normal file
46
vergabe_teilnahme/templates/partials/feedback_modal.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<div x-data="{ open: true }" x-show="open" x-cloak
|
||||
class="fixed inset-0 bg-black/30 z-50 flex items-center justify-center">
|
||||
<div class="bg-white rounded-xl shadow-xl p-6 w-full max-w-md mx-4"
|
||||
@click.outside="open = false">
|
||||
<h2 class="page-title text-xl mb-4">Feedback</h2>
|
||||
<form hx-post="/feedback/" hx-target="#modal-container" hx-swap="innerHTML">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="seite_kontext" value="{{ request.path }}">
|
||||
{% if current_ausschreibung %}
|
||||
<input type="hidden" name="ausschreibung" value="{{ current_ausschreibung.pk }}">
|
||||
{% endif %}
|
||||
<div class="space-y-3">
|
||||
<div>
|
||||
<label class="form-label">Kategorie</label>
|
||||
<select name="kategorie" class="form-input">
|
||||
<option value="hinweis">Hinweis</option>
|
||||
<option value="verbesserung">Verbesserungsvorschlag</option>
|
||||
<option value="fehler">Fehler</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label class="form-label">Titel</label>
|
||||
<input type="text" name="titel" class="form-input" placeholder="Kurzbeschreibung">
|
||||
</div>
|
||||
<div>
|
||||
<label class="form-label">Beschreibung *</label>
|
||||
<textarea name="beschreibung" rows="3" class="form-input" required
|
||||
placeholder="Was ist aufgefallen?"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<label class="form-label">Dringlichkeit</label>
|
||||
<select name="dringlichkeit" class="form-input">
|
||||
<option value="niedrig">Niedrig</option>
|
||||
<option value="mittel" selected>Mittel</option>
|
||||
<option value="hoch">Hoch</option>
|
||||
<option value="kritisch">Kritisch</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-end gap-2 mt-4">
|
||||
<button type="button" @click="open = false" class="btn-secondary">Abbrechen</button>
|
||||
<button type="submit" class="btn-primary">Senden</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue