add activate document versions
This commit is contained in:
@@ -107,6 +107,7 @@
|
||||
<td>
|
||||
{% if version.isActive %}
|
||||
|
||||
{# Optional: manuelles Re-Ingest nur bei PENDING/FAILED #}
|
||||
{% if version.ingestStatus in ['PENDING', 'FAILED'] %}
|
||||
|
||||
<form method="post"
|
||||
@@ -123,7 +124,14 @@
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<span class="text-muted">Nicht aktiv</span>
|
||||
<form method="post"
|
||||
action="{{ path('admin_document_version_activate', {versionId: version.id}) }}"
|
||||
style="display:inline;">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('activate_version') }}">
|
||||
<button class="btn btn-sm btn-outline-light">
|
||||
Aktivieren
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
@@ -135,4 +143,4 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user