{% import 'macros_form.html' as form without context %}
{{ form.tablefield(label=name, extra=htmlstr(' %s %s') % (('checked="checked"' if enabled else ''), (htmlstr('onclick="checkboxDisplayNode(this, %s, \'%s\');"') % (notifywidgets, service) if notifywidgets is defined else '')), name='%s%s' % (uid, submit_name), type='checkbox') }}
{% if periodic_options is defined %}
{% call form.tablefield(type='content') %}
{% call form.fieldtable() %}
{{ form.tablefield(label=trans('daily_report'), checked=daily, name='%s%s' % (uid, frequency_choice), rowspan=2, id='%s%s___0' % (uid, frequency_choice), type='radio', value='daily') }}
{{ form.tablefield(label=trans('weekly_report'), checked=weekly, name='%s%s' % (uid, frequency_choice), rowspan=0, id='%s%s___1' % (uid, frequency_choice), type='radio', value='weekly') }}
{{ form.tablefield(label=echo_option_name, checked=echo_option_enabled, help=echo_option_help, name='%s%s' % (uid, echo_option), type='checkbox') }}
{% endcall %}
{% endcall %}
{% endif %}