{% if each_action.action_type == 'pause_actions' %}
{{form_actions.pause_duration.label(class_='control-label')}}
{{form_actions.pause_duration(class_='form-control', value=each_action.pause_duration, **{'title':_('How long to pause executing actions')})}}
{% elif each_action.action_type == 'output' %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{{form_actions.do_output_state.label(class_='control-label')}}
{{form_actions.do_output_duration.label(class_='control-label')}}
{{form_actions.do_output_duration(class_='form-control', value=each_action.do_output_duration, **{'title':_('How long to turn the output on (optional)')})}}
{% elif each_action.action_type == 'output_pwm' %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{{form_actions.do_output_pwm.label(class_='control-label')}}
{{form_actions.do_output_pwm(class_='form-control', value=each_action.do_output_pwm, **{'title':_('What duty cycle to set the output')})}}
{% elif each_action.action_type == 'infrared_send' %}
{{form_actions.remote.label(class_='control-label')}}
{{form_actions.remote(class_='form-control', value=each_action.remote, **{'title':_('What remote to use')})}}
{{form_actions.code.label(class_='control-label')}}
{{form_actions.code(class_='form-control', value=each_action.code, **{'title':_('What code to send')})}}
{{form_actions.send_times.label(class_='control-label')}}
{{form_actions.send_times(class_='form-control', value=each_action.send_times, **{'title':_('The number of times to send the code')})}}
{% elif each_action.action_type == 'email' %}
{% elif each_action.action_type in ['flash_lcd_on', 'flash_lcd_off', 'lcd_backlight_off', 'lcd_backlight_on'] %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% elif each_action.action_type == 'photo' %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% elif each_action.action_type in ['photo_email', 'video_email'] %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% if each_action.action_type == 'video_email' %}
{{form_actions.do_camera_duration(class_='form-control', value=each_action.do_camera_duration, **{'title':_('Duration to record video (sec)')})}}
{% endif %} {% elif each_action.action_type == 'video' %}
{{form_actions.do_camera_duration(class_='form-control', value=each_action.do_camera_duration, **{'title':_('Duration to record video (sec)')})}}
{% elif each_action.action_type == 'command' %}
{{form_actions.do_action_string(class_='form-control', value=each_action.do_action_string, **{'title':_('Command to execute (as user "mycodo")')})}}
See Conditional Statement Variables for a list of replaceable variables able to be used in commands.
{% elif each_action.action_type == 'create_note' %}
Tags can be created on the notes page.
{% elif each_action.action_type in ['activate_controller', 'deactivate_controller'] %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% elif each_action.action_type in ['activate_pid', 'deactivate_pid', 'pause_pid', 'resume_pid'] %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% elif each_action.action_type == 'setpoint_pid' %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{{form_actions.do_action_string(class_='form-control', value=each_action.do_action_string, **{'title':_('The value to set the PID setpoint')})}}
{% elif each_action.action_type == 'method_pid' %}
{{form_actions.do_unique_id.label(class_='control-label')}}
{% endif %}