{% extends 'base.html' %}
{%  from 'macros.html' import render_selectable_table, render_pagination %}

{% block title %}Chat Sessions Interactions{% endblock %}

{% block content_title %}Chat Sessions{% endblock %}
{% block content_description %}View Chat Sessions 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" id="chatSessionsForm">
        {{ render_selectable_table(headers=["ID", "Question At", "Detailed Question At", "Answer At", "Processing Error"], rows=rows, selectable=False, id="interactionsTable") }}
{#        <div class="form-group mt-3 d-flex justify-content-between">#}
{#            <div>#}
{#                <button type="submit" name="action" value="view_chat_session" class="btn btn-primary" onclick="return validateTableSelection('chatSessionsForm')">View Chat Session</button>#}
{#            </div>#}
{#        </div>#}
    </form>
</div>
{% endblock %}

{% block content_footer %}
    {{ get_pagination_html(pagination, 'interaction_bp.session_interactions_by_session_id', session_id=chat_session.session_id) }}
{% endblock %}
