]> Softwares of Agnibho - librevax.git/commitdiff
Bugfix: fractional input in transaction
authorAgnibho Mondal <mondal@agnibho.com>
Wed, 13 Mar 2024 15:29:57 +0000 (20:59 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Wed, 13 Mar 2024 15:29:57 +0000 (20:59 +0530)
templates/transaction-edit.html

index 05f233c584b0644680ac1bc9131e9d3f7bdfa10a..194f7a2990cff5a4567a1ad666aa4513cf7c0eb7 100644 (file)
@@ -21,8 +21,8 @@ You should have received a copy of the GNU General Public License along with Lib
       <label class="form-label col-sm-3">Action</label>
       <div class="col-sm-9">
         <select name="action" class="form-select">
-          <option>IN</option>
-          <option>OUT</option>
+          <option {%if data["action"]=="IN" %}selected{%endif%}>IN</option>
+          <option {%if data["action"]=="OUT" %}selected{%endif%}>OUT</option>
         </select>
       </div>
     </div>
@@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License along with Lib
     <div class="mb-2 row">
       <label class="form-label col-sm-3">Amount</label>
       <div class="col-sm-9">
-        <input name="target" type="number" required class="form-control" value="{{data["target"]}}">
+        <input name="target" type="number" step="0.1" required class="form-control" value="{{data["target"]}}">
       </div>
     </div>
     <div class="mb-2 row">