{% extends "layout-settings.html" %} {% set active_page = "action" %} {% set active_settings = "action" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Configuration-Settings/#action-settings", dict_translation['settings']['title'] + ': ' + dict_translation['actions']['title']] %} {% block title %} - {{dict_translation['settings']['title'] + ': ' + dict_translation['actions']['title']}}{% endblock %} {% block settings %}

{{_('Action Settings')}}

{{_('Import Action Module')}}

This will allow importing an action module file.

{{form_action.csrf_token}}
{{form_action.import_action_upload(class_='btn btn-primary')}}
{% if dict_actions %}

{{_('Imported Action Modules')}}

{% for each_action in dict_actions %} {{form_action_delete.csrf_token}} {{form_action_delete.action_id(value=each_action)}}
{% endfor -%}
ID {{_('Name')}}
{{each_action}} {{dict_actions[each_action]['name']}}
{{form_action_delete.delete_action(class_='btn btn-primary btn-block', **{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{% endif %}
{% endblock %}