Files
vibetree/web/templates/pages/inventory.html
T
Owen 8d9106542c Blank root panel, asset form as a modal, and a dedicated Statuses page
- Main panel is now blank at the top level ("Select a folder or asset
  from the tree") instead of showing a dashboard - browsing happens in
  the tree, the panel only shows something once you click into it.
  Removed the now-dead DashboardStats/Stats() machinery it depended on.
- Add/Edit Asset no longer takes over the main panel; it opens in
  #assetModal instead; asset_form.html was trimmed down to just the form
  (no more breadcrumb/panel wrapper) since the modal chrome provides the
  title and footer buttons now. The dynamic item-type-fields and submit
  listeners moved from #main-panel's delegation to the modal element's.
- Statuses split out of the General settings page into its own
  /settings/statuses page and sub-nav entry, alongside General, Item
  Types, and Users.
2026-08-17 15:45:38 -05:00

38 lines
1.6 KiB
HTML

{{define "content"}}
<div class="inventory-shell d-flex">
<aside id="tree-pane" class="tree-pane border-end d-flex flex-column">
<div class="p-2 border-bottom">
<div class="input-group input-group-sm">
<span class="input-group-text"><i class="bi bi-search"></i></span>
<input type="search" id="tree-search" class="form-control" placeholder="Search inventory&hellip;">
<button class="btn btn-outline-secondary" id="btn-expand-all" title="Expand all folders"><i class="bi bi-arrows-expand"></i></button>
<button class="btn btn-outline-secondary" id="btn-collapse-all" title="Collapse all folders"><i class="bi bi-arrows-collapse"></i></button>
</div>
<div class="form-text">Right-click the tree to add, rename, or delete.</div>
</div>
<div class="tree-scroll flex-fill overflow-auto">
<ul class="tree list-unstyled mb-0" id="tree-root">
<li class="tree-node tree-node-root" data-type="root">
<div class="tree-row selected" data-type="root" tabindex="0">
<span class="tree-toggle-spacer"></span>
<i class="bi bi-house-door-fill tree-icon text-primary"></i>
<span class="tree-label">Inventory</span>
</div>
</li>
<li>
<ul class="tree-children list-unstyled" id="top-level-children" data-expanded="true">
{{template "tree_children" .Tree}}
</ul>
</li>
</ul>
</div>
</aside>
<section id="main-panel" class="main-panel flex-fill overflow-auto" data-context-type="root" data-context-id="">
{{template "panel_root" .}}
</section>
</div>
{{template "modals" .}}
{{end}}