- Added 'Register ...' functionality to overviews. ==> No more separate menu items...

This commit is contained in:
Josako
2025-03-27 09:13:37 +01:00
parent 4ea16521e2
commit 6c8c33d296
22 changed files with 141 additions and 142 deletions

View File

@@ -21,7 +21,7 @@
{{ render_collapsible_section('Filter', 'Filter Options', filter_form) }}
<div class="form-group mt-3">
<form method="POST" action="{{ url_for('document_bp.handle_document_selection') }}">
<form method="POST" action="{{ url_for('document_bp.handle_document_selection') }}" id="documentsForm">
<!-- Documents Table -->
{{ render_selectable_sortable_table_with_dict_headers(
headers=[
@@ -37,10 +37,12 @@
sort_by=sort_by,
sort_order=sort_order
) }}
<div class="form-group mt-4">
<button type="submit" name="action" value="edit_document" class="btn btn-primary">Edit Document</button>
<button type="submit" name="action" value="document_versions" class="btn btn-secondary">Show Document Versions</button>
<button type="submit" name="action" value="refresh_document" class="btn btn-secondary">Refresh Document (new version)</button>
<div class="form-group mt-3 d-flex justify-content-between">
<div>
<button type="submit" name="action" value="edit_document" class="btn btn-primary" onclick="return validateTableSelection('documentsForm')">Edit Document</button>
<button type="submit" name="action" value="document_versions" class="btn btn-secondary" onclick="return validateTableSelection('documentsForm')">Show Document Versions</button>
<button type="submit" name="action" value="refresh_document" class="btn btn-secondary" onclick="return validateTableSelection('documentsForm')">Refresh Document (new version)</button>
</div>
</div>
</form>
</div>