{% load i18n %}
<form action="{{ manage_access_url }}" method="post">{% csrf_token %}
    <table class="table table-striped table-with-form-fields acl-table" id="{{table_id}}">
    <thead>
        <tr>
        <th></th>
        <th>{% trans "Who" %}</th>
        <th><i id="manage-access-select-all" class="fa fa-times"></i></th>
        </tr>
    </thead>
    <tbody>
        {% for member in shared_with_users %}
        <tr>
        <td>
{#          <img class="profile-avatar" src="{{ i.user.profile.get_avatar_url }}"/>#}
        </td>
        <td>
{#            <a href="{% url "dashboard.views.profile" username=i.user.username %}"#}
{#            title="{{ i.user.username }}">#}
{#            {% include "dashboard/_display-name.html" with user=i.user show_org=True %}#}
{#            </a>#}
          {{ member.name }}
        </td>
        <td>
            <input type="checkbox" name="remove-u-{{ member.project_id }}" title="{% trans "Remove" %}"/>
        </td>
        </tr>
        {% endfor %}
        {% for member in shared_with_groups %}
        <tr>
        <td><i class="fa fa-group"></i></td>
        <td>
{#            <a href="{% url "dashboard.views.group-detail" pk=i.group.pk %}">#}
            {{ member.name }}
{#            </a>#}
        </td>
        <td>
            <input type="checkbox" name="remove-g-{{ member.id }}" title="{% trans "Remove" %}"/>
        </td>
        </tr>
        {% endfor %}
        <tr>
          <td><i class="fa fa-plus"></i></td>
          <td>{{aclform.name }}</td>
          <td></td>
        </tr>
    </tbody>
    </table>
    <div class="form-actions">
    <button type="submit" class="btn btn-success">{% trans "Save" %}</button>
    </div>
</form>
