Is there a way to add an additional collapsible dropdown with an icon in the navbar using Bootstrap 4? I want it to be positioned to the left of the default toggle icon.
Currently, my setup is as follows (Please disregard the if statements). I am attempting to place the search feature in its own collapsible dropdown with a unique icon on mobile devices, while keeping the other navigation items in the existing dropdown menu. (I can use the default Bootstrap icon for now)
I am aiming to achieve a design similar to the navbar on monster.com, so feel free to take a look at their website for reference.
<div class="container-fluid">
<nav class="navbar fixed-top navbar-toggleable-md navbar-inverse" style="background-color: #3c763d!important;">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="logo">
<a class="navbar-brand" href="/">Company Name</a>
</div>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto mx-auto">
<form class="form-inline">
<input class="form-control" type="text" placeholder="Search for job">
<input class="form-control" type="text" placeholder="Location" />
<button class="btn btn-seconday " type="submit">Search</button>
</form>
</ul>
<ul class="navbar-nav">
<li class="nav-item"><a href="/post" class="nav-link">Post a Job</a></li>
<li v-if="!user_logged" class="nav-item">
<a href="/signup" class="nav-link"><strong>Sign Up</strong></a>
</li>
<li v-if="user_logged && user_type === 'user'" class="nav-item">
<a href="/profile" class="nav-link"><strong>Profile</strong></a>
</li>
<li v-if="user_logged && user_type === 'company'" class="nav-item">
<a href="/dashboard" class="nav-link"><strong>Employer Dashboard</strong></a>
</li>
<li v-if="!user_logged" class="nav-item">
<a href="/login" class="nav-link"><strong><span class="glyphicon glyphicon-log-in"></span> Login</strong></a>
</li>
<li v-if="user_logged" class="nav-item">
<a href="/logout" class="nav-link"><strong><span class="glyphicon glyphicon-log-out"></span> Logout</strong></a>
</li>
</ul>
</div>
</nav>
</div>