2018-11-27 12:01:36 +01:00
|
|
|
{% macro angel() %}
|
2021-07-29 20:18:40 +02:00
|
|
|
<span class="icon-icon_angel"></span>
|
2018-11-27 12:01:36 +01:00
|
|
|
{% endmacro %}
|
|
|
|
|
2021-07-24 12:38:23 +02:00
|
|
|
{% macro icon(icon, color) %}
|
|
|
|
<span class="bi bi-{{ icon }} {% if color %} text-{{ color }} {% endif %}"></span>
|
2021-07-17 15:38:20 +02:00
|
|
|
{% endmacro %}
|
|
|
|
|
2018-11-27 12:01:36 +01:00
|
|
|
{% macro alert(message, type) %}
|
|
|
|
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
|
|
|
|
{% endmacro %}
|
2020-04-05 16:54:45 +02:00
|
|
|
|
|
|
|
{% macro user(user) %}
|
|
|
|
<a href="{{ url('users', {'action': 'view', 'user_id': user.id}) }}"
|
|
|
|
{%- if not user.state.arrived %} class="text-muted"{% endif -%}
|
|
|
|
>
|
|
|
|
{{ _self.angel() }} {{ user.name }}
|
|
|
|
</a>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2020-12-18 18:27:10 +01:00
|
|
|
{% macro button(label, url, type, size, title) %}
|
2021-07-29 20:18:40 +02:00
|
|
|
<a href="{{ url }}" class="btn btn-{{ type|default('secondary') }}{% if size %} btn-{{ size }}{% endif %}"{% if title %} title="{{ title }}"{% endif %}>
|
2020-04-05 16:54:45 +02:00
|
|
|
{{ label }}
|
|
|
|
</a>
|
|
|
|
{% endmacro %}
|
2020-11-24 17:27:21 +01:00
|
|
|
|
|
|
|
{% macro info(text) %}
|
2021-07-24 21:08:04 +02:00
|
|
|
<span class="help-block">{{ _self.icon('info-circle') }}{{ text }}</span>
|
2020-11-24 17:27:21 +01:00
|
|
|
{%- endmacro %}
|
2021-07-24 12:38:23 +02:00
|
|
|
|
|
|
|
{% macro type_bg_class() -%}
|
|
|
|
{% if theme.type == 'light' %}bg-white{% else %}bg-dark{% endif %}
|
|
|
|
{%- endmacro %}
|
2021-08-05 01:00:12 +02:00
|
|
|
|
|
|
|
{% macro type_text_class() -%}
|
|
|
|
{% if theme.type == 'light' %}text-dark{% else %}text-light{% endif %}
|
|
|
|
{%- endmacro %}
|