navbar.html 2.58 KB
Newer Older
1
<div class="navbar navbar-inverse navbar-static-top" ng-controller="NavbarController">
2
3
  <div class="container">
    <div class="navbar-header">
4
      <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main" ng-click="nav.isCollapsed = !nav.isCollapsed">
5
6
7
8
9
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
10
      <a href="~/" class="navbar-brand">Modulo Personal</a>
11
    </div>
12
    <div collapse="nav.isCollapsed" class="navbar-collapse collapse" id="navbar-main" uib-collapse="nav.isCollapsed">
13
      <ul class="nav navbar-nav" ng-show="nav.inicioSesion()">
14
        <li class="dropdown" uib-dropdown="" style="">
15
          <a role="button" href class="dropdown-toggle" uib-dropdown-toggle="" aria-haspopup="true" aria-expanded="false">
16
17
18
19
            Entidades <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
            <li ng-repeat="item in nav.menu" ng-class="{active: $state.includes('{{item.parentState}}')}">
20
              <a ui-sref="{{item.state}}" ng-click="nav.isCollapsed = true">{{item.title}}</a>
21
22
            </li>
          </ul>
23
        </li>
24
        <li class="dropdown" uib-dropdown="" style="">
25
          <a role="button" href class="dropdown-toggle" uib-dropdown-toggle="" aria-haspopup="true" aria-expanded="false">
26
27
28
29
            Administrador <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
            <li ng-repeat="item in nav.menuAdministrador" ng-class="{active: $state.includes('{{item.parentState}}')}">
30
              <a ui-sref="{{item.state}}" ng-click="nav.isCollapsed = true">{{item.title}}</a>
31
32
33
            </li>
          </ul>
        </li>
34
      </ul>
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53


  <ul class="nav navbar-nav navbar-right">
    <li ng-hide="nav.inicioSesion()" ui-sref-active="active"><a ui-sref="login">Iniciar Sesion </a></li>
    <li class="dropdown " uib-dropdown="" ng-show="nav.inicioSesion()">
          <a role="button" href class="dropdown-toggle" uib-dropdown-toggle="" aria-haspopup="true" aria-expanded="false">
            <i class="glyphicon glyphicon-user"></i> {{ nav.usuarioActual().nombreCompleto }} <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
            <li ng-show="nav.inicioSesion()">
              <a ui-sref="logout" title="Cerrar Sesion [{{ nav.usuarioActual().ambiente }}]"><span class="glyphicon glyphicon-lock pull-right"></span>Cerrar Sesión</a>
            </li>
          </ul>
        </li>
  </u>




54
55
56
    </div>
  </div>
</div>