- 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.
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{{define "content"}}
|
|
<div class="container-fluid p-3">
|
|
<h4 class="mb-3">Settings</h4>
|
|
<div class="row g-3">
|
|
<div class="col-md-3 col-lg-2">
|
|
{{template "settings_nav" "general"}}
|
|
</div>
|
|
<div class="col-md-9 col-lg-10" style="max-width: 800px">
|
|
|
|
<div class="card">
|
|
<div class="card-header py-2 fw-semibold">General</div>
|
|
<div class="card-body">
|
|
<form method="post" action="/settings/general" class="row g-3">
|
|
<div class="col-md-6">
|
|
<label class="form-label">Site Name</label>
|
|
<input type="text" class="form-control" name="site_name" value="{{.SiteName}}">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label class="form-label">Asset ID Prefix</label>
|
|
<input type="text" class="form-control" name="asset_id_prefix" value="{{.AssetPrefix}}">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label class="form-label">Asset ID Padding</label>
|
|
<input type="number" class="form-control" name="asset_id_padding" value="{{.AssetPadding}}" min="1" max="12">
|
|
</div>
|
|
<div class="col-12">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|