{{_('Input')}}

{% for each_order_input_id in display_order_input -%} {%- set all_input = table_input.query.filter(table_input.unique_id == each_order_input_id).all() -%} {%- if all_input -%} {%- for each_input in all_input -%}
{{form_mod_input.csrf_token}} {{form_mod_input.input_id(value=each_input.unique_id)}}
{{form_mod_input.name(class_='form-control', value=each_input.name, **{'title': dict_translation['name']['phrase']})}}
{% if each_input.is_activated -%} {%- set has_active_pid = [] -%} {%- for each_pid in pid if each_pid.measurement.split(',')[0] == each_input.unique_id and each_pid.is_activated -%} {%- do has_active_pid.append(1) -%} {%- endfor -%} {% if has_active_pid -%} {{form_mod_input.input_deactivate(class_='form-control btn btn-sm',**{'onclick':'return confirm("There are currently active PID controllers that rely on this Input to be active. Select OK to deactivate this input and all associated PID controllers, otherwise click Cancel to leave them active.")'})}} {% else -%} {{form_mod_input.input_deactivate(class_='form-control btn btn-sm')}} {% endif -%} {% else -%} {{form_mod_input.input_activate(class_='form-control btn btn-sm')}} {% endif -%}
{{form_mod_input.input_order_up(class_='form-control btn btn-sm btn-block')}}
{{form_mod_input.input_order_down(class_='form-control btn btn-sm btn-block')}}
{% if each_input.device in ['RPiCPULoad', 'RPiFreeSpace'] -%} {% endif -%}
{{form_mod_input.input_mod(class_='form-control btn btn-sm btn-block')}}
{% if has_active_pid or has_active_lcd -%} {{form_mod_input.input_delete(class_='form-control btn btn-sm btn-block',**{'onclick':'return confirm("Note: there are currently an active PID that relies on this to operate. Deleting it will deactivate the PID. Are you sure you want to delete this?")'})}} {% else -%} {{form_mod_input.input_delete(class_='form-control btn btn-sm btn-block',**{'onclick':'return confirm("Are you sure you want to delete this?")'})}} {% endif -%}
{{form_mod_input.input_acquire_measurements(class_='form-control btn btn-sm btn-block')}}
{% if each_input.device in dict_inputs %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Interface.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_GPIO.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_BT.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_I2C.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_FTDI.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_UART.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Baud_Rate.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Location.html' %} {% if each_input.device != 'EDGE' -%} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Period.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Pre_Output.html' %} {% endif %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Custom_Options.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Single_Input_Math.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_EDGE.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Times_Check.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Deadline.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Port.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_RPM_Pulses_Rev.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Weighting.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Sample_Time.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_SHT_Voltage.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Pin_Clock.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Cmd_Command.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Ref_Ohm.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Thermocouple_Type.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Resolution.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Resolution_2.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Sensitivity.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Measurements_Select.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_ADC_Gain.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_ADC_Resolution.html' %} {% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_ADC_Sample_Speed.html' %} {% endif %}
{{_('Measurement Settings')}}
{% include 'pages/data_options/input_options/TEMPLATE_OPTIONS_Measurements_Convert.html' %}
{%- endfor -%} {%- endif -%} {%- endfor -%} {%- if display_order_input -%}
{{form_base.csrf_token}}
{{form_base.reorder(class_='btn btn-primary')}}
{{form_base.reorder_type(class_='form-control', value='input')}}
{%- endif -%}