move counter to global

remove inputs from template and move all generation of inputs to js script
This commit is contained in:
Yisroel Baum 2024-10-29 15:25:32 +02:00
parent bb7bc37a3e
commit 86b1ccb3de
2 changed files with 5 additions and 10 deletions

View file

@ -37,14 +37,7 @@
<table class="table table-bordered">
<input type="hidden" name="parent-id" value="{{li.id}}"/>
<input type="hidden" name="date" value="{{li.date}}"/>
<tbody id="table-body">
<tr>
<td><input type="text" class="form-control" name="Amount-1" placeholder="Amount"></td>
<td><input type="text" class="form-control" name="Vendor-1" placeholder="Vendor"></td>
<td><input type="text" class="form-control" name="Confirmation Code-1" placeholder="Confirmation Code"></td>
<td><input type="text" class="form-control" name="Note-1" placeholder="Note"></td>
</tr>
</tbody>
<tbody id="table-body"></tbody>
</table>
</div>
<button type="button" class="btn btn-primary" id="add-line-button">Add Another Line?</button>