Improvements to Document Interface and correcting embedding workers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% from 'macros.html' import render_nested_table, render_pagination %}
|
||||
{% from 'macros.html' import render_selectable_table, render_pagination %}
|
||||
|
||||
{% block title %}Documents{% endblock %}
|
||||
|
||||
@@ -9,8 +9,13 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<!-- Documents Table -->
|
||||
{{ render_nested_table(headers=["Name", "Created At", "Valid From", "Languages & Versions"], rows=rows) }}
|
||||
<form method="POST" action="{{ url_for('document_bp.handle_document_selection') }}">
|
||||
{{ render_selectable_table(headers=["Document ID", "Name", "Valid From", "Valid To"], rows=rows, selectable=True, id="documentsTable") }}
|
||||
<div class="form-group mt-3">
|
||||
<button type="submit" name="action" value="edit_document" class="btn btn-primary">Edit Document</button>
|
||||
<button type="submit" name="action" value="document_languages" class="btn btn-secondary">Show Document Languages</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user