{# The Patient Portal card for the Medical Record Dashboard @author Robert Down @copyright Copyright (c) 2022 Robert Down @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 %}
{% if portalAuthorized.isAllowed == false %}
{% if portalAuthorized.authorized.api == false %}

{{ "API Access Not Authorized"|xlt }}

{% endif %} {% if portalAuthorized.authorized.api == false %}

{{ "Patient Portal Not Authorized"|xlt }}

{% endif %}
{% else %} {{ prepend }} {% if portalAuthorized.credentials.created == true %} {% set class = "fa-key" %} {% set text = "Reset Credentials"|xlt %} {% else %} {% set class = "fa-user-plus" %} {% set text = "Create Credentials"|xlt %} {% endif %}  {{ text|text }} {{ append }} {% endif %}
{% endblock %}