Enhance inventory management by updating timestamp type to DateTime, adding stale worklog display on the index page, and improving template styles and scripts for better user experience.
This commit is contained in:
parent
0835248f34
commit
58754c71bd
7 changed files with 73 additions and 16 deletions
|
@ -7,5 +7,31 @@
|
|||
<div class="container text-center">
|
||||
<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_pagination['items'] %}
|
||||
<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>
|
||||
{{ tables.render_table(
|
||||
stale_worklog_headers,
|
||||
stale_worklog_rows,
|
||||
'index'
|
||||
)}}
|
||||
{{ tables.render_pagination(
|
||||
'index',
|
||||
stale_pagination['page'],
|
||||
stale_pagination['has_prev'],
|
||||
stale_pagination['has_next'],
|
||||
stale_pagination['total_pages'],
|
||||
page_variable='stale_worklog_page'
|
||||
)}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue