Improve rendering a bit

This commit is contained in:
Oliver Walters 2019-06-29 19:48:15 +10:00
parent ad27d912e1
commit b089a61f74

View File

@ -31,11 +31,21 @@
<th>Row</th>
{% for col in bom_cols %}
<th>
<input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
{{ col.name }}
<button class='btn btn-default btn-remove' id='del_col_{{ forloop.counter0 }}' title='Remove column'>
<span col_id='{{ forloop.counter0 }}' onClick='removeColFromBomWizard()' class='glyphicon glyphicon-small glyphicon-remove'></span>
</button>
<div>
<input type='hidden' name='col_name_{{ forloop.counter0 }}' value='{{ col.name }}'/>
{{ col.name }}
<button class='btn btn-default btn-remove' id='del_col_{{ forloop.counter0 }}' title='Remove column'>
<span col_id='{{ forloop.counter0 }}' onClick='removeColFromBomWizard()' class='glyphicon glyphicon-small glyphicon-remove'></span>
</button>
</div>
</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
{% for col in bom_cols %}
<td>
<select class='select' id='id_col_{{ forloop.counter0 }}' name='col_select_{{ forloop.counter0 }}'>
<option value=''>---------</option>
{% for req in req_cols %}
@ -45,11 +55,9 @@
{% if col.duplicate %}
<p class='help-inline'>Duplicate column selection</p>
{% endif %}
</th>
</td>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in bom_rows %}
<tr>
<td>{% add forloop.counter 1 %}</td>