templates/header.tpl
changeset 0 4869aea77e21
child 4 d9298ea00d20
equal deleted inserted replaced
-1:000000000000 0:4869aea77e21
       
     1 <nav class="navbar navbar-default">
       
     2     <div class="container-fluid">
       
     3         <div class="navbar-header">
       
     4             <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#ticketbar" aria-expanded="false">
       
     5                 <span class="sr-only">Toggle navigation</span>
       
     6                 <span class="icon-bar"></span>
       
     7                 <span class="icon-bar"></span>
       
     8                 <span class="icon-bar"></span>
       
     9             </button>
       
    10             <a class="navbar-brand" href="/">Ticket-System</a>
       
    11         </div>
       
    12 
       
    13         <div class="collapse navbar-collapse" id="ticketbar">
       
    14             {if $smarty.session.prefix.group_id == $tGroup::ADMIN || $smarty.session.prefix.group_id == $tGroup::MANAGER}
       
    15                 <ul class="nav navbar-nav">
       
    16                     <li class="active"><a href="/benutzerverwaltung/">Benutzerverwaltung <span class="sr-only">(current)</span></a></li>
       
    17                 </ul>
       
    18             {/if}
       
    19 
       
    20             <ul class="nav navbar-nav">
       
    21                 <li class="active"><a href="/tickets/">Tickets <span class="sr-only">(current)</span></a></li>
       
    22             </ul>
       
    23             <form class="navbar-form navbar-left" role="search" method="get" action="/tickets/">
       
    24                 <div class="form-group">
       
    25                     <input type="text" class="form-control" placeholder="Suchen..." name="tid" value="">
       
    26                 </div>
       
    27                 <button type="submit" class="btn btn-default">Ticket-Suche</button>
       
    28             </form>
       
    29             <ul class="nav navbar-nav navbar-right">
       
    30                 {if $request->getKey('isLoggedIn')}
       
    31                     <li><a href="/meinprofil/">{$tUser->getFirstname()} {$tUser->getLastname()}</a></li>
       
    32                     <li><a href="/abmelden/">abmelden</a></li>
       
    33                 {else}
       
    34                     <li><a href="/anmelden/">anmelden</a></li>
       
    35                     <li><a href="/registrieren/">registrieren</a></li>
       
    36                 {/if}
       
    37             </ul>
       
    38         </div>
       
    39     </div>
       
    40 </nav>