{% extends 'template_content/template_content_base.html' %}
{% load i18n %}

{% block subcontent %}
<h4>{{ navigation }}</h4>
<div class="row">
    <div id="navigation-entries" class="col-12">
        {% if navigation_entries %}
            {% include 'template_content/ajax/navigation_entries_tree.html' %}
        {% else %}
            {% trans 'no entries yet' %}
        {% endif %}
    </div>
</div>
<div class="row mt-5">
    <div class="col-12">
        <button type="button" class="xhr btn btn-outline-primary" data-url="{% url 'create_template_content_navigation_entry' app.uid navigation.id %}" ajax-target="ModalContent">{% trans 'add entry' %}</button>
    </div>
</div>
{% endblock %}

{% block extra_script %}
<script>
    {% include 'template_content/snippets/navigation_entry_ordering.html' %}
</script>
{% endblock %}