made location listing part of the template, rather than an unnecesary AJAX request + secret sauce sorting

This commit is contained in:
2018-11-11 01:19:32 +01:00
parent fd4f29ca7d
commit 2029ef5aeb
3 changed files with 12 additions and 15 deletions
+7 -1
View File
@@ -43,7 +43,13 @@
<h2>Part Details</h2>
<table id="details">
<tr id="location-head"><td>LOCATION</td></tr>
<tr id="location"><td><p></p><select class="pinfo-input" onchange="update_map()"></select></td></tr>
<tr id="location"><td><p></p>
<select class="pinfo-input" onchange="update_map()">
{% for location in locations %}
<option value="{{location['id']}}">{{location['name']}}</option>
{% endfor %}
</select>
</td></tr>
<tr id="partno-head"><td>PART NUMBER</td></tr>
<tr id="partno"><td><p></p><input type="text" name="partno-input" placeholder="Part Number" class="pinfo-input"/></td></tr>
<tr id="description-head"><td>DESCRIPTION</td></tr>