{% extends 'django_spire/item/item.html' %}

{% block item_title %}
    {% url '${url_reverse_path}:page:detail' pk=${context_single_var}.pk as ${context_single_var}_view_url %}
    {% include 'django_spire/element/attribute_element.html' with attribute_title='Name' attribute_value=${context_single_var}.name attribute_href=${context_single_var}_view_url %}
{% endblock %}

{% block item_row_content %}
    <div class="col-6">
        {% include 'django_spire/element/attribute_element.html' with attribute_title='Name' attribute_value=${context_single_var}.name %}
    </div>
    <div class="col-6">
        {% include 'django_spire/element/attribute_element.html' with attribute_title='Description' attribute_value=${context_single_var}.description %}
    </div>
{% endblock %}

{% block item_button %}
    {% url '${url_reverse_path}:page:detail' pk=${context_single_var}.pk as ${context_single_var}_view_url %}

    {% if perms.${permission_prefix}.change_${model_instance_name} %}
        {% url '${url_reverse_path}:form:update' pk=${context_single_var}.pk as ${context_single_var}_edit_url %}
    {% endif %}

    {% if perms.${permission_prefix}.delete_${model_instance_name} %}
        {% url '${url_reverse_path}:form:delete' pk=${context_single_var}.pk as ${context_single_var}_delete_url %}
    {% endif %}

    {% include 'django_spire/dropdown/ellipsis_dropdown.html' with view_url=${context_single_var}_view_url edit_url=${context_single_var}_edit_url delete_url=${context_single_var}_delete_url %}
{% endblock %}
