fix guard page booboo, change sign in cust/vendor button colors

This commit is contained in:
Josh North 2021-07-23 03:18:35 -04:00
parent 4d1471ace8
commit 83d9f5c7c0
2 changed files with 8 additions and 7 deletions

View File

@ -999,7 +999,7 @@ if ($db_vendorinfo_workcompleted === 1 && $db_vendorinfo_sitecleanup === 1) { $f
</div> </div>
</td> </td>
<?php } else { ?> <?php } else { ?>
<?php if($isvendor===1 && $initialvendorformcomplete===1) { ?> <?php if($isvendor===1 && $initialvendorformcomplete===0) { echo ''; } else { ?>
<div class="input-group input-group-sm mb-0"> <div class="input-group input-group-sm mb-0">
<span class="input-group-text"><?php echo $transLang['ID_TYPE']; ?></span> <span class="input-group-text"><?php echo $transLang['ID_TYPE']; ?></span>
<select class="form-control form-control-sm bg-white form-select<?php if( isset($id_type_error) && $id_type_error===1 && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" id="id_type-<?php echo $visitid; ?>" name="id_type"> <select class="form-control form-control-sm bg-white form-select<?php if( isset($id_type_error) && $id_type_error===1 && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" id="id_type-<?php echo $visitid; ?>" name="id_type">
@ -1027,8 +1027,7 @@ if ($db_vendorinfo_workcompleted === 1 && $db_vendorinfo_sitecleanup === 1) { $f
} }
}); });
$('#id_type-<?php echo $visitid; ?>').trigger("change"); $('#id_type-<?php echo $visitid; ?>').trigger("change");
</script></td> </script>
<?php } ?>
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?> <?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?>
<div class="input-group input-group-sm mb-0"> <div class="input-group input-group-sm mb-0">
<span class="input-group-text"><?php echo $transLang['COUNTRY']; ?></span> <span class="input-group-text"><?php echo $transLang['COUNTRY']; ?></span>
@ -1056,10 +1055,12 @@ if ($db_vendorinfo_workcompleted === 1 && $db_vendorinfo_sitecleanup === 1) { $f
} }
}); });
$('#citizen-<?php echo $visitid; ?>').trigger("change"); $('#citizen-<?php echo $visitid; ?>').trigger("change");
</script></td> </script>
<?php } ?> <?php } ?>
<?php } ?>
<td class="small"> <td class="small">
<?php if($isvendor===1 && $initialvendorformcomplete===1) { ?> <?php if($isvendor===1 && $initialvendorformcomplete===0) { echo ''; } else { ?>
<div class="input-group input-group-sm mb-0"> <div class="input-group input-group-sm mb-0">
<span class="input-group-text"><?php echo $transLang['BADGE']; ?></span> <span class="input-group-text"><?php echo $transLang['BADGE']; ?></span>
<input type="text" id="badge" name="badge" class="form-control form-control-sm bg-white<?php if( isset($badge_error) && $badge_error===1 && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" autofocus maxlength="15"> <input type="text" id="badge" name="badge" class="form-control form-control-sm bg-white<?php if( isset($badge_error) && $badge_error===1 && $_POST['approvevisit'] == $visitid ) { echo " is-invalid"; } ?>" autofocus maxlength="15">

View File

@ -198,10 +198,10 @@ if(empty($form_data['fd_formAction'])){
<div class="col d-grid gap-2"> <div class="col d-grid gap-2">
<input type="hidden" name="fd_formAction" id="fd_formAction" value="nameandcompany" /> <input type="hidden" name="fd_formAction" id="fd_formAction" value="nameandcompany" />
<input type="hidden" name="fd_siteId" id="fd_siteId" value="<?=$form_data['fd_siteId']?>" /> <input type="hidden" name="fd_siteId" id="fd_siteId" value="<?=$form_data['fd_siteId']?>" />
<button type="submit" id="fd_isVendor" class="btn btn-lg btn-outline-primary" name="fd_isVendor" value="0">&nbsp;<br><?=$transLang['CUSTOMER']?><br>&nbsp;</button> <button type="submit" id="fd_isVendor" class="btn btn-lg btn-success" name="fd_isVendor" value="0">&nbsp;<br><?=$transLang['CUSTOMER']?><br>&nbsp;</button>
</div> </div>
<div class="col d-grid gap-2"> <div class="col d-grid gap-2">
<button type="submit" id="fd_isVendor" class="btn btn-lg btn-outline-primary" name="fd_isVendor" value="1">&nbsp;<br><?=$transLang['STR_VENDORINFO_VENDOR_TITLE']?><br>&nbsp;</button> <button type="submit" id="fd_isVendor" class="btn btn-lg btn-primary" name="fd_isVendor" value="1">&nbsp;<br><?=$transLang['STR_VENDORINFO_VENDOR_TITLE']?><br>&nbsp;</button>
</div> </div>
</div> </div>
</form> </form>