Skip to content

Commit 8da990d

Browse files
committed
Closed item modal form before submit button
1 parent 8068168 commit 8da990d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

invoice/templates/item_modal.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="itemModal" class="modal modal-fixed-footer">
2-
<div class="modal-content">
3-
<div class="row no-margin-bottom">
4-
<form id="invoice-item-form" method="POST" class="col s12">
2+
<form id="invoice-item-form" method="POST" >
3+
<div class="modal-content">
4+
<div class="row no-margin-bottom">
55
{% csrf_token %}
66
<h4 id="editStatus">Add Item</h4>
77
<div class="divider" style="margin-bottom: 15px"></div>
@@ -24,11 +24,11 @@ <h4 id="editStatus">Add Item</h4>
2424
<label for="cost" id="costInputLabel">Cost</label>
2525
</div>
2626

27-
</form>
27+
</div>
2828
</div>
29-
</div>
30-
<div class="modal-footer">
31-
<button type="submit" name="action" class="waves-effect waves-green btn-flat">Save</button>
32-
<a class="modal-action modal-close waves-effect waves-red btn-flat">Close</a>
33-
</div>
29+
<div class="modal-footer">
30+
<button type="submit" name="action" class="waves-effect waves-green btn-flat">Save</button>
31+
<a class="modal-action modal-close waves-effect waves-red btn-flat">Close</a>
32+
</div>
33+
</form>
3434
</div>

0 commit comments

Comments
 (0)