{% extends 'safety/policy.html' %} {% block toolbar_schedule %}class="active"{%endblock%} {% block policy_content %}

Add a new schedule when this policy is activated.

{% if policy.name == 'default' %}

Default filtering policy is used when proxy user can not be found in other policies so there is no need to configure schedule of the default policy. It is always switched on.

{% else %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %} {{ error|escape }} {% endfor %}
{% endif %}
{% csrf_token %}
{{form.from_hours}} {% if form.from_hours.errors %} {{form.from_hours.errors|striptags}} {% else %} Specify the hour this schedule must be active from. For example 00. Possible values 00 to 23. {%endif%}
{{form.from_mins}} {% if form.from_mins.errors %} {{form.from_mins.errors|striptags}} {% else %} Specify the minute this schedule must be active from. For example 00. Possible values 00 to 59. {%endif%}
{{form.to_hours}} {% if form.to_hours.errors %} {{form.to_hours.errors|striptags}} {% else %} Specify the hour this schedule must be active till. For example 00. Possible values 00 to 23. Must be equal to or bigger than the from hour. {%endif%}
{{form.to_mins}} {% if form.to_mins.errors %} {{form.to_mins.errors|striptags}} {% else %} Specify the minutes this schedule must be active till. For example 00. Possible values 00 to 59. If from hour is the same as to hour, then the to minutes must be bigger than from minutes. {%endif%}
{% endif %}
{% endblock %}