Updated language displayed
This commit is contained in:
@@ -2319,7 +2319,8 @@ def qr_checkin(qr_url):
|
|||||||
|
|
||||||
return jsonify({
|
return jsonify({
|
||||||
'success': False,
|
'success': False,
|
||||||
'message': f'You can check in again in {minutes_remaining} minutes. Last check-in was at {recent_checkin.check_in_time.strftime("%H:%M")}.'
|
'message': f"You can check in again in {minutes_remaining} minutes. Last check-in was at {recent_checkin.check_in_time.strftime("%H:%M")}. \n"
|
||||||
|
f"Puedes volver a registrarte en {minutes_remaining} minutos. El último registro fue a las {recent_checkin.check_in_time.strftime("%H:%M")}."
|
||||||
}), 400
|
}), 400
|
||||||
else:
|
else:
|
||||||
print(f"✅ 30-minute interval satisfied. Allowing new check-in for {employee_id}")
|
print(f"✅ 30-minute interval satisfied. Allowing new check-in for {employee_id}")
|
||||||
|
|||||||
+177
-166
@@ -9,10 +9,12 @@
|
|||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<style>
|
<style>
|
||||||
/* PRESERVED: All existing styles remain unchanged */
|
/* Enhanced CSS Variables with Orange Color Scheme */
|
||||||
:root {
|
:root {
|
||||||
--primary-color: #2563eb;
|
--primary-color: #2563eb;
|
||||||
--primary-hover: #1d4ed8;
|
--primary-hover: #1d4ed8;
|
||||||
|
--orange-color: #ea580c;
|
||||||
|
--orange-hover: #dc2626;
|
||||||
--success-color: #10b981;
|
--success-color: #10b981;
|
||||||
--warning-color: #f59e0b;
|
--warning-color: #f59e0b;
|
||||||
--error-color: #ef4444;
|
--error-color: #ef4444;
|
||||||
@@ -32,13 +34,24 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dynamic Background Based on Location Event */
|
||||||
body {
|
body {
|
||||||
font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
|
||||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
transition: var(--transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check In Event - Blue Background (Default) */
|
||||||
|
body.check-in {
|
||||||
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check Out Event - Orange Background */
|
||||||
|
body.check-out {
|
||||||
|
background: linear-gradient(135deg, #ff7849 0%, #ff4757 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.destination-container {
|
.destination-container {
|
||||||
@@ -93,20 +106,27 @@
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dynamic Header Icon Colors */
|
||||||
.header-icon {
|
.header-icon {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
background: linear-gradient(
|
|
||||||
135deg,
|
|
||||||
var(--primary-color),
|
|
||||||
var(--primary-hover)
|
|
||||||
);
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0 auto 1.5rem;
|
margin: 0 auto 1.5rem;
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
|
transition: var(--transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check In - Blue Icon */
|
||||||
|
.check-in .header-icon {
|
||||||
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Check Out - Orange Icon */
|
||||||
|
.check-out .header-icon {
|
||||||
|
background: linear-gradient(135deg, var(--orange-color), var(--orange-hover));
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-icon i {
|
.header-icon i {
|
||||||
@@ -130,10 +150,15 @@
|
|||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.location-info i {
|
/* Dynamic Location Info Icon Colors */
|
||||||
|
.check-in .location-info i {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.check-out .location-info i {
|
||||||
|
color: var(--orange-color);
|
||||||
|
}
|
||||||
|
|
||||||
.checkin-card {
|
.checkin-card {
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
@@ -166,13 +191,19 @@
|
|||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkin-header h2 i {
|
/* Dynamic Header Icon Colors */
|
||||||
|
.check-in .checkin-header h2 i {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.check-out .checkin-header h2 i {
|
||||||
|
color: var(--orange-color);
|
||||||
|
}
|
||||||
|
|
||||||
.checkin-header p {
|
.checkin-header p {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
@@ -189,13 +220,18 @@
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group label i {
|
/* Dynamic Label Icon Colors */
|
||||||
|
.check-in .form-group label i {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.check-out .form-group label i {
|
||||||
|
color: var(--orange-color);
|
||||||
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.875rem 1rem;
|
||||||
border: 2px solid var(--border-color);
|
border: 2px solid var(--border-color);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@@ -205,111 +241,111 @@
|
|||||||
|
|
||||||
.form-control:focus {
|
.form-control:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dynamic Focus Colors */
|
||||||
|
.check-in .form-control:focus {
|
||||||
border-color: var(--primary-color);
|
border-color: var(--primary-color);
|
||||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control.valid {
|
.check-out .form-control:focus {
|
||||||
border-color: var(--success-color);
|
border-color: var(--orange-color);
|
||||||
}
|
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
|
||||||
|
|
||||||
.form-control.invalid {
|
|
||||||
border-color: var(--error-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 100%;
|
display: inline-flex;
|
||||||
padding: 0.875rem 1.5rem;
|
|
||||||
border: none;
|
|
||||||
border-radius: var(--border-radius);
|
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: var(--transition);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
padding: 0.875rem 2rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
border: none;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: var(--transition);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
/* Dynamic Button Colors */
|
||||||
background: var(--primary-color);
|
.check-in .btn-primary {
|
||||||
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary:hover:not(:disabled) {
|
.check-in .btn-primary:hover {
|
||||||
background: var(--primary-hover);
|
background: linear-gradient(135deg, var(--primary-hover), #1e40af);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-1px);
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary:disabled {
|
.check-out .btn-primary {
|
||||||
background: #9ca3af;
|
background: linear-gradient(135deg, var(--orange-color), var(--orange-hover));
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.check-out .btn-primary:hover {
|
||||||
|
background: linear-gradient(135deg, var(--orange-hover), #b91c1c);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:disabled {
|
||||||
|
opacity: 0.6;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline {
|
/* Status Message Styles */
|
||||||
background: transparent;
|
|
||||||
color: var(--primary-color);
|
|
||||||
border: 2px solid var(--primary-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-outline:hover {
|
|
||||||
background: var(--primary-color);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-message {
|
.status-message {
|
||||||
margin-bottom: 1rem;
|
padding: 1rem;
|
||||||
padding: 0.875rem 1rem;
|
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
|
margin-bottom: 1rem;
|
||||||
display: none;
|
display: none;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
border-left: 4px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-message.show {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-message.success {
|
.status-message.success {
|
||||||
background: #ecfdf5;
|
background: #f0fdf4;
|
||||||
color: #065f46;
|
color: #15803d;
|
||||||
border: 1px solid #a7f3d0;
|
border-left-color: #15803d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-message.error {
|
.status-message.error {
|
||||||
background: #fef2f2;
|
background: #fef2f2;
|
||||||
color: #991b1b;
|
color: #dc2626;
|
||||||
border: 1px solid #fecaca;
|
border-left-color: #dc2626;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-message.warning {
|
.status-message.warning {
|
||||||
background: #fffbeb;
|
background: #fffbeb;
|
||||||
color: #92400e;
|
color: #d97706;
|
||||||
border: 1px solid #fde68a;
|
border-left-color: #d97706;
|
||||||
}
|
|
||||||
|
|
||||||
.status-message.info {
|
|
||||||
background: #eff6ff;
|
|
||||||
color: #1e40af;
|
|
||||||
border: 1px solid #bfdbfe;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-content {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Success Card Styles */
|
||||||
.success-card {
|
.success-card {
|
||||||
|
display: none;
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: var(--shadow-lg);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
display: none;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(20px);
|
transform: translateY(20px);
|
||||||
transition: all 0.6s ease-out;
|
transition: all 0.6s ease-out 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.success-card.active {
|
.success-card.active {
|
||||||
@@ -319,44 +355,34 @@
|
|||||||
|
|
||||||
.success-header {
|
.success-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.success-icon {
|
.success-icon {
|
||||||
width: 80px;
|
width: 60px;
|
||||||
height: 80px;
|
height: 60px;
|
||||||
background: linear-gradient(135deg, var(--success-color), #059669);
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0 auto 1.5rem;
|
margin: 0 auto 1rem;
|
||||||
animation: successPulse 2s ease-in-out;
|
font-size: 1.5rem;
|
||||||
}
|
|
||||||
|
|
||||||
.success-icon i {
|
|
||||||
font-size: 2.5rem;
|
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes successPulse {
|
/* Dynamic Success Icon Colors */
|
||||||
0% {
|
.check-in .success-icon {
|
||||||
transform: scale(0.8);
|
background: linear-gradient(135deg, var(--success-color), #047857);
|
||||||
opacity: 0;
|
}
|
||||||
}
|
|
||||||
50% {
|
.check-out .success-icon {
|
||||||
transform: scale(1.1);
|
background: linear-gradient(135deg, var(--orange-color), var(--orange-hover));
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: scale(1);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.success-title {
|
.success-title {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--success-color);
|
color: var(--text-primary);
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -365,6 +391,26 @@
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Enhanced Checkin Sequence Display */
|
||||||
|
.checkin-sequence {
|
||||||
|
color: white;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dynamic Sequence Colors */
|
||||||
|
.check-in .checkin-sequence {
|
||||||
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
|
||||||
|
}
|
||||||
|
|
||||||
|
.check-out .checkin-sequence {
|
||||||
|
background: linear-gradient(135deg, var(--orange-color), var(--orange-hover));
|
||||||
|
}
|
||||||
|
|
||||||
.success-details {
|
.success-details {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
@@ -378,7 +424,16 @@
|
|||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
background: var(--background-light);
|
background: var(--background-light);
|
||||||
border-radius: 0.375rem;
|
border-radius: 0.375rem;
|
||||||
border-left: 4px solid var(--primary-color);
|
border-left: 4px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dynamic Detail Row Border Colors */
|
||||||
|
.check-in .detail-row {
|
||||||
|
border-left-color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.check-out .detail-row {
|
||||||
|
border-left-color: var(--orange-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-label {
|
.detail-label {
|
||||||
@@ -393,22 +448,6 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NEW: Enhanced styles for multiple check-in information */
|
|
||||||
.checkin-sequence {
|
|
||||||
background: linear-gradient(
|
|
||||||
135deg,
|
|
||||||
var(--primary-color),
|
|
||||||
var(--primary-hover)
|
|
||||||
);
|
|
||||||
color: white;
|
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
border-radius: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
font-weight: 600;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.interval-info {
|
.interval-info {
|
||||||
background: #f0f9ff;
|
background: #f0f9ff;
|
||||||
border: 1px solid #bae6fd;
|
border: 1px solid #bae6fd;
|
||||||
@@ -430,19 +469,18 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.check-in-again-section {
|
.fade-transition {
|
||||||
margin-top: 1.5rem;
|
opacity: 0;
|
||||||
padding-top: 1.5rem;
|
transform: translateY(20px);
|
||||||
border-top: 1px solid #e0e4e7;
|
transition: all 0.6s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.check-in-again-text {
|
.fade-transition.active {
|
||||||
margin-bottom: 1rem;
|
opacity: 1;
|
||||||
color: var(--text-secondary);
|
transform: translateY(0);
|
||||||
font-size: 0.9rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive Design */
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.destination-container {
|
.destination-container {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
@@ -472,22 +510,12 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-transition {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(20px);
|
|
||||||
transition: all 0.6s ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fade-transition.active {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="{% if qr_code.location_event == 'Check Out' %}check-out{% else %}check-in{% endif %}">
|
||||||
<div class="destination-container">
|
<div class="destination-container">
|
||||||
<!-- Language Selector
|
<!-- Language Selector (Commented out in original) -->
|
||||||
|
<!--
|
||||||
<div class="language-selector">
|
<div class="language-selector">
|
||||||
<button
|
<button
|
||||||
id="languageToggle"
|
id="languageToggle"
|
||||||
@@ -500,7 +528,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<!-- Header Section -->
|
|
||||||
|
<!-- Header Section with Dynamic Styling -->
|
||||||
<div class="destination-header fade-transition active">
|
<div class="destination-header fade-transition active">
|
||||||
<div class="header-icon">
|
<div class="header-icon">
|
||||||
<i class="fas fa-qrcode"></i>
|
<i class="fas fa-qrcode"></i>
|
||||||
@@ -524,19 +553,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Check-in Form -->
|
<!-- Check-in Form with Dynamic Styling -->
|
||||||
<div class="checkin-card fade-transition active">
|
<div class="checkin-card fade-transition active">
|
||||||
<div class="checkin-header">
|
<div class="checkin-header">
|
||||||
<!--
|
|
||||||
<h2>
|
|
||||||
<i class="fas fa-user-check"></i>
|
|
||||||
<span
|
|
||||||
data-en="Attendance Tracking"
|
|
||||||
data-es="Seguimiento de Asistencia"
|
|
||||||
>Attendance Tracking</span
|
|
||||||
>
|
|
||||||
</h2>
|
|
||||||
-->
|
|
||||||
<p
|
<p
|
||||||
data-en="Please enter your Employee ID / Por favor ingrese su ID de empleado"
|
data-en="Please enter your Employee ID / Por favor ingrese su ID de empleado"
|
||||||
data-es="Por favor ingrese su ID de empleado"
|
data-es="Por favor ingrese su ID de empleado"
|
||||||
@@ -590,7 +609,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Success Card (Enhanced for Multiple Check-ins) -->
|
<!-- Success Card with Dynamic Styling -->
|
||||||
<div id="successCard" class="success-card">
|
<div id="successCard" class="success-card">
|
||||||
<div class="success-header">
|
<div class="success-header">
|
||||||
<div class="success-icon">
|
<div class="success-icon">
|
||||||
@@ -604,15 +623,15 @@
|
|||||||
>
|
>
|
||||||
</h2>
|
</h2>
|
||||||
<p class="success-subtitle">
|
<p class="success-subtitle">
|
||||||
<span
|
<span style="white-space: pre-wrap;"
|
||||||
data-en="Your attendance has been recorded"
|
data-en="Your attendance has been recorded / Su asistencia ha sido registrada"
|
||||||
data-es="Su asistencia ha sido registrada"
|
data-es="Su asistencia ha sido registrada"
|
||||||
>Your attendance has been recorded</span
|
>Your attendance has been recorded / Su asistencia ha sido registrada</span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- NEW: Check-in Sequence Display -->
|
<!-- Check-in Sequence Display with Dynamic Styling -->
|
||||||
<div id="successCheckinSequence" class="checkin-sequence">
|
<div id="successCheckinSequence" class="checkin-sequence">
|
||||||
{{ qr_code.location_event }} #1
|
{{ qr_code.location_event }} #1
|
||||||
</div>
|
</div>
|
||||||
@@ -621,23 +640,23 @@
|
|||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<span
|
<span
|
||||||
class="detail-label"
|
class="detail-label"
|
||||||
data-en="Employee ID"
|
data-en="Employee ID / ID de Empleado"
|
||||||
data-es="ID Empleado"
|
data-es="ID Empleado"
|
||||||
>Employee ID</span
|
>Employee ID / ID de Empleado</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successEmployeeId">-</span>
|
<span class="detail-value" id="successEmployeeId">-</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<span
|
<span
|
||||||
class="detail-label"
|
class="detail-label"
|
||||||
data-en="Location/Building"
|
data-en="Location/Building - Ubicación/Edificio"
|
||||||
data-es="Ubicación/Edificio"
|
data-es="Ubicación/Edificio"
|
||||||
>Location/Building</span
|
>Location/Building - Ubicación/Edificio</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successLocation">-</span>
|
<span class="detail-value" id="successLocation">-</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<span class="detail-label" data-en="Event" data-es="Evento"
|
<span class="detail-label" data-en="Event / Evento" data-es="Evento"
|
||||||
>Event</span
|
>Event</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successEvent">-</span>
|
<span class="detail-value" id="successEvent">-</span>
|
||||||
@@ -645,14 +664,14 @@
|
|||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<span
|
<span
|
||||||
class="detail-label"
|
class="detail-label"
|
||||||
data-en="Submission Time"
|
data-en="Submission Time / Hora de presentación"
|
||||||
data-es="Hora de presentación"
|
data-es="Hora de presentación"
|
||||||
>{{ qr_code.location_event }} Time</span
|
>{{ qr_code.location_event }} Time</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successCheckInTime">-</span>
|
<span class="detail-value" id="successCheckInTime">-</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<span class="detail-label" data-en="Date" data-es="Fecha"
|
<span class="detail-label" data-en="Date / Fecha" data-es="Fecha"
|
||||||
>Date</span
|
>Date</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successCheckInDate">-</span>
|
<span class="detail-value" id="successCheckInDate">-</span>
|
||||||
@@ -664,10 +683,7 @@
|
|||||||
<span class="detail-value" id="successDeviceInfo">-</span>
|
<span class="detail-value" id="successDeviceInfo">-</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row" style="display: none" id="coordinatesRow">
|
<div class="detail-row" style="display: none" id="coordinatesRow">
|
||||||
<span
|
<span class="detail-label" data-en="Coordinates" data-es="Coordenadas"
|
||||||
class="detail-label"
|
|
||||||
data-en="Coordinates"
|
|
||||||
data-es="Coordenadas"
|
|
||||||
>Coordinates</span
|
>Coordinates</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successCoordinates">-</span>
|
<span class="detail-value" id="successCoordinates">-</span>
|
||||||
@@ -679,21 +695,16 @@
|
|||||||
<span class="detail-value" id="successAddress">-</span>
|
<span class="detail-value" id="successAddress">-</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row" style="display: none" id="accuracyRow">
|
<div class="detail-row" style="display: none" id="accuracyRow">
|
||||||
<span
|
<span class="detail-label" data-en="Location Accuracy" data-es="Precisión"
|
||||||
class="detail-label"
|
|
||||||
data-en="Location Accuracy"
|
|
||||||
data-es="Precisión de Ubicación"
|
|
||||||
>Location Accuracy</span
|
>Location Accuracy</span
|
||||||
>
|
>
|
||||||
<span class="detail-value" id="successLocationAccuracy">-</span>
|
<span class="detail-value" id="successLocationAccuracy">-</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Check In Again Section will be dynamically added here -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- JavaScript -->
|
<!-- Include Original JavaScript File -->
|
||||||
<script src="{{ url_for('static', filename='js/qr_destination.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/qr_destination.js') }}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user