You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
1.5 KiB

<section class="card mb-2 {{ card_bg_color }} {{ card_text_color }}">
<div class="card-body p-1">
<h6 class="card-title mb-0 d-flex p-1 justify-content-between">
<a class="text-left font-weight-bolder" href="#" {% if forceAlwaysOpen != true %}data-toggle="collapse" data-target="#{{ id|attr }}"{% endif %} aria-expanded="true" aria-controls="{{ id|attr }}">{{ title|text }}</a>
{% if auth %}
<span>
{% if card.canAdd() or btnLabel == "Add" %}
<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>
{% endif %}
{% if card.canEdit() or btnLabel == "Edit" %}
<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>
{% endif %}
</span>
{% endif %}
</h6>
<div id="{{ id|attr }}" class="card-text collapse {{ initiallyCollapsed == 1 ? "show" : ""}}">
<div class="clearfix pt-2">
{% block content %}{% endblock %}
</div>
</div>
</div>
</section>