feat: logout | testes permissoes | redirecionamento com base no gupo do usuario

This commit is contained in:
2025-01-14 16:53:07 -03:00
parent 9b4e1cfca4
commit b06e1d22e3
10 changed files with 28 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load static %}
{% load custom_filter_tag %}
{% block 'title' %}
@@ -41,12 +43,13 @@ Detalhes {{comanda.name}}
{% endif %}
<button class="button" id="imprimirFichas"
{% if comanda.status != 'OPEN'%}
<button class="button" id="imprimirFichas"
style="display: none;"
{% endif %}
onclick="imprimirFichas()">Fichas</button>
{% endif %}
{% if user|groupUser:"Gerente" %}
<button class="button" id="imprimirFichas" hx-get="{% url 'reopenComanda' comanda.id %} " hx-trigger="click" hx-swap="none" onclick="reloadPage()"
{% if comanda.status == 'OPEN'%}
style="display: none;"
@@ -55,6 +58,8 @@ Detalhes {{comanda.name}}
{% endif %}
>Reabrir</button>
{% endif %}
</div>
<div>