{% extends "layout.html" %} {% set active_page = "function" %} {% set help_page = ["function", dict_translation['function']['title']] %} {% block title %} - {{dict_translation['function']['title']}}{% endblock %} {% block head %} {% endblock %} {% block body %}
{% include 'flash_messages.html' %}

{{dict_translation['function']['title']}}

{{_('Functions conduct complex tasks, often coupling one or more Data sources with Outputs. For example, this could be using a PID Controller to create a feedback loop with a temperature sensor and heater in order to regulate temperature.')}}

{{form_mod_pid_base.csrf_token}}
{{form_add_function.func_add(class_='btn btn-primary')}}
{%- if display_order_function -%} {%- for order in display_order_function -%} {% include 'pages/function_options/conditional.html' %} {% include 'pages/function_options/pid.html' %} {% include 'pages/function_options/trigger.html' %} {% include 'pages/function_options/function_spacer.html' %} {% include 'pages/function_options/function_actions.html' %} {% endfor %}
{{form_base.csrf_token}}
{{form_base.reorder(class_='btn btn-primary')}}
{{form_base.reorder_type(class_='form-control', value='function')}}
{% endif %}
{% endblock %}