87 lines
2.8 KiB
Twig
87 lines
2.8 KiB
Twig
{% extends 'admin/base.html.twig' %}
|
|
|
|
{% block title %}Neue Dokumentversion{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h1 class="h3 mb-0">
|
|
Neue Version
|
|
</h1>
|
|
|
|
<a href="{{ path('admin_document_show', {id: document.id}) }}"
|
|
class="btn btn-sm btn-outline-secondary">
|
|
Zurück zum Dokument
|
|
</a>
|
|
</div>
|
|
|
|
<div class="card bg-black border-secondary mb-4 text-light">
|
|
<div class="card-body">
|
|
|
|
<div class="mb-3">
|
|
<strong>Dokument:</strong>
|
|
<span class="text-light">{{ document.title }}</span>
|
|
</div>
|
|
|
|
<div class="small text-secondary">
|
|
Das Hochladen einer neuen Version erzeugt eine zusätzliche
|
|
unveränderliche Dokumentversion. Die Aktivierung erfolgt separat
|
|
und löst einen deterministischen Re-Ingest aus.
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card bg-black border-secondary text-light">
|
|
<div class="card-body">
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<input type="hidden"
|
|
name="_token"
|
|
value="{{ csrf_token('create_document_version_' ~ document.id) }}">
|
|
|
|
{# ============================= #}
|
|
{# Datei Upload #}
|
|
{# ============================= #}
|
|
|
|
<div class="mb-4">
|
|
<label class="form-label">Datei auswählen</label>
|
|
|
|
<input type="file"
|
|
class="form-control bg-dark text-light border-secondary"
|
|
name="file"
|
|
required>
|
|
|
|
<div class="form-text text-secondary">
|
|
Unterstützte Formate: PDF, DOCX, TXT, MD.<br>
|
|
Die Datei wird versioniert gespeichert und mit einer
|
|
eindeutigen Checksum versehen.
|
|
</div>
|
|
</div>
|
|
|
|
{# ============================= #}
|
|
{# Submit #}
|
|
{# ============================= #}
|
|
|
|
{% if is_granted('ROLE_SUPER_ADMIN') %}
|
|
<div class="d-flex justify-content-end">
|
|
<button class="btn btn-outline-info">
|
|
Version hochladen
|
|
</button>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4 small text-secondary">
|
|
Hinweis: Eine neue Version ersetzt nicht automatisch die aktive Version.
|
|
Erst nach Aktivierung wird ein Re-Ingest durchgeführt und der Index
|
|
neu aufgebaut.
|
|
</div>
|
|
|
|
{% endblock %}
|