1
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 name of the person, 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 switches the visualization to the bootstrap pattern, where it has a simple button per bar that when clicked opens the corresponding menu in list form.
When you click the NAVBAR on the device, it opens a menu written the person’s name and then I have to click the person’s name to open the password change menu and exit.
I wonder if you have how to take this extra click on the person’s name and go straight to change password and exit options, or already view 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 -->