Refactor inventory and worklog templates for improved rendering and pagination; enhance table display with better responsiveness and usability
This commit is contained in:
parent
bdd2a43c8b
commit
b68c25a05a
8 changed files with 48 additions and 184 deletions
|
@ -12,7 +12,7 @@ title=title,
|
|||
submit_button=True) }}
|
||||
|
||||
<div class="container">
|
||||
<form action="POST">
|
||||
<form method="POST" action="{{ url_for('main.inventory_item', id=item.id) }}">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<label for="timestamp" class="form-label">Date Entered</label>
|
||||
|
@ -28,7 +28,7 @@ submit_button=True) }}
|
|||
<div class="col-4">
|
||||
<label for="inventory_name" class="form-label">Inventory #</label>
|
||||
<input type="text" class="form-control" name="inventory_name" placeholder="-"
|
||||
value="{{ item.inventory_name if item.inventory_name else '' }}">
|
||||
value="{{ item.inventory_name or '' }}">
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="serial" class="form-label">Serial #</label>
|
||||
|
@ -44,7 +44,7 @@ submit_button=True) }}
|
|||
<div class="row">
|
||||
<div class="col-4">
|
||||
<label for="brand" class="form-label">Brand</label>
|
||||
<select class="form-select" id="brand">
|
||||
<select class="form-select" id="brand" name="brand">
|
||||
<option>-</option>
|
||||
{% for brand in brands %}
|
||||
<option value="{{ brand.id }}" {% if brand.id==item.brand_id %} selected{% endif %}>{{ brand.name }}
|
||||
|
@ -101,7 +101,7 @@ submit_button=True) }}
|
|||
</div>
|
||||
<div class="col-2">
|
||||
<label for="condition" class="form-label">Condition</label>
|
||||
<select name="condition" id="" class="form-select" value="{{ item.condition }}">
|
||||
<select name="condition" id="condition" class="form-select">
|
||||
{% for condition in ["Working", "Deployed", "Partially Inoperable", "Inoperable", "Unverified",
|
||||
"Removed", "Disposed"] %}
|
||||
<option value="{{ condition }}">{{ condition }}</option>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue