made location listing part of the template, rather than an unnecesary AJAX request + secret sauce sorting
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user