- Move global config files to globals iso global folder, as the name global conflicts with python language
- Creation of Traicie Vancancy Definition specialist - Allow to invoke non-interaction specialists from withing Evie's mgmt interface (eveai_app) - Improvements to crewai specialized classes - Introduction to json editor for showing specialists arguments and results in a better way - Introduction of more complex pagination (adding extra arguments) by adding a global 'get_pagination_html' - Allow follow-up of ChatSession / Specialist execution - Improvement in logging of Specialists (but needs to be finished)
This commit is contained in:
@@ -357,42 +357,47 @@
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro render_pagination(pagination, endpoint) %}
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination">
|
||||
<!-- Previous Button -->
|
||||
<li class="page-item {{ 'disabled' if not pagination.has_prev }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=pagination.prev_num) if pagination.has_prev else 'javascript:;' }}" tabindex="-1">
|
||||
<span class="material-symbols-outlined">keyboard_double_arrow_left</span>
|
||||
{# <span class="sr-only">Previous</span>#}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Page Number Buttons -->
|
||||
{% for page in pagination.iter_pages(left_edge=1, left_current=2, right_current=3, right_edge=1) %}
|
||||
<li class="page-item {{ 'active' if page == pagination.page }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=page) }}">
|
||||
{% if page == pagination.page %}
|
||||
<span class="material-symbols-outlined">target</span>
|
||||
{# <span class="sr-only">(current)</span>#}
|
||||
{% else %}
|
||||
{{ page }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
<!-- Next Button -->
|
||||
<li class="page-item {{ 'disabled' if not pagination.has_next }}">
|
||||
<a class="page-link" href="{{ url_for(endpoint, page=pagination.next_num) if pagination.has_next else 'javascript:;' }}">
|
||||
<span class="material-symbols-outlined">keyboard_double_arrow_right</span>
|
||||
{#{% macro render_pagination(pagination, endpoint) %}#}
|
||||
{#<nav aria-label="Page navigation">#}
|
||||
{# <ul class="pagination">#}
|
||||
{# <!-- Previous Button -->#}
|
||||
{# <li class="page-item {{ 'disabled' if not pagination.has_prev }}">#}
|
||||
{# <a class="page-link" href="{{ url_for(endpoint, page=pagination.prev_num) if pagination.has_prev else 'javascript:;' }}" tabindex="-1">#}
|
||||
{# <span class="material-symbols-outlined">keyboard_double_arrow_left</span>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{##}
|
||||
{# <!-- Page Number Buttons -->#}
|
||||
{# {% for page in pagination.iter_pages(left_edge=1, left_current=2, right_current=3, right_edge=1) %}#}
|
||||
{# <li class="page-item {{ 'active' if page == pagination.page }}">#}
|
||||
{# <a class="page-link" href="{{ url_for(endpoint, page=page) }}">#}
|
||||
{# {% if page == pagination.page %}#}
|
||||
{# <span class="material-symbols-outlined">target</span>#}
|
||||
{# {% else %}#}
|
||||
{# {{ page }}#}
|
||||
{# {% endif %}#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# {% endfor %}#}
|
||||
{##}
|
||||
{# <!-- Next Button -->#}
|
||||
{# <li class="page-item {{ 'disabled' if not pagination.has_next }}">#}
|
||||
{# <a class="page-link" href="{{ url_for(endpoint, page=pagination.next_num) if pagination.has_next else 'javascript:;' }}">#}
|
||||
{# <span class="material-symbols-outlined">keyboard_double_arrow_right</span>#}
|
||||
{# <span class="sr-only">Next</span>#}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{#</nav>#}
|
||||
{#{% endmacro %}#}
|
||||
|
||||
{% macro render_pagination(pagination, endpoint) %}
|
||||
{# Deze macro is een wrapper rond de globale get_pagination_html functie #}
|
||||
{# Ondersteunt nu expliciet een session_id parameter #}
|
||||
{{ get_pagination_html(pagination, endpoint) }}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro render_filter_field(field_name, label, options, current_value) %}
|
||||
<div class="form-group">
|
||||
<label for="{{ field_name }}">{{ label }}</label>
|
||||
|
||||
Reference in New Issue
Block a user