2018-03-10 15:05:49 +02:00
|
|
|
{% macro panel(style, title) %}
|
|
|
|
<div class="panel panel-{{ style }}">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{ title }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{ caller() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2018-10-18 11:56:16 +02:00
|
|
|
{% macro radio(name, value, emph, text, current) %}
|
2018-03-10 15:05:49 +02:00
|
|
|
<div class="radio">
|
|
|
|
<label>
|
2018-10-18 11:56:16 +02:00
|
|
|
<input type="radio" name="{{ name }}" value="{{ value }}"{% if current == value %} checked="checked"{% endif %}>
|
2018-03-10 15:05:49 +02:00
|
|
|
{% if emph %}
|
|
|
|
<strong>{{ emph }}</strong>,
|
|
|
|
{% endif %}
|
|
|
|
{{ text }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|