Add invite links and tag for pending invite

This commit is contained in:
leigh-mil
2019-09-16 15:58:37 -04:00
parent 147fe5a7db
commit 0b6fc072ea
2 changed files with 21 additions and 1 deletions

View File

@@ -121,12 +121,21 @@
<th>Member</th>
<th>Project Permissions</th>
<th>Environment Access</th>
<th></th>
</tr>
</thead>
<tbody>
{% for member in members %}
<tr>
<td>{{ member.user_name }}</td>
<td>
<p>
{{ member.user_name }}
</p>
{% if member.role_status == 'pending' %}
<span class='label label--purple'>INVITE PENDING</span>
{% endif %}
</td>
<td>
{% for perm, value in member.permission_sets.items() %}
{{ ("portfolios.applications.members.{}.{}".format(perm, value)) | translate }}<br>
@@ -137,6 +146,16 @@
{{ env.environment_name }}{% if not env == member.environment_roles[-1]%},{% endif %}
{% endfor %}
</td>
<td>
{% if member.role_status == 'pending' %}
<p>
<a href="#">Resend Invite</a>
</p>
<p>
<a href="#">Revoke Invite</a>
</p>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>