]> Softwares of Agnibho - librevax.git/commitdiff
Link to inventory
authorAgnibho Mondal <mondal@agnibho.com>
Tue, 5 Mar 2024 21:23:38 +0000 (02:53 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Tue, 5 Mar 2024 21:23:38 +0000 (02:53 +0530)
templates/transaction-edit.html
templates/transaction-view.html

index 36e386f4982b8b6c56fa9fd30bd23896e92370ea..05f233c584b0644680ac1bc9131e9d3f7bdfa10a 100644 (file)
@@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with Lib
 {% block content %}
 <div class="content">
   <table class="table">
-    <tr><td>Item</td><td>{{item["vaccine"]}}</td></tr>
+    <tr><td>Item</td><td><a href="/inventory/view/{{item["iid"]}}">{{item["vaccine"]}} ({{item["batch"]}})</a></td></tr>
   </table>
   <form method="post">
     <input type="hidden" name="iid" value="{{iid}}">
index 1db1733ad89f577abad5b5d845b9ab31c8e3198f..982e070456c59d6e2f0aa80f1c9ade99c905f590 100644 (file)
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with Lib
   <!-- LIST -->
 
   <div class="row">
-    <div class="col-sm-10"><h2>{{item["vaccine"]}} ({{item["batch"]}})</h2></div>
+    <div class="col-sm-10"><h2><a href="/inventory/view/{{item["iid"]}}">{{item["vaccine"]}} ({{item["batch"]}})</a></h2></div>
     <div class="col-sm-2 d-grid"><a href="/transaction/new/{{item["iid"]}}" class="btn btn-outline-primary">Add Transaction</a></div>
   </div>
   <hr>