templates/header.tpl
author Markus Bröker <broeker.markus@googlemail.com>
Thu, 12 Nov 2015 14:39:16 +0100
changeset 0 4869aea77e21
child 4 d9298ea00d20
permissions -rw-r--r--
Bröker-Framework BFW-1

<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#ticketbar" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Ticket-System</a>
        </div>

        <div class="collapse navbar-collapse" id="ticketbar">
            {if $smarty.session.prefix.group_id == $tGroup::ADMIN || $smarty.session.prefix.group_id == $tGroup::MANAGER}
                <ul class="nav navbar-nav">
                    <li class="active"><a href="/benutzerverwaltung/">Benutzerverwaltung <span class="sr-only">(current)</span></a></li>
                </ul>
            {/if}

            <ul class="nav navbar-nav">
                <li class="active"><a href="/tickets/">Tickets <span class="sr-only">(current)</span></a></li>
            </ul>
            <form class="navbar-form navbar-left" role="search" method="get" action="/tickets/">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Suchen..." name="tid" value="">
                </div>
                <button type="submit" class="btn btn-default">Ticket-Suche</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                {if $request->getKey('isLoggedIn')}
                    <li><a href="/meinprofil/">{$tUser->getFirstname()} {$tUser->getLastname()}</a></li>
                    <li><a href="/abmelden/">abmelden</a></li>
                {else}
                    <li><a href="/anmelden/">anmelden</a></li>
                    <li><a href="/registrieren/">registrieren</a></li>
                {/if}
            </ul>
        </div>
    </div>
</nav>