27 lines
1.3 KiB
HTML
27 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
{% from 'macros.html' import render_selectable_table, render_pagination %}
|
|
|
|
{% block title %}Documents{% endblock %}
|
|
|
|
{% block content_title %}Catalogs{% endblock %}
|
|
{% block content_description %}View Catalogs for Tenant{% endblock %}
|
|
{% block content_class %}<div class="col-xl-12 col-lg-5 col-md-7 mx-auto"></div>{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<form method="POST" action="{{ url_for('document_bp.handle_catalog_selection') }}" id="catalogsForm">
|
|
{{ render_selectable_table(headers=["Catalog ID", "Name", "Type"], rows=rows, selectable=True, id="catalogsTable") }}
|
|
<div class="form-group mt-3 d-flex justify-content-between">
|
|
<div>
|
|
<button type="submit" name="action" value="set_session_catalog" class="btn btn-primary" onclick="return validateTableSelection('catalogsForm')">Set Session Catalog</button>
|
|
<button type="submit" name="action" value="edit_catalog" class="btn btn-primary" onclick="return validateTableSelection('catalogsForm')">Edit Catalog</button>
|
|
</div>
|
|
<button type="submit" name="action" value="create_catalog" class="btn btn-success">Register Catalog</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content_footer %}
|
|
{{ render_pagination(pagination, 'document_bp.catalogs') }}
|
|
{% endblock %} |