Commit 4406a0cd authored by Deep Dey's avatar Deep Dey

chore: add page-breaks after each admission form data

parent a262bc46
......@@ -9,9 +9,11 @@
margin: 0;
padding: 0;
}
body {
width: 100%;
}
.container {
display: flex;
justify-content: center;
......@@ -19,6 +21,7 @@
flex-direction: column;
width: 100%;
}
.table-container {
width: 100%;
padding: 20px;
......@@ -28,37 +31,46 @@
justify-content: center;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 10px;
text-align: left;
}
th {
background-color: #4CAF50;
color: white;
font-size: 14px;
}
td {
background-color: #f9f9f9;
border-bottom: 1px solid #ddd;
font-size: 12px;
}
tr:hover td {
background-color: #f1f1f1;
}
tr:nth-child(even) td {
background-color: #f2f2f2;
}
th:first-child, td:first-child {
width: 30%;
}
th:nth-child(2), td:nth-child(2) {
width: 70%;
}
.title {
/*text-align: center;*/
font-size: 18px;
......@@ -66,12 +78,14 @@
color: #333;
font-weight: bold;
}
.page-break { page-break-after: always; }
</style>
</head>
<body>
<div class="container" th:each="admissionForm : ${admissionFormList}">
<div class="table-container">
<div class="table-container page-break">
<div class="title">Candidate Information (<span th:text="${admissionForm.fullName}"></span>)</div>
<table>
<tr>
......
......@@ -201,6 +201,16 @@ $(document).ready(function () {
checkedValues.push($(this).data('id'));
});
if (checkedValues.length == 0) {
$('#messageModal .modal-title').text('Error');
$('#messageModal .modal-body').text(
'Please select at least one form to download admission data.'
);
$('#messageModal').modal('show');
return;
}
window
.open(
BASE_URL_LAMARTIN +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment