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