{% extends "layout.html" %} {% set active_page = "timer" %} {% set help_page = ["timers", _('Timers')] %} {% block title %} - {{_('Timers')}}{% endblock %} {% block head %} {% endblock %} {% block body %}
{% include 'flash_messages.html' %}

{{_('Timers')}}

Timers enable outputs to be manipulated after specific durations of time or at a specific times of the day.

{{form_timer_base.csrf_token}}
{{form_timer_base.timer_type.label(class_='control-label')}}
{{form_timer_base.timer_type(class_='form-control')}}
{%- if displayOrder -%} {%- for order in displayOrder -%} {% for each_timer in timer if each_timer.id == order %}
{{form_timer_base.csrf_token}} {{form_timer_base.timer_id(class_='form-control', value=each_timer.id)}}
{{form_timer_base.name(class_='form-control', value=each_timer.name, **{'title':_('Name')})}}
{%- if each_timer.is_activated %} {{form_timer_base.deactivate(class_='form-control btn btn-default')}} {%- else %} {{form_timer_base.activate(class_='form-control btn btn-default')}} {%- endif -%}
{{form_timer_base.order_up(class_='form-control btn btn-default')}}
{{form_timer_base.order_down(class_='form-control btn btn-default')}}
{{form_timer_base.modify(class_='form-control btn btn-default')}}
{{form_timer_base.delete(class_='form-control btn btn-default',**{'onclick':'return confirm("Are you sure you want to delete this Timer controller?")'})}}
{% if each_timer.timer_type == 'time' %} {% include 'pages/timer_options/mod_time_point.html' %} {% elif each_timer.timer_type == 'timespan' %} {% include 'pages/timer_options/mod_time_span.html' %} {% elif each_timer.timer_type == 'duration' %} {% include 'pages/timer_options/mod_duration.html' %} {% elif each_timer.timer_type == 'pwm_method' %} {% include 'pages/timer_options/mod_pwm_method.html' %} {% endif %}
{%- endfor -%} {%- endfor -%} {%- endif -%} {% endblock %}