From 47e1059532d9dd1f42f0e81466419f852bee838b Mon Sep 17 00:00:00 2001 From: Darek Date: Sun, 12 Apr 2026 14:20:03 -0500 Subject: [PATCH] Replace datalist autocomplete with select dropdown for brand fields datalist only shows suggestions when typing, not on click. Switched to a + + {% for b in brands|default([]) %} + + {% endfor %} + + - - {% for b in brands|default([]) %} + placeholder="Type new brand name" required + style="display:none;margin-top:0.4rem;">
@@ -32,4 +37,34 @@
+ + {% endblock %} diff --git a/templates/device_detail.html b/templates/device_detail.html index 83d8a5b..e046e2a 100644 --- a/templates/device_detail.html +++ b/templates/device_detail.html @@ -29,22 +29,43 @@

Install Batteries

{% set free_slots = device.battery_slots - device.installed_count() %}

{{ free_slots }} slot(s) free

- - {% for b in brands|default([]) %}
-
+
Brand Qty - {% for _ in range(4) %} - + {% for i in range(1, 5) %} +
+ + +
{% endfor %}
+ +