-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from gaepdit/261-adjustments-for-bootstrap-5x…
…-and-code-cleanup Code adjustment and Bootstrap changes
- Loading branch information
Showing
6 changed files
with
86 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
@using FMS.Domain.Entities.Users | ||
|
||
<div class="container-fluid"> | ||
<nav class="navbar navbar-expand-sm bg-brand"> | ||
<div class="container"> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerMain" | ||
aria-controls="navbarTogglerMain" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> <span class="align-middle">Menu</span> | ||
</button> | ||
<div class="collapse navbar-collapse d-sm-inline-flex" id="navbarTogglerMain"> | ||
<ul class="navbar-nav flex-grow-1 mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link text-white" asp-page="/Facilities/Index">Facility Search</a> | ||
</li> | ||
|
||
<nav class="navbar navbar-expand-sm bg-brand"> | ||
<div class="container"> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerMain" | ||
aria-controls="navbarTogglerMain" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> <span class="align-middle text-white">Menu</span> | ||
</button> | ||
<div class="collapse navbar-collapse d-sm-inline-flex" id="navbarTogglerMain"> | ||
<ul class="navbar-nav flex-grow-1 mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link text-white" asp-page="/Facilities/Index">Facility Search</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link text-white" asp-page="/Facilities/Map">Location Search</a> | ||
</li> | ||
@if (User.IsInRole(UserRoles.FileCreator) || User.IsInRole(UserRoles.FileEditor)) | ||
{ | ||
<li class="nav-item"> | ||
<a class="nav-link text-white" asp-page="/Facilities/Map">Location Search</a> | ||
<a class="nav-link text-white" asp-page="/Facilities/Add">Add Facility</a> | ||
</li> | ||
@if (User.IsInRole(UserRoles.FileCreator) || User.IsInRole(UserRoles.FileEditor)) | ||
{ | ||
<li class="nav-item"> | ||
<a class="nav-link text-white" asp-page="/Facilities/Add">Add Facility</a> | ||
} | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle text-white" href="#" id="MoreDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
More | ||
</a> | ||
<ul class="dropdown-menu" aria-labelledby="MoreDropdown"> | ||
<li><a class="dropdown-item" asp-page="/Files/Index">Files</a></li> | ||
<li><a class="dropdown-item" asp-page="/Cabinets/Index">Cabinets</a></li> | ||
<li><a class="dropdown-item" asp-page="/Users/Index">FMS Users</a></li> | ||
@if (User.IsInRole(UserRoles.SiteMaintenance)) | ||
{ | ||
<li><a class="dropdown-item" asp-page="/Maintenance/Index">Site Maintenance</a></li> | ||
} | ||
</ul> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav d-flex"> | ||
<li class="nav-item dropdown text-dark"> | ||
<button class="nav-link dropdown-toggle text-white" id="accountDropdownMenuLink" role="button" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="View account menu"> | ||
Account | ||
</button> | ||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="accountDropdownMenuLink"> | ||
<li><a class="dropdown-item" asp-page="/Account/Index">Your profile</a></li> | ||
<li> | ||
<form class="form-inline dropdown-item p-0" asp-page="/Account/Logout" method="post"> | ||
<button type="submit" class="dropdown-item bg-danger text-light px-4 py-2">Sign out</button> | ||
</form> | ||
</li> | ||
} | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle text-white" href="#" id="MoreDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
More | ||
</a> | ||
<ul class="dropdown-menu" aria-labelledby="MoreDropdown"> | ||
<li><a class="dropdown-item" asp-page="/Files/Index">Files</a></li> | ||
<li><a class="dropdown-item" asp-page="/Cabinets/Index">Cabinets</a></li> | ||
<li><a class="dropdown-item" asp-page="/Users/Index">FMS Users</a></li> | ||
@if (User.IsInRole(UserRoles.SiteMaintenance)) | ||
{ | ||
<li><a class="dropdown-item" asp-page="/Maintenance/Index">Site Maintenance</a></li> | ||
} | ||
</ul> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav d-flex"> | ||
<li class="nav-item dropdown text-dark"> | ||
<button class="nav-link dropdown-toggle text-white" id="accountDropdownMenuLink" role="button" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="View account menu"> | ||
Account | ||
</button> | ||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="accountDropdownMenuLink"> | ||
<li><a class="dropdown-item" asp-page="/Account/Index">Your profile</a></li> | ||
<li> | ||
<form class="form-inline dropdown-item p-0" asp-page="/Account/Logout" method="post"> | ||
<button type="submit" class="dropdown-item bg-danger text-light px-4 py-2">Sign out</button> | ||
</form> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
</nav> | ||
|