UI Routing and dead buttons fix

This commit is contained in:
2026-01-20 15:15:31 +01:00
parent b01cf1fd50
commit 742eb37694
6 changed files with 531 additions and 34 deletions

View File

@@ -42,6 +42,21 @@
@User.Identity.Name
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
<li>
<form asp-controller="User" asp-action="Index" method="post" style="display:inline;">
@Html.AntiForgeryToken()
<button type="submit" class="dropdown-item">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2"
style="display: inline-block; vertical-align: middle; margin-right: 8px;">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
<polyline points="16 17 21 12 16 7"></polyline>
<line x1="21" y1="12" x2="9" y2="12"></line>
</svg>
Settings
</button>
</form>
</li>
<li>
<form asp-controller="Auth" asp-action="Logout" method="post" style="display:inline;">
@Html.AntiForgeryToken()
@@ -57,16 +72,6 @@
</button>
</form>
</li>
<li class="dropdown-item">
<a style="display: inline-block; vertical-align: middle; margin-right: 8px;"
asp-area="" asp-controller="User" asp-action="Index"><svg width="16" height="16"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
style="display: inline-block; vertical-align: middle; margin-right: 8px;">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
<polyline points="16 17 21 12 16 7"></polyline>
<line x1="21" y1="12" x2="9" y2="12"></line>
</svg>Settings</a>
</li>
</ul>
</li>
}
@@ -74,7 +79,7 @@
</div>
</div>
</nav>
<main class="main-content">
@RenderBody()
</main>