2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Fix buttons for BOM upload form

This commit is contained in:
Oliver Walters 2019-08-14 13:35:48 +10:00
parent f9fa16a397
commit f90ffcd3db
2 changed files with 5 additions and 7 deletions

View File

@ -149,9 +149,7 @@ class BomUploadManager:
return len(self.data.headers) return len(self.data.headers)
def row_count(self): def row_count(self):
""" Return the number of rows in the file. """ Return the number of rows in the file. """
Ignored the top rows as indicated by 'starting row'
"""
if self.data is None: if self.data is None:
return 0 return 0

View File

@ -40,8 +40,8 @@
<div> <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 }}' style='display: inline; float: right;' title='Remove column'> <button class='btn btn-default btn-remove' onClick='removeColFromBomWizard()' id='del_col_{{ forloop.counter0 }}' style='display: inline; float: right;' title='Remove column'>
<span col_id='{{ forloop.counter0 }}' onClick='removeColFromBomWizard()' class='glyphicon glyphicon-small glyphicon-remove'></span> <span col_id='{{ forloop.counter0 }}' class='glyphicon glyphicon-small glyphicon-remove'></span>
</button> </button>
</div> </div>
</th> </th>
@ -69,8 +69,8 @@
{% for row in bom_rows %} {% for row in bom_rows %}
<tr> <tr>
<td> <td>
<button class='btn btn-default btn-remove' id='del_row_{{ forloop.counter }}' style='display: inline; float: right;' title='Remove row'> <button class='btn btn-default btn-remove' onClick='removeRowFromBomWizard()' id='del_row_{{ forloop.counter }}' style='display: inline; float: right;' title='Remove row'>
<span row_id='{{ forloop.counter }}' onClick='removeRowFromBomWizard()' class='glyphicon glyphicon-small glyphicon-remove'></span> <span row_id='{{ forloop.counter }}' class='glyphicon glyphicon-small glyphicon-remove'></span>
</button> </button>
</td> </td>
<td>{{ forloop.counter }}</td> <td>{{ forloop.counter }}</td>