templates/header.tpl
changeset 0 4869aea77e21
child 4 d9298ea00d20
new file mode 100644
--- /dev/null
+++ b/templates/header.tpl
@@ -0,0 +1,40 @@
+<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>
\ No newline at end of file