example: do not show navbar search field if not connected
This commit is contained in:
parent
cd8b577693
commit
56e1b1e415
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
{extends file='TplCore:empty.tpl'}
|
{extends file='TplCore:empty.tpl'}
|
||||||
{block name="navbar-extra-content"}
|
{block name="navbar-extra-content"}
|
||||||
|
{if isset($auth_user) && $auth_user}
|
||||||
<form class="d-flex" role="search" action='item'>
|
<form class="d-flex" role="search" action='item'>
|
||||||
<div class="input-group input-group-sm me-2">
|
<div class="input-group input-group-sm me-2">
|
||||||
<input class="form-control" type="search" name="pattern"
|
<input class="form-control" type="search" name="pattern"
|
||||||
|
@ -7,4 +8,5 @@
|
||||||
<span class="input-group-text"><i class="fa fa-search" aria-hidden="true"></i></span>
|
<span class="input-group-text"><i class="fa fa-search" aria-hidden="true"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
Loading…
Reference in a new issue