blob: c99703c194798b4eb0099e8317ec0a0818ae9730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{% macro link_to(text, endpoint) -%}
<a href="{{ url_for(endpoint, **kwargs) }}">{{ text }}</a>
{%- endmacro %}
{% macro options(_, name, option_list, current) -%}
<div class='{{ name }}'>
<h1>{{ _(name) }}</h1>
<form name='{{ name }}' action='/config/{{ name }}' method="post">
{% for opt in option_list %}
<input type='radio' name='{{ name }}' value='{{ opt }}' {% if opt == current %}checked{% endif %} />{{ _(opt) }}<br />
{% endfor %}
</form>
</div>
{%- endmacro %}
|