diff --git a/IT_asset_management/app/templates/assets/form.html b/IT_asset_management/app/templates/assets/form.html index cffe75a..44048a9 100644 --- a/IT_asset_management/app/templates/assets/form.html +++ b/IT_asset_management/app/templates/assets/form.html @@ -13,36 +13,60 @@
+ {% if not asset and prefill and prefill.service_tag %}
Pre-filled from Dell service tag {{ prefill.service_tag }}. Review the details below before saving.
{% endif %} -
-
Identifiers
+ {# ── Bulk-entry hint (Add mode only) ── #} + {% if not asset %} +
+ + + Bulk-entry mode: after saving, all hardware details are kept so you can + add the next asset from the same batch by only changing the + Service Tag and Asset Tag. + Use Reset All to start a completely new entry. + +
+ {% endif %} + + + + {# ── Identifiers ─────────────────────────────────────────────────── #} +
+
Identifiers
+ {% if not asset %} + + These fields clear after each save + + {% endif %} +
- + placeholder="e.g. ABC1234" required autocomplete="off">
Used as both the service tag and serial number.
- + placeholder="Internal barcode/tag" autocomplete="off">
+ {# ── Classification ──────────────────────────────────────────────── #}
Classification
- {% for t in asset_types %}
+ {# ── Technical Specs ─────────────────────────────────────────────── #}
Technical Specs
-
-
-
-
- + + {% if not asset %} +
Clears after each save
+ {% endif %}
-
+ {# ── Procurement ─────────────────────────────────────────────────── #}
Procurement
-
-
-
- {% for val, label in asset_statuses %} {% endfor %} @@ -129,28 +159,120 @@
-
-
- +
-
+
+ {% if not asset %} + + {% endif %} Cancel + class="btn btn-outline-secondary ms-auto">Cancel
{% endblock %} + +{% block extra_js %} +{% if not asset %} + +{% endif %} +{% endblock %} +