I am formulating a responsive page with bootstrap, where I have 2 bars:
-
NAVBAR where I have the company logo, and a simple dropbox with the person's name, and with the options change password and exit.
-
MAINBAR where you have the navigation menu of the site.
When accessed by a mobile device, it changes the view to the default bootstrap, where it has a simple button per bar that when clicked opens the corresponding menu as a list.
When you click NAVBAR on the device, it opens a menu that says the person's name and then I have to click on the person's name to open the change password menu and exit.
I would like to know if you have this extra click on the person's name and go directly to the options change password and exit, or already display expanded when clicked on the NAVBAR menu button.
This is the code:
<div class="navbar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<i class="fa fa-cogs"></i>
</button>
<a class="navbar-brand navbar-brand-image" href="http://www.example.com.br">
<img src="logo.png">
</a>
</div> <!-- /.navbar-header -->
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown navbar-profile">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;">
<span class="navbar-profile-label">NOME DO USUARIO</span>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="profile.php">
<i class="fa fa-user"></i>
Perfil
</a>
</li>
<li>
<a href="profilePassword.php">
<i class="fa fa-cog"></i>
Alterar Senha
</a>
</li>
<li class="divider"></li>
<li>
<a href="logout.php">
<i class="fa fa-sign-out"></i>
Sair
</a>
</li>
</ul>
</li>
</ul>
</div> <!--/.navbar-collapse -->
</div> <!-- /.container -->
</div> <!-- /.navbar -->
<div class="mainbar">
<div class="container">
<button type="button" class="btn mainbar-toggle" data-toggle="collapse" data-target=".mainbar-collapse">
<i class="fa fa-bars"></i>
</button>
<div class="mainbar-collapse collapse">
<ul class="nav navbar-nav mainbar-nav">
<!--
CRIAÇÃO DO MENU DE NAVEGAÇÃO DO SITE, EXEMPLO DE OPÇÂO:
<li class="MENU ATIVO OU NÃO ATIVO">
<a href="index.php">
<i class="fa fa-dashboard"></i>
Dashboard
</a>
</li>
-->
</ul>
</div> <!-- /.navbar-collapse -->
</div> <!-- /.container -->
</div> <!-- /.mainbar -->