Closed JohnArcher closed 9 years ago
Hello, Any update on this request?. I am trying to implement the login/logout/change password functionality on the navigation bar as well. Thanks,
Just adding a dropdown-toggle to a navigation-bar element worked for me... here's a snippet:
<nav class="navigation-bar fixed-top" role="navigation">
<div class="navigation-bar-content">
<div class="element place-right">
<a class="dropdown-toggle"><i class="icon-cog"></i></a>
<ul class="dropdown-menu place-right" data-role="dropdown" data-effect="none">
<li><a href="/account">My Account</a></li>
<li><a href="/support">Support</a></li>
<li class="divider"></li>
<li><a href="/logout">Logout</a></li>
</ul>
</div>
</div>
</nav>
Thanks Samscudder, That works, but I was looking to do something like this: http://bootsnipp.com/snippets/featured/admin-nav-bar-with-popup-sign-in
I see... So you want to be able to have a "form dropdown" with inputs.
Yes, that is the idea...
I have it almost done with the following code, but there are still some issues with the styles... If I could define a proper class for the form, all the internal elements should behave as expected.
<div class="element place-right">
<a class="dropdown-toggle"><i class="icon-cog"></i></a>
<ul class="dropdown-menu place-right" data-role="dropdown" data-effect="none">
<li class="dropdown">
<form method="post" action="login" accept-charset="UTF-8" id="frm_login" class="bg-white" style="padding:15px;" >
<fieldset>
<legend >Login:</legend>
<div class="input-control text" data-role="input-control">
<input type="text" placeholder="Username" id="username" name="username" style="margin-bottom: 5px;" >
<button class="btn-clear" tabindex="-1"></button>
</div>
<div class="input-control password" data-role="input-control password">
<input type="password" placeholder="Password" id="password" name="password" style="margin-bottom: 10px;" autofocus>
<button class="btn-reveal" tabindex="-1"></button>
</div>
<div class="input-control checkbox" data-role="input-control" style="margin-bottom: 5px;">
<label>
<input type="checkbox" checked name="remember-me" id="remember-me" />
<span class="check"></span>
Remember me
</label>
</div>
<button class="image-button primary place-right" type="submit" id="btn_login" form="frm_login" value="login">
Login
<i class="icon-enter bg-cobalt fg-white"></i>
</button>
</fieldset>
</form>
</li>
</ul>
</div>
Hi!
I would like to usethe user dropdown menu known from the start page also in an navigation bar. My code looks like this:
The result, unfortunately, looks like this:
So, are there any chances to implement user menu support in nav bars? Would be great, thanks a lot in advance! Спасибо! :-)
Regards