mirror of
https://github.com/tabler/tabler.git
synced 2025-12-24 10:48:14 +04:00
18 lines
754 B
HTML
18 lines
754 B
HTML
<div class="alert alert-{{ include.type | default: 'primary'}}{%if include.close %} alert-dismissible{% endif %}{% if include.avatar %} alert-avatar{% endif %}" role="alert">
|
|
{% if include.person-id %}{% include ui/avatar.html person-id=include.person-id %}{% endif %}
|
|
{% if include.icon %}
|
|
{% include ui/icon.html icon=include.icon class="mr-1" %}
|
|
{% endif %}
|
|
|
|
{{ include.text | default: "This is a custom alert box!" }}
|
|
|
|
{% if include.buttons %}
|
|
<div class="btn-list">
|
|
<a href="#" class="btn btn-success">Save changes</a>
|
|
<a href="#" class="btn btn-secondary">Cancel</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if include.close %}<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>{% endif %}
|
|
</div>
|