forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html.twig
664 lines (595 loc) · 29.8 KB
/
home.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
{% extends "portal/base.html.twig" %}
{% block head %}
{{ parent() }}
<link href="../portal/sign/css/signer_modal.css?v={{ assetVersion | attr_url }}" rel="stylesheet" />
<script src="../interface/main/tabs/js/dialog_utils.js?v={{ assetVersion | attr_url }}"></script>
<script src="../portal/sign/assets/signature_pad.umd.js?v={{ assetVersion | attr_url }}"></script>
<script src="../portal/sign/assets/signer_api.js?v={{ assetVersion | attr_url }}"></script>
{% if payment_gateway == 'Stripe' %}
<script src="https://js.stripe.com/v3/"></script>
{% endif %}
{% if payment_gateway == 'AuthorizeNet' %}
{% if gateway_mode_production %}
<script src="https://js.authorize.net/v1/Accept.js"></script>
{% else %}
<script src="https://jstest.authorize.net/v1/Accept.js"></script>
{% endif %}
{% endif %}
<script>
var cpid = {{ patientID | js_escape }},
cuser = {{ user | js_escape }},
webRoot = {{ web_root | js_escape }},
ptName = {{ patientName | js_escape }},
whereto = {{ whereto | js_escape }},
siteId = {{ site_id | js_escape }},
inactivityTimeOut = {{ portal_timeout | js_escape }},
languageDefinitions = {{ language_defs | js_escape }},
webroot_url = webRoot,
tab_mode = true,
isPortal = 1;
function restoreSession() {
return true;
}
i18next.init({
lng: 'selected',
debug: false,
nsSeparator: false,
keySeparator: false,
resources: {
selected: {
translation: languageDefinitions
}
}
}).catch(error => {
console.log(error.message);
});
function persist(where, portalInit = false) {
if (where[0]) {
if (where[0] !== '#') {
return;
}
}
whereto = where;
fetch('lib/persist.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(
{
'csrf_token_form': {{ csrfUtils | js_escape }},
'where': where,
'portal_init': portalInit
}
)
});
}
const activityMonitor = function () {
let timeOut,
warnTimeOut,
time;
if (Number(inactivityTimeOut) < 300) {
inactivityTimeOut = 900; // 15 minutes. < 5 minutes is too short.
}
time = inactivityTimeOut * 1000;
window.onload = resetLogOutTimer;
window.onmousemove = resetLogOutTimer;
window.onmousedown = resetLogOutTimer;
window.ontouchstart = resetLogOutTimer;
window.ontouchmove = resetLogOutTimer;
window.onclick = resetLogOutTimer;
window.onkeydown = resetLogOutTimer;
window.addEventListener('scroll', resetLogOutTimer, true);
function logoutWarn() {
const warnMsg = xl('Your current log on session will expire in 30 seconds.') + '<br />' + xl('Please take action to prevent being logged out!');
syncAlertMsg(warnMsg, 28000); // from utility.js
}
function logout() {
let logoutUrl = "./index.php?site=" + encodeURIComponent(siteId);
location.replace(logoutUrl);
}
function resetWarnTimer() {
clearTimeout(warnTimeOut);
warnTimeOut = setTimeout(logoutWarn, time - 30000);
}
function resetLogOutTimer() {
$('#alert_box').remove(); // reset alert if set
resetWarnTimer();
clearTimeout(timeOut);
timeOut = setTimeout(logout, time);
}
};
$(function () {
$('#topNav [data-parent="#cardgroup"]').on('click', (e) => {
persist($(e.target).attr('href'), false);
});
if ($('body').css('direction') === "rtl") {
$('.float-left').each(function () {
$(this).addClass('float-right').removeClass('float-left');
});
$('.dropdown-menu-right').each(function () {
$(this).removeClass('dropdown-menu-right');
});
$('.dropdown-menu-md-right').each(function () {
$(this).removeClass('dropdown-menu-md-right');
});
}
$("#profilereport").load("get_profile.php", {}, function () {
$("table").addClass("table table-sm");
$(".demographics td").removeClass("label");
$(".demographics td").addClass("bold");
$(".insurance table").addClass("table-sm table-striped");
$("#editDems").click(function () {
showProfileModal()
});
});
$("#medicationlist").load("./get_medications.php", {}, function () {
});
$("#labresults").load("./get_lab_results.php", {}, function () {
});
$("#amendmentslist").load("./get_amendments.php", {}, function () {
});
$("#problemslist").load("./get_problems.php", {}, function () {
});
$("#allergylist").load("./get_allergies.php", {}, function () {
});
$("#reports").load("./report/portal_patient_report.php?pid=" + {{ patientID | js_url }}, {}, function () {
});
//$("#quickstart-div").load("./quickstart_page.php", {}, function () {});
{% if portal_two_payments %}
$("#payment").load("./portal_payment.php", {}, function () {
});
{% endif %}
{% if isEasyPro %}
$("#pro").load("./get_pro.php", {}, function () {
});
{% endif %}
$(".generateDoc_download").click(function () {
$("#doc_form").submit();
});
function showProfileModal() {
const title = {{ 'Profile Edits Red = Charted Values and Blue = Patient Edits' | xlj }};
var params = {
buttons: [
{
text: {{ 'Help' | xlj }},
close: false,
style: 'info',
id: 'formHelp'
}, {
text: {{ 'Cancel' | xlj }},
close: true,
style: 'default'
}, {
text: {{ 'Revert Edits' | xlj }},
close: false,
style: 'danger',
id: 'replaceAllButton'
}, {
text: {{ 'Submit Changes' | xlj }},
close: false,
style: 'success',
id: 'donePatientButton'
}
],
sizeHeight: 'full',
allowDrag: false,
onClosed: 'reload',
resolvePromiseOn: 'init',
type: 'GET',
url: webRoot + '/portal/patient/patientdata?pid=' + encodeURIComponent(cpid) + '&user=' + encodeURIComponent(cuser)
};
dlgopen('', '', 'modal-xl', 500, '', title, params).then(function (dialog) {
$('div.modal-body', dialog).addClass('overflow-auto');
});
}
function saveProfile() {
page.updateModel();
}
let gowhere = {{ whereto | js_escape }};
$(gowhere).collapse('show');
$('#cardgroup').on('hide.bs.collapse', '.show', function (e) {
let target = this.attributes.id.nodeValue;
if (whereto.includes(target)) {
whereto = '';
return false;
}
});
$('#popwait').addClass('d-none');
$('#callccda').click(function () {
$('#popwait').removeClass('d-none');
});
// start watch for inactivity
activityMonitor();
});
function editAppointment(mode, deid) {
let mdata = {};
let title = '';
if (mode === 'add') {
title = {{ 'Request New Appointment' | xlj }};
mdata = {
pid: deid
};
} else if (mode === 'recurring') {
let msg = {{ 'A Recurring Appointment. Please contact your appointment desk for any changes.' | xlj }};
signerAlertMsg(msg, 8000);
return false;
} else {
title = {{ 'Edit Appointment' | xlj }};
mdata = {
eid: deid
};
}
var params = {
dialogId: 'editpop',
buttons: [
{
text: 'Cancel',
close: true,
style: 'btn-sm btn-secondary'
}
],
allowDrag: false,
size: 800,
title: title,
type: "GET",
url: './add_edit_event_user.php',
data: mdata
};
/*
* A couple notes on dialog.ajax .alert etc.
* opener is not required. library will handle for you.
* these run in the same scope as calling script.
* so same styles, dependencies are in scope.
* a promise is returned for doing other neat stuff.
*
* */
dialog.ajax(params);
}
function changeCredentials(e) {
title = {{ 'Please Enter New Credentials' | xlj }};
dlgopen("./account/index_reset.php", '', 575, 600, null, title, {});
}
{% if isEasyPro %}
function writeResult(score, stdErr, assessmentOID) {
$.ajax({
url: '../library/ajax/easipro_util.php',
data: {
'csrf_token_form': {{ csrfUtils | js_escape }},
'function': 'record_result',
'score': score,
'stdErr': stdErr,
'assessmentOID': assessmentOID
},
type: 'POST',
dataType: 'script'
});
}
function selectResponse(obj, assessmentOID) {
$.ajax({
url: '../library/ajax/easipro_util.php',
type: "POST",
data: {
'csrf_token_form': {{ csrfUtils | js_escape }},
'function': 'select_response',
'assessmentOID': assessmentOID,
'ItemResponseOID': obj.name,
'Response': +obj.id
},
dataType: "json",
success: function (data) {
if (data.DateFinished != '') {
document.getElementById("Content").innerHTML = jsText({{ 'You have finished the assessment.' | xlj }}) + "<br /> " + jsText({{ 'Thank you' | xlj }});
$('.assessment-row').toggleClass('d-none');
document.getElementById("asst_" + assessmentOID).innerHTML = "<i class='fa fa-check-circle'></i>";
document.getElementById("asst_status_" + assessmentOID).innerHTML = "completed";
$.ajax({
url: '../library/ajax/easipro_util.php',
type: "POST",
data: {
'csrf_token_form': {{ csrfUtils | js_escape }},
'function': 'collect_results',
'assessmentOID': assessmentOID
},
dataType: "json",
success: function (data) {
writeResult(data.Items[0].Theta, data.Items[0].StdError, assessmentOID);
}
});
return
}
var screen = "";
for (var j = 0; j < data.Items[0].Elements.length; j++) {
if (typeof (data.Items[0].Elements[j].Map) == 'undefined') {
screen = screen + `<label class="font-weight-bolder mx-1">${data.Items[0].Elements[j].Description}</label>`
} else {
for (var k = 0; k < data.Items[0].Elements[j].Map.length; k++) {
screen = screen + `<div class="form-row"><input type="button" class='form-control' id="${data.Items[0].Elements[j].Map[k].Value}" name="${data.Items[0].Elements[j].Map[k].ItemResponseOID}" value="${data.Items[0].Elements[j].Map[k].Description}" onclick="selectResponse(this,'${assessmentOID}')" /></div>`;
}
}
}
document.getElementById("Content").innerHTML = screen;
},
error: function (jqXHR, textStatus, errorThrown) {
alert("An error occurred");
}
});
}
function startAssessment(param, assessmentOID) {
param.innerHTML = "<i class='fa fa-circle-notch fa-spin'></i> " + jsText({{ 'Loading' | xlj }});
$.ajax({
url: '../library/ajax/easipro_util.php',
type: "POST",
data: {
'csrf_token_form': {{ csrfUtils | js_escape }},
'function': 'start_assessment',
'assessmentOID': assessmentOID
},
dataType: "json",
success: function (data) {
var screen = "";
let title = $("#" + "hide_assessment_" + assessmentOID).closest('tr').children('td:first').text();
document.getElementById("ContentTitle").innerHTML = "<h5>" + jsText(title) + "</h5>";
$('.assessment-row').toggleClass('d-none');
for (var j = 0; j < data.Items[0].Elements.length; j++) {
if (typeof (data.Items[0].Elements[j].Map) == 'undefined') {
screen = screen + `<label class="font-weight-bolder mx-1">${data.Items[0].Elements[j].Description}</label>`;
} else {
for (var k = 0; k < data.Items[0].Elements[j].Map.length; k++) {
screen = screen + `<div class="form-row"><input type="button" class='form-control' id="${data.Items[0].Elements[j].Map[k].Value}" name="${data.Items[0].Elements[j].Map[k].ItemResponseOID}" value="${data.Items[0].Elements[j].Map[k].Description}" onclick="selectResponse(this, '${assessmentOID}')" /></div>`;
}
}
}
document.getElementById("Content").innerHTML = screen;
param.innerHTML = jsText({{ 'Assessment Started' | xlj }});
},
error: function (jqXHR, textStatus, errorThrown) {
param.innerHTML = jsText({{ 'Start Assessment' | xlj }});
alert("An error occurred");
}
});
}
{% endif %}
</script>
{{ fireEvent(eventNames.scriptsRenderPre) }}
{% endblock %}
{% block pagetitle %}
{{ pagetitle | text }}
{% endblock %}
{% block header %}
{% include "portal/header.html.twig" %}
{% endblock %}
{% block content %}
<section class="flex-column accordion" id="cardgroup">
<div id="popwait" class="alert alert-warning d-none">
<strong>{{ 'Working!' | xlt }}</strong>
{{ 'Please wait...' | xlt }}</div>
<div class="collapse overflow-auto" data-parent="#cardgroup" id="lists">
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Medications' | xlt }}</header>
<div id="medicationlist" class="card-body bg-light"></div>
</div>
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Medications Allergy List' | xlt }}</header>
<div id="allergylist" class="card-body bg-light"></div>
</div>
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Issues List' | xlt }}</header>
<div id="problemslist" class="card-body bg-light"></div>
</div>
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Amendment List' | xlt }}</header>
<div id="amendmentslist" class="card-body bg-light"></div>
</div>
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Lab Results' | xlt }}</header>
<div id="labresults" class="card-body bg-light"></div>
</div>
</div>
<div class="card collapse overflow-auto" data-parent="#cardgroup" id="reportcard">
<header class="card-header bg-primary text-light">{{ 'Reports' | xlt }}</header>
<div id="reports" class="card-body"></div>
</div>
<div class="card collapse" data-parent="#cardgroup" id="profilecard">
<div id="profilereport" class="card-body bg-light"></div>
</div>
<div class="collapse" data-parent="#cardgroup" id="secure-msgs-card">
<div class="card">
<div id="secure-msgs" class="card-body">
<iframe src="{{ web_root | attr }}/portal/messaging/messages.php" class="w-100 vh-100 border-0"></iframe>
</div>
</div>
</div>
{% if allow_portal_appointments %}
<div class="collapse mt-2 overflow-auto" data-parent="#cardgroup" id="appointmentcard">
<div class="container-fluid">
<h3 class="text-center">{{ 'Appointments' | xlt }}</h3>
<div class="row">
{% if appointments|length > 0 %}
{% for appt in appointments %}
{% include 'portal/appointment-item.html.twig' with {appt: appt} %}
{% endfor %}
{% if appointmentLimit == appointmentCount %}
<p>{{ 'Display limit reached' | xlt }}
<br>
{{ 'More appointments may exist' | xlt }}</p>
{% endif %}
{% else %}
<h3 class='text-center'>{{ 'No Appointments' | xlt }}</h3>
{% endif %}
</div>
<div class="mb-3">
<a class='btn btn-primary btn-block' href='#' onclick="editAppointment('add',{{ patientID | attr_js }})">{{ 'Schedule A New Appointment' | xlt }}</a>
</div>
</div>
</div>
<!-- /.row -->
{% endif %}
{% if portal_two_payments %}
<div class="collapse overflow-auto" data-parent="#cardgroup" id="paymentcard">
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Payments' | xlt }}</header>
<div id="payment" class="card-body bg-light"></div>
</div>
</div>
{% endif %}
{% if allow_portal_chat %}
<div class="collapse overflow-auto" data-parent="#cardgroup" id="messagescard">
<div class="card pt-0 pb-0">
<header class="card-header bg-primary text-light">{{ 'Secure Chat' | xlt }}</header>
<div id="chat" class="card-body p-0 overflow-auto">
<iframe src="./messaging/secure_chat.php" class="w-100" style="height: calc(100vh - 120px);"></iframe>
</div>
</div>
</div>
{% endif %}
{% if portal_onsite_document_download %}
<div class="card collapse overflow-auto" data-parent="#cardgroup" id="downloadcard">
<header class="card-header bg-primary text-light">{{ 'Download Documents' | xlt }}</header>
<div id="docsdownload" class="card-body">
<div>
<span class="text">{{ 'Download all patient documents' | xlt }}</span>
<form name='doc_form' id='doc_form' action='./get_patient_documents.php' method='post'>
<input type="button" class="generateDoc_download" value="{{ 'Download' | xla }}" />
</form>
</div>
</div>
<!-- /.card-body -->
</div>
{% endif %}
{% if portal_two_ledger %}
<div class="collapse overflow-auto" data-parent="#cardgroup" id="ledgercard">
<div class="card">
<header class="card-header bg-primary text-light">{{ 'Ledger' | xlt }}</header>
<div id="patledger" class="card-body">
<iframe src="./report/pat_ledger.php" class="w-100 vh-100 border-0"></iframe>
</div>
</div>
</div>
{% endif %}
{% if isEasyPro %}
<div class="card collapse overflow-auto" data-parent="#cardgroup" id="procard">
<header class="card-header bg-primary text-light">{{ 'Patient Reported Outcomes' | xlt }}</header>
<div id="pro" class="card-body bg-light"></div>
</div>
{% endif %}
<div class="card collapse overflow-auto" data-parent="#cardgroup" id="quickstart-card">
<div id="quickstart-div" class="card-body">
<script>
$(function () {
let ele = parent.document.getElementById('topNav');
if ($(parent.document.getElementById('topNav')).is('.collapse:not(.show)')) {
ele.classList.toggle('collapse');
}
// ensure top level shows in quickstart
$(parent.document.getElementById('topNav')).removeClass("d-none");
$("#my_theme").on('change', function (e) {
let sel = $("#my_theme :selected").val() || '';
persistPatientSetting(cpid, 'portal_theme', sel);
$(parent.document.getElementById('homeRefresh')).click();
});
});
function persistPatientSetting(pid, label, setting) {
fetch('lib/persist.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
'csrf_token_form': {{ csrfUtils | js_escape }} ,
'setting_patient': pid,
'setting_label': label,
'setting_value': setting
}),
});
}
</script>
<script>
{{ fireEvent(eventNames.dashboardRenderScripts) }}
</script>
<div id="card-div">
<!-- About Dialog -->
<div class="modal fade" id="formdialog" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog bg-light">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{{ 'About Portal Dashboard' | xlt }}</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div>
<span>{{ 'Please see forum here' | xlt }}
<a href="{{ 'https://community.open-emr.org/' }} " target="_blank">{{ "Visit Forum" | xlt }} </a>
</span>
</div>
</div>
<div class="modal-footer">
<button id="okButton" data-dismiss="modal" class="btn btn-primary">{{ 'Close' | xlt }}</button>
</div>
</div>
</div>
</div>
<div class="container-xl p-3">
<div class="jumbotron jumbotron-fluid text-center p-1">
<h3>{{ 'My Dashboard' | xlt }}<i class="fa fa-user -danger ml-2" style="font-size: 3rem;"></i></h3>
<p>
<button class="btn btn-sm btn-secondary" data-toggle="modal" data-target="#formdialog">{{ 'Tell me more' | xlt }}</button>
</p>
</div>
<div class='jumbotron jumbotron-fluid p-4'>
<div class="row" id="inject_card">
<!-- Document -->
<div class="card d-flex mr-1 mb-1">
<div class="card-body">
<h4 class="card-title"><i class="fa fa-file- mr-1"></i>{{ 'My Documents' | xlt }}</h4>
<a id="documents-go" class="btn btn-success" href="{{ web_root }}/portal/patient/onsitedocuments?pid={{ pid | attr_url }} ">{{ 'Manage Documents' | xlt }}</a>
</div>
</div>
<!-- Signature -->
<div class="card d-flex mr-1 mb-1">
<div class="card-body">
<h4><i class="card-title fa fa-signature mr-1"></i>{{ 'Signature' | xlt }}</h4>
<a data-type="patient-signature" class="btn btn-primary" href="#openSignModal" data-toggle="modal" data-backdrop="true" data-target="#openSignModal">{{ 'Manage Signature' | xlt }} </a>
</div>
</div>
<!-- Theme -->
<div class="card d-flex mr-1 mb-1">
<div class="card-body row">
<h4 class="card-title"><i class="fa fa-link mr-1"></i>{{ 'Settings' | xlt }}</h4>
<div class="col-12 form-group">
<div class="col">
<div class="input-group">
<label class="m-0" for='my_theme'>{{ 'Current Theme' | xlt }}</label>
<select class='form-control ml-2' id='my_theme'>
{% for styleKey, styleValue in styleArray %}
{{ "<option value='" ~ styleKey | attr ~ "'" }}
{% if styleKey == current_theme %}
{{ " selected" }}
{% endif %}
{{ ">" }}{{ styleValue | text }}{{ "</option>\n" }}
{% endfor %}
</select>
<div class="input-group-append">
<a class="btn btn-primary" href="./home.php" target="_parent">{{ 'Apply' | xlt }}</a>
</div>
</div>
</div>
<div class="col">
<div class="form-group form-check-inline">
<label class="form-check-label" for="exampleCheck1">
<input type="checkbox" class="form-check-input" id="exampleCheck1">{{ 'Auto Save Documents' | xlt ~ " (Coming soon)" | text }}</label>
</div>
</div>
</div>
</div>
</div>
{{ fireEvent(eventNames.dashboardInjectCard) }}
</div>
</div>
</div>
</div>
</div>
</div>
{{ fireEvent(eventNames.sectionRenderPost) }}
</section>
{% endblock %}