Files
shoppy/backoffice/templates/backoffice/generic/list.html
T
2026-07-23 16:19:19 +02:00

19 lines
605 B
HTML

{% extends 'backoffice/base.html' %}
{% block title %}{{ title }}{% endblock %}
{% block main %}
<div class="flex justify-between items-center mb-4">
<h1 class="text-2xl font-semibold">{{ title }}</h1>
{% if create_url %}
{% if create_is_page %}
<a class="btn btn-primary" href="{{ create_url }}">Añadir</a>
{% else %}
<button class="btn btn-primary" hx-get="{{ create_url }}" hx-target="#backoffice-modal-box" hx-swap="innerHTML">Añadir</button>
{% endif %}
{% endif %}
</div>
{% include 'backoffice/generic/_list_fragment.html' %}
{% endblock %}