feat: nav com botao Sair, Minha conta e Funcionarios so para admin
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
09424e8afb
commit
a2a5fc7905
+10
-1
@@ -28,8 +28,17 @@
|
||||
<nav>
|
||||
<a href="/clientes">Clientes</a>
|
||||
<a href="/gerador-chave">Gerador de chave</a>
|
||||
<a href="/funcionarios">Funcionários</a>
|
||||
{% if request.state.usuario and request.state.usuario.eh_admin %}
|
||||
<a href="/funcionarios">Funcionários</a>
|
||||
{% endif %}
|
||||
<a href="/log">Log</a>
|
||||
{% if request.state.usuario %}
|
||||
<a href="/minha-conta">Minha conta</a>
|
||||
<form method="post" action="/logout" style="display:inline;margin:0">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button type="submit" style="margin:0;padding:4px 10px;background:transparent;border:1px solid #3a3a3e;color:#f4f4f5;font-weight:400">Sair</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</nav>
|
||||
<main>
|
||||
{% if mensagem %}<div class="mensagem {{ mensagem_tipo or 'success' }}">{{ mensagem }}</div>{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user