2015-07-28 22:29:07 +00:00
|
|
|
<section class="navbar navbar-fixed-top navbar-inverse" data-ng-controller="HeaderController" ng-hide="hideNav">
|
|
|
|
<div class="container" >
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button class="navbar-toggle" type="button" data-ng-click="toggleCollapsibleMenu()">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a href="/#!/" class="navbar-brand">
|
2015-11-16 22:39:09 +00:00
|
|
|
<i class="fa fa-archive" style="padding-right: 0.3em;"></i>Tell<span>Forms</span>
|
2015-07-28 22:29:07 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation">
|
|
|
|
<ul class="nav navbar-nav" data-ng-if="authentication.isAuthenticated()">
|
|
|
|
<li data-ng-repeat="item in menu.items | orderBy: 'position'" data-ng-if="item.shouldRender(authentication.isAuthenticated());" ng-switch="item.menuItemType" ui-route="{{item.uiRoute}}" class="{{item.menuItemClass}}" ng-class="{active: ($uiRoute)}" dropdown="item.menuItemType === 'dropdown'">
|
|
|
|
<a ng-switch-when="dropdown" class="dropdown-toggle" dropdown-toggle>
|
|
|
|
<span data-ng-bind="item.title"></span>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul ng-switch-when="dropdown" class="dropdown-menu">
|
|
|
|
<li data-ng-repeat="subitem in item.items | orderBy: 'position'" data-ng-if="subitem.shouldRender(authentication.isAuthenticated());" ui-route="{{subitem.uiRoute}}" ng-class="{active: $uiRoute}">
|
|
|
|
<a href="/#!/{{subitem.link}}" data-ng-bind="subitem.title"></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<a ng-switch-default href="/#!/{{item.link}}" data-ng-bind="item.title"></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right" data-ng-hide="authentication.isAuthenticated()">
|
|
|
|
<li ui-route="/signup" ng-class="{active: $uiRoute}">
|
|
|
|
<a href="/#!/signup">Sign Up</a>
|
|
|
|
</li>
|
|
|
|
<li class="divider-vertical"></li>
|
|
|
|
<li ui-route="/signin" ng-class="{active: $uiRoute}">
|
|
|
|
<a href="/#!/signin">Sign In</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right" data-ng-show="authentication.isAuthenticated()">
|
2015-11-12 19:17:25 +00:00
|
|
|
<li class="dropdown" uib-dropdown>
|
2015-07-28 22:29:07 +00:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" dropdown-toggle>
|
2015-08-06 05:52:59 +00:00
|
|
|
<span>My Settings</span>
|
|
|
|
<b class="caret"></b>
|
2015-07-28 22:29:07 +00:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
|
|
|
<a href="/#!/settings/profile">Edit Profile</a>
|
|
|
|
</li>
|
2015-11-12 19:17:25 +00:00
|
|
|
<li class="divider"></li>
|
2015-07-28 22:29:07 +00:00
|
|
|
<li>
|
|
|
|
<a href="/#!/settings/password">Change Password</a>
|
|
|
|
</li>
|
|
|
|
<li data-ng-show="authentication.isAuthenticated().provider === 'local'">
|
|
|
|
<a href="/#!/settings/password">Change Password</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-11-12 19:17:25 +00:00
|
|
|
<li ng-click="signout()">
|
|
|
|
<a>Signout</a>
|
|
|
|
</li>
|
2015-07-28 22:29:07 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
|
|
|
</section>
|