add hidden inputs to carry parent id and date

This commit is contained in:
Yisroel Baum 2024-10-14 15:45:11 +03:00
parent da820c3500
commit 251c28be39

View file

@ -35,6 +35,8 @@
<form action="{{ url_for('split_line_endpoint') }}" method="POST"> <form action="{{ url_for('split_line_endpoint') }}" method="POST">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <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"> <tbody id="table-body">
<tr> <tr>
<td><input type="text" class="form-control" name="Amount-1" placeholder="Amount"></td> <td><input type="text" class="form-control" name="Amount-1" placeholder="Amount"></td>