vwf toggle required

This commit is contained in:
Josh North 2021-06-22 12:44:08 -04:00
parent 654e1d70c6
commit e7030ca0d1

View File

@ -870,7 +870,7 @@ if ($db_vendorinfo_workcompleted === 1 && $db_vendorinfo_sitecleanup === 1) { $f
<div class="col d-grid gap-2">
<div class="form-check form-switch">
<input type="hidden" name="db_vendorinfo_workcompleted" value="0" />
<input class="form-check-input" name="db_vendorinfo_workcompleted" value="1" type="checkbox" id="db_vendorinfo_workcompleted" <?php if (isset($db_vendorinfo_workcompleted) && $db_vendorinfo_workcompleted === 1) {echo "checked";}?>>
<input class="form-check-input" name="db_vendorinfo_workcompleted" value="1" type="checkbox" id="db_vendorinfo_workcompleted" <?php if (isset($db_vendorinfo_workcompleted) && $db_vendorinfo_workcompleted === 1) {echo "checked";}?> required/>
<label class="form-check-label" for="db_vendorinfo_workcompleted"><span class="d-inline-block" tabindex="0" data-bs-toggle="popover" data-bs-trigger="hover focus" data-bs-content="<?php echo $transLang['STR_VENDORINFO_WORKCOMPLETED_DESC']; ?>"><?php echo $transLang['STR_VENDORINFO_WORKCOMPLETED_TITLE']; ?></span></label>
</div>
</div>
@ -879,7 +879,7 @@ if ($db_vendorinfo_workcompleted === 1 && $db_vendorinfo_sitecleanup === 1) { $f
<div class="col d-grid gap-2">
<div class="form-check form-switch">
<input type="hidden" name="db_vendorinfo_sitecleanup" value="0" />
<input class="form-check-input" name="db_vendorinfo_sitecleanup" value="1" type="checkbox" id="db_vendorinfo_sitecleanup" <?php if (isset($db_vendorinfo_sitecleanup) && $db_vendorinfo_sitecleanup === 1) {echo "checked";}?>>
<input class="form-check-input" name="db_vendorinfo_sitecleanup" value="1" type="checkbox" id="db_vendorinfo_sitecleanup" <?php if (isset($db_vendorinfo_sitecleanup) && $db_vendorinfo_sitecleanup === 1) {echo "checked";}?> required/>
<label class="form-check-label" for="db_vendorinfo_sitecleanup"><span class="d-inline-block" tabindex="0" data-bs-toggle="popover" data-bs-trigger="hover focus" data-bs-content="<?php echo $transLang['STR_VENDORINFO_SITECLEANUP_DESC']; ?>"><?php echo $transLang['STR_VENDORINFO_SITECLEANUP_TITLE']; ?></span></label>
</div>
</div>