mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
708e31660f
Otherwise it's possible to submit the form without selecting e.g. any flavor, which would need additional handling on the server side.
23 lines
600 B
HTML
23 lines
600 B
HTML
{% 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 %}
|
|
|
|
{% macro radio(name, value, emph, text, current) %}
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" name="{{ name }}" value="{{ value }}"{% if current == value %} checked="checked"{% endif %} required="required">
|
|
{% if emph %}
|
|
<strong>{{ emph }}</strong>,
|
|
{% endif %}
|
|
{{ text }}
|
|
</label>
|
|
</div>
|
|
{% endmacro %}
|