2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Render column selection options

- Guess which header is which
This commit is contained in:
Oliver Walters
2019-06-28 19:40:27 +10:00
parent 60050e9f32
commit fb96651c15
4 changed files with 69 additions and 52 deletions

View File

@@ -16,11 +16,24 @@
<table class='table table-striped'>
<thead>
<tr>
<th>Row</th>
{% for col in bom_cols %}
<th>
<select class='select' id='id_col_{{ forloop.counter0 }}' name='col_{{ forloop.counter0 }}'>
<option value=''>---------</option>
{% for req in req_cols %}
<option value='{{ req }}'{% if req == col.guess %}selected='selected'{% endif %}>{{ req }}</option>
{% endfor %}
</select>
{{ col.name }}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in bom.rows %}
{% for row in bom_rows %}
<tr>
<td>{% add forloop.counter 1 %}</td>
{% for item in row %}
<td>
{{ item }}