Files
aza/AzA march 2026/intern_portal/templates/document_new.html
2026-05-23 21:31:34 +02:00

45 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "layout.html" %}
{% set active = 'documents' %}
{% block page_title %}Neues Dokument AzA Intern{% endblock %}
{% block content %}
<div class="page-header">
<h2>Neues Dokument</h2>
<a href="/documents" class="btn btn-secondary">Zurück</a>
</div>
<div class="hint-banner">
Keine Patientendaten, API-Keys oder Passwörter in Dokumenten speichern.
</div>
<div class="card">
<form method="post" action="/documents/new">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="form-group">
<label for="title">Titel *</label>
<input type="text" id="title" name="title" required autofocus placeholder="Dokumenttitel">
</div>
<div class="grid-2">
<div class="form-group">
<label for="category">Kategorie</label>
<select id="category" name="category">
<option value=""></option>
{% for c in categories %}
<option value="{{ c }}">{{ c }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="task_id">Aufgabe (optional)</label>
<select id="task_id" name="task_id">
<option value=""></option>
{% for t in tasks %}
<option value="{{ t.id }}" {% if pre_task_id == t.id %}selected{% endif %}>{{ t.title }}</option>
{% endfor %}
</select>
</div>
</div>
<button type="submit" class="btn btn-primary">Dokument erstellen</button>
</form>
</div>
{% endblock %}