Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
issue #3: Iniciado criação do menu administrativo.
Browse files Browse the repository at this point in the history
Opções:
- Criar backup
- Atualizar temas
  • Loading branch information
carloshenrq committed Apr 18, 2016
1 parent 0c6b26b commit ef5eeff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions templates/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
<li class="ajax-url" data-url="{$smarty.const.BRACP_DIR_INSTALL_URL}" data-target=".bracp-body"><label>
Principal
</label></li>
{if isset($session->BRACP_ISLOGGEDIN) eq true and $session->BRACP_ISLOGGEDIN eq true and
$account->getGroup_id() >= BRACP_ALLOW_ADMIN_GMLEVEL}
<li style='color: red; font-weight: bold;'>
<input id="menu-admin" type="checkbox" class="bracp-menu-item-check"/>
<label for="menu-admin">Administração</label>
<ul>
<li class="ajax-url" data-url="{$smarty.const.BRACP_DIR_INSTALL_URL}admin/backup" data-target=".bracp-body"><label>
Criar Backup
</label></li>
<li class="ajax-url" data-url="{$smarty.const.BRACP_DIR_INSTALL_URL}admin/theme" data-target=".bracp-body"><label>
Atualizar temas
</label></li>
</ul>
</li>
{/if}
<li>
<input id="menu-myaccount" type="checkbox" class="bracp-menu-item-check"/>
<label for="menu-myaccount">Minha Conta</label>
Expand Down

1 comment on commit ef5eeff

@carloshenrq
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.