Files
matrix/build/WebContent/WEB-INF/app/operation/tools/holiday.jsp

86 lines
4.1 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@page language="java" session="true" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html lang="en">
<head>
<meta charset="ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cygnus 1.0 | Holiday Information</title>
<link href="/matrix/css/bootstrap-5.3.8.min.css" rel="stylesheet" type="text/css" />
<link href="/matrix/css/matrix-v2.css?v=6" rel="stylesheet" type="text/css" />
<link href="/matrix/css/dialog-form-v3.css?v=1" rel="stylesheet" type="text/css" />
<script src="/matrix/js/lib/constants.js" type="text/javascript"></script>
<script src="/matrix/js/jquery1.7.2.js" type="text/javascript"></script>
<script src="/matrix/js/ui/uifuncs.js" type="text/javascript"></script>
<script src="/matrix/js/lib/jsfuncs.js" type="text/javascript"></script>
<script src="/matrix/js/ui/msgdialog.js" type="text/javascript"></script>
<script src="/matrix/js/ui/select.js" type="text/javascript"></script>
<script src="/matrix/js/appjs/verifier.js" type="text/javascript"></script>
<script src="/matrix/js/validator.js" type="text/javascript"></script>
<script src="/matrix/js/matrix-dialog-child.js" type="text/javascript"></script>
<script src="/matrix/js/matrix-accessibility-v1.js?v=1" defer></script>
<link href="/matrix/css/matrix-theme-v2.css?v=4" rel="stylesheet" type="text/css" />
</head>
<body class="matrix-v2 matrix-dialog-form">
<main class="matrix-dialog-form__content">
<form:form method="post" name="holiday" id="holiday" modelAttribute="holiday">
<section class="card matrix-dialog-form__card">
<div class="card-header d-flex align-items-center gap-2">
<img src="/matrix/images/cutlist.png" alt="" width="16" height="16" />
<span>Holiday Information</span>
</div>
<div class="card-body">
<div class="row g-3">
<div class="col-5">
<label for="date" class="form-label required">Date</label>
<form:input path="date" maxlength="10" cssClass="form-control form-control-sm" placeholder="DD/MM/YYYY" onkeydown="return addSlashes(this,event)" onblur="validate(this,'t','Date')" />
</div>
<div class="col-7">
<label for="reason" class="form-label required">Reason</label>
<form:input path="reason" maxlength="30" cssClass="form-control form-control-sm" onblur="validate(this,'t','SplInstruction')" />
</div>
<div class="col-12 d-flex gap-4">
<div class="form-check mb-2">
<form:checkbox path="useintatcalcd" cssClass="form-check-input" />
<label class="form-check-label" for="useintatcalcd">Use in document TAT</label>
</div>
<div class="form-check">
<form:checkbox path="useintatcalcv" cssClass="form-check-input" />
<label class="form-check-label" for="useintatcalcv">Use in verification TAT</label>
</div>
</div>
</div>
</div>
</section>
<footer class="matrix-dialog-form__actions">
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="MatrixDialog.close(0)">Cancel</button>
<button type="button" class="btn btn-primary btn-sm" name="btnsave" id="btnsave" accesskey="S" onclick="ValidateSubmitHoliday()">Save</button>
</footer>
<form:hidden path="suuid" />
<form:hidden path="uid" />
<input type="hidden" id="usid" value="${Sessvals.getUserID()}" />
<input type="hidden" id="invalidfields" value="0" />
</form:form>
</main>
<script type="text/javascript">
document.getElementById("date").focus();
function ValidateSubmitHoliday() {
validate(document.getElementById("date"), "t", "Date");
validate(document.getElementById("reason"), "t", "SplInstruction");
if (checkForm()) {
SubmitForm("holidayupdate", "_parent", "holiday");
}
return false;
}
</script>
<c:if test="${not empty msg}">
<script type="text/javascript">CallMessage('${msg}', 3000, 200, 300);</script>
<c:if test="${stat==true}">
<script type="text/javascript">MatrixDialog.close(1);</script>
</c:if>
</c:if>
</body>
</html>