Consolidate Item Types, Users, and Settings into one Settings section
The navbar previously listed Item Types, Users, and Settings as three separate top-level links. They now live under a single "Settings" entry in the navbar, backed by one unified section with a left sub-nav (General, Item Types, Users) shared across all three areas so it reads as one settings panel rather than three disconnected admin pages. - New templates/partials/settings_nav.html shared sub-nav, included by settings.html, itemtypes_list/form.html, and users_list/form.html. - Routes moved under /settings/: /item-types* -> /settings/item-types*, /users* -> /settings/users*. All redirects, form actions, and the item-type custom-field JS base action updated to match.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{{define "settings_nav"}}
|
||||
<div class="list-group settings-nav">
|
||||
<a href="/settings" class="list-group-item list-group-item-action{{if eq . "general"}} active{{end}}">
|
||||
<i class="bi bi-sliders me-2"></i>General
|
||||
</a>
|
||||
<a href="/settings/item-types" class="list-group-item list-group-item-action{{if eq . "itemtypes"}} active{{end}}">
|
||||
<i class="bi bi-tags me-2"></i>Item Types
|
||||
</a>
|
||||
<a href="/settings/users" class="list-group-item list-group-item-action{{if eq . "users"}} active{{end}}">
|
||||
<i class="bi bi-people me-2"></i>Users
|
||||
</a>
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user