forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
portal.html.twig
36 lines (31 loc) · 1.4 KB
/
portal.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
{#
The Patient Portal card for the Medical Record Dashboard
@author Robert Down <[email protected]>
@copyright Copyright (c) 2022 Robert Down <[email protected]>
@package OpenEMR
#}
{% extends "patient/card/card_base.html.twig" %}
{% if (prependedInjection is defined) or (appendedInjection is defined) %}
{% import "patient/macros/card.macro.twig" as cardMacros %}
{% set prepend = cardMacros.injectedContent(prependedInjection) %}
{% set append = cardMacros.injectedContent(appendedInjection) %}
{% endif %}
{% block content %}
<div class="text d-flex pl-1">
{% if portalAuthorized == false %}
{{ "Patient Portal Not Authorized"|xlt }}
{% else %}
{{ prepend }}
{% if portalAuthorized.created == true %}
{% set class = "fa-key" %}
{% set text = "Reset Credentials"|xlt %}
{% else %}
{% set class = "fa-user-plus" %}
{% set text = "Create Credentials"|xlt %}
{% endif %}
<a href="{{ portalLoginHref|attr }}?patient={{ pid|attr_url }}" class="btn btn-link btn-sm w-50 small_modal"><i class="fa {{ class|attr }}"></i> {{ text|text }}</a>
<button type="button" class="btn btn-link btn-sm w-50" onclick='top.assignPatientDocuments({{pid|attr_js}})'><i class="fa fa-file-signature"></i> {{ "Assign Documents"|xlt }}</button>
{{ append }}
{% endif %}
</div>
{% endblock %}