Pushing to 19. Covid ack-wall. Fr lang fix. Function repair. More work on users/sites mgmt.
This commit is contained in:
95
signin.php
95
signin.php
@@ -56,46 +56,47 @@
|
||||
<h2><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['SIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<form name="form-signin" class="form-signin" action="signin_2.php" method="post">
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon3"><?php echo $transLang['NAME']; ?>:</span>
|
||||
</div>
|
||||
<input type="text" id="firstname" name="firstname" class="form-control" placeholder="<?php echo $transLang['FIRST']; ?>" required autofocus>
|
||||
<input type="text" id="lastname" name="lastname" class="form-control" placeholder="<?php echo $transLang['LAST']; ?>" required autofocus>
|
||||
</div>
|
||||
<form name="form-signin" class="needs-validation" action="signin_1.php" method="post" novalidate>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q1" required>
|
||||
<label class="form-check-label" for="q1"><b>I have NOT experienced any of the following symptoms in the past 48 hours.</b><br>Fever, chills, cough, shortness of breath, fatigue, muscle or body aches, headache, new loss of taste or smell, sore throat, congestion or runny nose, nausea or vomiting, diarrhea.</label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon3"><?php echo $transLang['CARNUM']; ?></span>
|
||||
</div>
|
||||
<input type="text" id="company" name="carnum" class="form-control" placeholder="<?php echo $transLang['CARNUM']; ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon3"><?php echo $transLang['SSANUM']; ?></span>
|
||||
</div>
|
||||
<input type="text" id="company" name="ssanum" class="form-control" placeholder="<?php echo $transLang['SSANUM']; ?>" required autofocus>
|
||||
</div>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q2" required>
|
||||
<label class="form-check-label" for="q2"><b>I am NOT isolating or quarantining due to a positive test for COVID-19 nor do I believe that I may be sick with COVID-19.</b></label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }; ?>
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon3"><?php echo $transLang['COMPANY']; ?></span>
|
||||
</div>
|
||||
<input type="text" id="company" name="company" class="form-control" placeholder="<?php echo $transLang['COMPANY']; ?>" required autofocus>
|
||||
</div>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q3" required>
|
||||
<label class="form-check-label" for="q3"><b>I have NOT been in close physical contact in the last 14 days with:</b><br>Anyone who is known to have laboratory-confirmed COVID-19? OR Anyone who has any symptoms consistent with COVID-19?</label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q4" required>
|
||||
<label class="form-check-label" for="q4"><b>I am NOT currently waiting on the results of a COVID-19 test.</b><br>IMPORTANT: ANSWER "NO" IF YOU ARE WAITING ON THE RESULTS OF A PRE-TRAVEL OR POST-TRAVEL COVID-19 TEST</label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q5" required>
|
||||
<label class="form-check-label" for="q5"><b>I have NOT traveled in the past 10 days.</b><br>Travel is defined as any trip that is overnight AND on public transportation (plane, train, bus, Uber, Lyft, cab, etc.) OR any trip that is overnight AND with people who are not in your household.</label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-row">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" value="" id="q6" required>
|
||||
<label class="form-check-label" for="q6"><b>I certify that my responses are true and correct.</b><br>All visitors must answer the above questions and then certify their answers are true and correct.</label>
|
||||
<div class="invalid-feedback">You must answer to proceed.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -107,5 +108,27 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
||||
(function() {
|
||||
'use strict';
|
||||
window.addEventListener('load', function() {
|
||||
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
||||
var forms = document.getElementsByClassName('needs-validation');
|
||||
// Loop over them and prevent submission
|
||||
var validation = Array.prototype.filter.call(forms, function(form) {
|
||||
form.addEventListener('submit', function(event) {
|
||||
if (form.checkValidity() === false) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
form.classList.add('was-validated');
|
||||
}, false);
|
||||
});
|
||||
}, false);
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
<!-- CONTENT END -->
|
||||
<?php }; require_once("inc/footer.inc.php");
|
||||
|
||||
Reference in New Issue
Block a user