Refactor worklog handling and rendering; enhance active worklog display and add settings page with brand management functionality
This commit is contained in:
parent
3915b97231
commit
e2b8579362
9 changed files with 145 additions and 42 deletions
|
@ -8,17 +8,16 @@
|
|||
<h1 class="display-4">Welcome to Inventory Manager</h1>
|
||||
<p class="lead">Find out about all of your assets.</p>
|
||||
<div class="row">
|
||||
{% if stale_worklog_rows %}
|
||||
{% if active_worklog_rows %}
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Stale Worklogs</h5>
|
||||
<h6 class="card-subtitle mb-2 text-body-secondary">You have {{ stale_count }} worklogs
|
||||
that need attention!</h6>
|
||||
<h5 class="card-title">Active Worklogs</h5>
|
||||
<h6 class="card-subtitle mb-2 text-body-secondary">You have {{ active_count }} active worklogs.</h6>
|
||||
{{ tables.render_table(
|
||||
headers = stale_worklog_headers,
|
||||
rows = stale_worklog_rows,
|
||||
id = 'Stale Worklog',
|
||||
headers = active_worklog_headers,
|
||||
rows = active_worklog_rows,
|
||||
id = 'Active Worklog',
|
||||
entry_route = 'worklog_entry',
|
||||
per_page = 10
|
||||
)}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue