{{_('Math')}}

{{_('Math can be performed on one or more Inputs in order to produce a new value')}}

{%- if display_order_math -%} {%- for order in display_order_math -%} {%- for each_math in math if each_math.id == order -%}
{{form_mod_math.csrf_token}} {{form_mod_math.math_id(value=each_math.id)}}
{{form_mod_math.name(class_='form-control', value=each_math.name, **{'title':_('A name to distinguish this from others')})}}
{% if each_math.is_activated -%} {{form_mod_math.math_deactivate(class_='form-control btn btn-default')}} {% else -%} {{form_mod_math.math_activate(class_='form-control btn btn-default')}} {% endif -%}
{{form_mod_math.math_order_up(class_='form-control btn btn-default')}}
{{form_mod_math.math_order_down(class_='form-control btn btn-default')}}
{{form_mod_math.math_mod(class_='form-control btn btn-default')}}
{{form_mod_math.math_delete(class_='form-control btn btn-default',**{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{{form_mod_math.period.label(class_='control-label')}}
{{form_mod_math.period(class_='form-control', value=each_math.period, **{'title':_('The duration (seconds) between math calculations')})}}
{{form_mod_math.max_measure_age.label(class_='control-label')}}
{{form_mod_math.max_measure_age(class_='form-control', value=each_math.max_measure_age)}}
{% for each_math_template in math_templates if each_math_template[:-5] == each_math.math_type %} {% include 'pages/data_options/math_options/'+each_math_template %} {% endfor %}
{%- endfor -%}
{%- endfor -%} {%- endif -%}