{% extends "layout-settings.html" %} {% set active_page = "settings" %} {% set active_settings = "alerts" %} {% set help_page = ["alert-settings", dict_translation['settings']['title'] + ': ' + dict_translation['alert']['title']] %} {% block title %} - {{dict_translation['settings']['title'] + ': ' + dict_translation['alert']['title']}}{% endblock %} {% block settings %}

{{_('Alerts Settings')}}

{{form_email_alert.hidden_tag()}}
{{form_email_alert.smtp_host.label(class_='control-label')}}
{{form_email_alert.smtp_host(class_='form-control', value=smtp.host)}}
{{form_email_alert.smtp_port.label(class_='control-label')}}
{{form_email_alert.smtp_port(class_='form-control',type="number", value=smtp.port,**{'title':_('465 for SSL, 587 for TSL')})}}
{{form_email_alert.smtp_ssl.label(class_='control-label checkbox-nopad')}}
{%- if smtp.ssl == 1 -%} {{form_email_alert.smtp_ssl(checked=True)}} {%- else -%} {{form_email_alert.smtp_ssl()}} {%- endif -%}   (unchecked for TSL)
{{form_email_alert.smtp_user.label(class_='control-label')}}
{{form_email_alert.smtp_user(class_='form-control', value=smtp.user,**{'title':_('Usually your full email address')})}}
{{form_email_alert.smtp_password.label(class_='control-label')}}
{{form_email_alert.smtp_password(class_='form-control',**{'title':_('Only enter a password here if you wish to change it')})}}
{{form_email_alert.smtp_from_email.label(class_='control-label')}}
{{form_email_alert.smtp_from_email(class_='form-control', value=smtp.email_from)}}
{{form_email_alert.smtp_hourly_max.label(class_='control-label')}}
{{form_email_alert.smtp_hourly_max(class_='form-control',type="number", value=smtp.hourly_max, **{'title':_('Maximum number of alerts that can be emailed per hour.')})}}
{{form_email_alert.save(class_='btn btn-primary')}}
{{form_email_alert.send_test_to_email(class_='form-control')}}
{{form_email_alert.send_test(class_='btn btn-primary')}}
{% endblock %}