{% extends "authentic2/manager/table.html" %}

{% load i18n %}

{% block table.head.last.column %}
  {% if perms.a2_rbac.delete_organizationalunit %}
    <th></th>
  {% endif %}
{% endblock %}
{% block table.tbody.last.column %}
  {% if perms.a2_rbac.delete_organizationalunit %}
    {% if row.record.default %}
    <td><a class="icon-remove-sign disabled" 
           title="{% trans "You cannot delete the default organizational unit, you must first set another default organiational unit." %}"></a></td>
    {% else %}
       <td><a class="icon-remove-sign" rel="popup" href="{% url "a2-manager-ou-delete" pk=row.record.pk %}"></a></td>
    {% endif %}
  {% endif %}
{% endblock %}
