CHANGE_GIT_IGNORE
This commit is contained in:
parent
266a1ceacc
commit
4b3793a645
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,7 +22,7 @@ writable/debugbar/*
|
|||||||
writable/**/*.db
|
writable/**/*.db
|
||||||
writable/**/*.sqlite
|
writable/**/*.sqlite
|
||||||
|
|
||||||
writable/e_card_template/*
|
# writable/e_card_template/*
|
||||||
# !writable/e_card_template/.gitkeep
|
# !writable/e_card_template/.gitkeep
|
||||||
|
|
||||||
writable/tmp/*
|
writable/tmp/*
|
||||||
|
|||||||
91
writable/e_card_template/common.html
Normal file
91
writable/e_card_template/common.html
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
}
|
||||||
|
.ecard-container {
|
||||||
|
width: 100%;
|
||||||
|
display: table; /* Dompdf supports table better than flex */
|
||||||
|
table-layout: fixed;
|
||||||
|
border-spacing: 10px; /* Gap between front & back */
|
||||||
|
}
|
||||||
|
.ecard-section {
|
||||||
|
display: table-cell;
|
||||||
|
width: 50%;
|
||||||
|
height: 200px; /* Fixed height */
|
||||||
|
max-height: 200px;
|
||||||
|
font-size: 9px;
|
||||||
|
background-size: contain;
|
||||||
|
background-position: top center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
vertical-align: top;
|
||||||
|
padding: 12px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.ecard-table {
|
||||||
|
font-size: 9px;
|
||||||
|
line-height: 14px; /* 🔹 Reduced line height */
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
.ecard-table td {
|
||||||
|
padding: 0px 3px; /* 🔹 Reduced vertical padding */
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
font-weight: bold;
|
||||||
|
width: 70px; /* Fixed width for alignment */
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.colon {
|
||||||
|
width: 5px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.value {
|
||||||
|
width: auto;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="ecard-container">
|
||||||
|
<!-- FRONT CARD -->
|
||||||
|
<div class="ecard-section front" style="background-image: url('{FRONT_CARD}');">
|
||||||
|
<div style="margin-left: 100px; margin-top: 20px; position: relative; top: -8px;">
|
||||||
|
<table class="ecard-table">
|
||||||
|
<tr><td class="label">Name</td><td class="colon">:</td><td class="value">{NAME}</td></tr>
|
||||||
|
<tr><td class="label">Gender</td><td class="colon">:</td><td class="value">{GENDER}</td></tr>
|
||||||
|
<tr><td class="label">D.O.B</td><td class="colon">:</td><td class="value">{DOB}</td></tr>
|
||||||
|
<tr><td class="label">Relationship</td><td class="colon">:</td><td class="value">{RELATION}</td></tr>
|
||||||
|
<tr><td class="label">Policy No</td><td class="colon">:</td><td class="value">{POLICY_NO}</td></tr>
|
||||||
|
<tr><td class="label">TPA/UHID</td><td class="colon">:</td><td class="value">{TPA_ID}</td></tr>
|
||||||
|
<tr><td class="label">Policy Start</td><td class="colon">:</td><td class="value">{POLICY_START_DATE}</td></tr>
|
||||||
|
<tr><td class="label">Policy End</td><td class="colon">:</td><td class="value">{POLICY_DATE}</td></tr>
|
||||||
|
<tr><td class="label">Insurer</td><td class="colon">:</td><td class="value">{INSURER_NAME}</td></tr>
|
||||||
|
<tr><td class="label">TPA</td><td class="colon">:</td><td class="value">{TPA_NAME}</td></tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- BACK CARD -->
|
||||||
|
<div class="ecard-section back" style="background-image: url('{BACK_CARD}');">
|
||||||
|
<div style="margin-left: 110px; margin-top: 15px; font-size: 9px; line-height: 11px; position: relative; top: -8px;">
|
||||||
|
<div>
|
||||||
|
<span style="color: #AA292E;">For support, Please contact us:</span><br>
|
||||||
|
{LEVELS}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="margin-top: -10px;">
|
||||||
|
<span style="color: #AA292E;">For cashless claims:</span><br>
|
||||||
|
Share a valid ID with this E-card at the Hospital Insurance Desk.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
149
writable/e_card_template/common_1.html
Normal file
149
writable/e_card_template/common_1.html
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
@media print {
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.ecard-container {
|
||||||
|
width: 97%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding-top: 35px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.ecard-section {
|
||||||
|
width: 50%;
|
||||||
|
min-height: 255px;
|
||||||
|
padding-left: 15px;
|
||||||
|
font-size: 13px;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
.front, .back {
|
||||||
|
break-inside: avoid;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen {
|
||||||
|
.ecard-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 10px;
|
||||||
|
width: 840px;
|
||||||
|
}
|
||||||
|
.ecard-section {
|
||||||
|
width: 420px;
|
||||||
|
min-height: 255px;
|
||||||
|
padding-left: 15px;
|
||||||
|
font-size: 13px;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
min-width: 100px; /* Adjust based on your needs */
|
||||||
|
}
|
||||||
|
.text-wrap {
|
||||||
|
font-family: sans-serif;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="ecard-container">
|
||||||
|
<div class="ecard-section front" style="background-image: url('{FRONT_CARD}');">
|
||||||
|
<div style="margin-left: 111px; margin-top: 35px; line-height: 18px; font-size: 10px;">
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Name</span>
|
||||||
|
<span style="margin-left: 53px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{NAME}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Gender</span>
|
||||||
|
<span style="margin-left: 45px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{GENDER}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>D.O.B</span>
|
||||||
|
<span style="margin-left: 53px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{DOB}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Relationship</span>
|
||||||
|
<span style="margin-left: 21px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{RELATION}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Policy No</span>
|
||||||
|
<span style="margin-left: 36px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{POLICY_NO}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>TPA/UHID</span>
|
||||||
|
<span style="margin-left: 36px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{TPA_ID}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Policy Start Date</span>
|
||||||
|
<span style="margin-left: 3px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{POLICY_START_DATE}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Policy End Date</span>
|
||||||
|
<span style="margin-left: 8px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{POLICY_DATE}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>Insurer</span>
|
||||||
|
<span style="margin-left: 49px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{INSURER_NAME}</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 3px;">
|
||||||
|
<div class="label">
|
||||||
|
<span>TPA</span>
|
||||||
|
<span style="margin-left: 63px;">:</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-wrap">{TPA_NAME}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ecard-section back" style="background-image: url('{BACK_CARD}');">
|
||||||
|
<div style="padding-left: 20px; margin-left: 90px; margin-top: 25px;">
|
||||||
|
<div style="font-size: 10px;">
|
||||||
|
<span style="color: #AA292E; font-family: sans-serif;">For support, Please contact us:</span> <br>
|
||||||
|
{LEVELS}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-size: 10px;">
|
||||||
|
<span style="color: #AA292E; font-family: sans-serif;">For cashless claims:</span><br>
|
||||||
|
<span style="font-family: sans-serif;">Share a valid ID with this E-card at the Hospital Insurance Desk.</span><br><br><br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user