fix: use btn-link instead of a link for dashboard cards (#6995)
[openemr.git] / templates / patient / card / card_base.html.twig
blob9668dcdd5fd1f5e61511aeb7e52064a3fb328897
1 <section class="{{ card_container_class_list|default(['card', 'mb-2'])|join(' ') }} {{ card_bg_color }} {{ card_text_color }}">
2     <div class="card-body p-1">
3         <h6 class="card-title mb-0 d-flex p-1 justify-content-between">
4             <button class="btn btn-sm btn-link" href="#" {% if forceAlwaysOpen != true %} data-toggle="collapse" data-target="#{{ id|attr }}" {% endif %} aria-expanded="true" aria-controls="{{ id|attr }}">{{ title|text }}</button>
5             {% if auth %}
6                 <span>
7                 {% if card.canAdd() or btnLabel == "Add" %}
8                     <a class="{{ btnClass|attr }}" href="{{ linkMethod == "html" ? btnLink : "#" }}" {{ (linkMethod == "html" and requireRestore == true) ? "onclick=\"top.restoreSession()\"" : ""}} {{ linkMethod == "javascript" ? "onclick=\"" ~ btnLink ~ "\"" : ''}}><i class="fa fa-plus fa-sm">&nbsp;</i></a>
9                 {% endif %}
10                 {% if card.canEdit() or btnLabel == "Edit" %}
11                     <a class="{{ btnClass|attr }}" href="{{ linkMethod == "html" ? btnLink : "#" }}" {{ (linkMethod == "html" and requireRestore == true) ? "onclick=\"top.restoreSession()\"" : ""}} {{ linkMethod == "javascript" ? "onclick=\"" ~ btnLink ~ "\"" : ''}}><i class="fa fa-pencil-alt fa-sm">&nbsp;</i></a>
12                 {% endif %}
13                 </span>
14             {% endif %}
15         </h6>
16         <div id="{{ id|attr }}" class="card-text collapse{{ initiallyCollapsed ? "" : " show"}}">
17             <div class="clearfix pt-2">
18                 {% block content %}{% endblock %}
19             </div>
20         </div>
21     </div>
22 </section>