summaryrefslogtreecommitdiff
path: root/static/website/templates/ajax-duration.html
blob: af253a6c5236a1bf2bc27aa753c155cb9d826b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% load count_tags %}
<div>
<div id="minutes">
    <option value="">min</option>
    {% for i in minutes|inc|get_range %}
        {% if i < 10 %}
            {% if i == 9 %}
                <option value="0{{ i }}-{{ i|inc }}">{{ i }}-{{ i|inc }} </option>
            {% else %}
                <option value="0{{ i }}-0{{ i|inc }}">{{ i }}-{{ i|inc }} </option>
            {% endif %}
        {% else %}
            <option value="{{ i }}-{{ i|inc }}">{{ i }}-{{ i|inc }} </option>
        {% endif %}
    {% endfor %}
</div> <!-- /#minutes -->

<div id="seconds">
    <option value="">sec</option>
    {% for i in seconds|get_range:"0,10" %}
        <option value="{{ i }}-{{ i|add:"10" }}">{{ i }}-{{ i|add:"10" }}</option>
    {% endfor %}
</div> <!-- /#seconds -->
</div> <!-- /required for ajax -->