]> Softwares of Agnibho - librevax.git/commitdiff
Bugfix: staff in vaccination
authorAgnibho Mondal <mondal@agnibho.com>
Wed, 6 Mar 2024 20:42:08 +0000 (02:12 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Wed, 6 Mar 2024 20:42:08 +0000 (02:12 +0530)
templates/vaccination-edit.html

index 383454fa07575058be562aa5371b0a098905eb92..3d11e70b3d23dda55d49dd68f7ef118c6d668b83 100644 (file)
@@ -46,7 +46,7 @@ You should have received a copy of the GNU General Public License along with Lib
         <select name="consultant" class="form-select">
           <option value=""></option>
           {% for i in consultant %}
-          <option value="{{i["sid"]}}" {% if i["sid"]==data["sid"] %} select {% endif %}>{{i["name"]}}</option>
+          <option value="{{i["sid"]}}" {% if i["sid"]|lower == data["consultant"]|lower %} selected {% endif %}>{{i["name"]}}</option>
           {% endfor %}
         </select>
       </div>
@@ -57,7 +57,7 @@ You should have received a copy of the GNU General Public License along with Lib
         <select name="vaccinator" class="form-select">
           <option value=""></option>
           {% for i in vaccinator %}
-          <option value="{{i["sid"]}}" {% if i["sid"]==data["sid"] %} select {% endif %}>{{i["name"]}}</option>
+          <option value="{{i["sid"]}}" {% if i["sid"]|lower == data["vaccinator"]|lower %} selected {% endif %}>{{i["name"]}}</option>
           {% endfor %}
         </select>
       </div>