{% extends 'site.html' %} {% block title %}{{ LANG.DEPARTMENT_SETTINGS }}{% endblock %} {% block content %} {% if error_msg != '' %}{{ error_message(error_msg) }}{% endif %} {% if params.1 == 'department_added' %}{{ success_message(LANG.NEW_DEPARTMENT_CREATED) }} {% elseif params.1 == 'department_updated' %}{{ success_message(LANG.DEPARTMENT_UPDATED) }} {% elseif params.1 == 'department_removed' %}{{ success_message(LANG.DEPARTMENT_REMOVED) }} {% endif %}


{% if departments|is_array %} {% for r in departments %} {% set tdclass = (tdclass == 'trzebra'?'':'trzebra') %} {% endfor %} {% else %} {% endif %}
{{ LANG.DEPARTMENT_NAME }} {{ LANG.TYPE }} {{ LANG.USERS }} {{ LANG.TICKETS }} {{ LANG.DISPLAY_ORDER }} {{ LANG.AUTOASSING_TICKETS_PIPE }}
{{ r.name }} {% if r.type == 0 %}{{ LANG.PUBLIC }}{% else %}{{ LANG.PRIVATE }}{% endif %} {{ r.users }} {{ r.tickets }} {{ r.dep_order }} {% if r.autoassign == 1 %}{{ LANG.SELECTED }}{% else %}-{% endif %} {% if r.dep_order != 1 %}{% endif %} {% if r.dep_order != last_position %}{% endif %} {% if r.id != 1 %} {% endif %}
{{ LANG.NOTHING_TO_DISPLAY }}
{% endblock %}