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

Policy may be scheduled always or only at specific time intervals. If no schedules are configured then policy is always activated (unless not enabled). Multiple schedules are processed one by one from top to bottom.

{% 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 %}
{% csrf_token %} {% if object_list %} {% endif %} {% for object in object_list %} {% empty %} {% endfor %}
# Monday Tuesday Wednesday Thursday Friday Saturday Sunday Time Duration
{{object.value|truncatechars:30}} {% if object.on_mon %}{%endif%} {% if object.on_tue %}{%endif%} {% if object.on_wed %}{%endif%} {% if object.on_thu %}{%endif%} {% if object.on_fri %}{%endif%} {% if object.on_sat %}{%endif%} {% if object.on_sun %}{%endif%} {{object.from_hours|stringformat:"02d"}}:{{object.from_mins|stringformat:"02d"}} - {{object.to_hours|stringformat:"02d"}}:{{object.to_mins|stringformat:"02d"}}
No schedules are configured for this policy. It means the policy will be active always. If you need to activate policy only on specific time intervals, click Add New button to create new activation schedule.
{% endif %}
{% endblock %}