{% set idcard = idcard|default(random(500)) %}
{% set collapse = collapse is defined ? collapse : 'collapse' %}
<div class="card mb-3">
	<div class="card-header" style='cursor:pointer;' onmouseover="$(this).addClass('border-primary');" onmouseout="$(this).removeClass('border-primary');" data-toggle="collapse" data-target="#collapse{{idcard}}" aria-expanded="false" aria-controls="collapse{{idcard}}">{% block blocktitle %}{% endblock blocktitle %}</div>
	<div class="card-body {{collapse}}" id="collapse{{idcard}}" data-parent="#accordion">
		<h4 class="card-title">{% block blocksubtitle %}{% endblock blocksubtitle %}</h4>
		<div class="card-text">
			{% block blockcontent %}
			{% endblock blockcontent %}
		</div>
	</div>
</div>
