]> Softwares of Agnibho - librevax.git/commitdiff
Bugfix: vaccination edit select
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 11 Jan 2024 19:45:14 +0000 (01:15 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 11 Jan 2024 19:45:14 +0000 (01:15 +0530)
templates/vaccination-edit.html

index f5919124afd852c7a10afb969a2a6a4d266599d7..fd1f58c19cf243b0a0664e05b792156cc705e95c 100644 (file)
@@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License along with Lib
       <div class="col-sm-9">
         <select name="iid" class="form-select">
           {% for i in inventory %}
-          <option value="{{i["iid"]}}" {% if i["iid"]==data["iid"] %} select {% endif %}>{{i["vaccine"]}} {% if i["batch"] %}({{i["batch"]}}){% endif %}</option>
+          <option value="{{i["iid"]}}" {% if i["iid"]==data["iid"] %}selected{% endif %}>{{i["vaccine"]}} {% if i["batch"] %}({{i["batch"]}}){% endif %}</option>
           {% endfor %}
         </select>
       </div>