{%- for each_function in custom_functions if each_function.unique_id == order -%}
{{form_custom_controller.csrf_token}} {{form_custom_controller.function_id(value=each_function.unique_id)}} {{form_custom_controller.function_type(class_='form-control', value='custom_controller')}}
{{form_custom_controller.name(class_='form-control', value=each_function.name, **{'title': dict_translation['name']['phrase']})}}
{%- if each_function.is_activated %} {{form_custom_controller.deactivate_controller(class_='form-control btn btn-primary btn-sm')}} {%- else %} {{form_custom_controller.activate_controller(class_='form-control btn btn-primary btn-sm')}} {%- endif -%}
{{form_custom_controller.save_controller(class_='form-control btn btn-primary btn-sm')}}
{{form_custom_controller.delete_controller(class_='form-control btn btn-primary btn-sm',**{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{{form_custom_controller.order_up(class_='form-control btn btn-primary btn-sm')}}
{{form_custom_controller.order_down(class_='form-control btn btn-primary btn-sm')}}
{% if 'message' in dict_controllers[each_function.device] %}
{{dict_controllers[each_function.device]['message']|safe}}
{% endif %}
{{form_custom_controller.log_level_debug.label(class_='control-label')}}
{% set dict_options = dict_controllers[each_function.device] %} {% set unique_id = each_function.unique_id %} {% set custom_options_values = custom_options_values_controllers %} {% if 'custom_options' in dict_options %} {% for each_option in dict_options['custom_options'] %} {% include 'pages/form_options/Custom_Options.html' %} {% endfor %} {% endif %}
{%- endfor -%}