Gift cards: Fix incorrect handling of return key

This commit is contained in:
Raphael Michel
2022-01-03 10:38:54 +01:00
parent 451d3fce05
commit 5d13f5f885

View File

@@ -57,6 +57,7 @@
</div> </div>
<form class="" method="post" action=""> <form class="" method="post" action="">
{% csrf_token %} {% csrf_token %}
<button type="submit" class="hidden">Add</button> <!-- Required because pressing enter in the text fields will submit the first button -->
<table class="panel-body table"> <table class="panel-body table">
<thead> <thead>
<tr> <tr>
@@ -101,7 +102,7 @@
</td> </td>
<td class="text-right form-inline"> <td class="text-right form-inline">
<input type="text" class="form-control input-sm" placeholder="{% trans "Value" %}" name="value"> <input type="text" class="form-control input-sm" placeholder="{% trans "Value" %}" name="value">
<button class="btn btn-primary"> <button type="submit" class="btn btn-primary">
<span class="fa fa-plus"></span> <span class="fa fa-plus"></span>
</button> </button>
</td> </td>