Add member placeholder info

This commit is contained in:
Luis Cielak
2018-07-30 17:26:07 -04:00
committed by dandds
parent f8cee60baa
commit 92e65e7595
3 changed files with 51 additions and 70 deletions

View File

@@ -1,17 +1,15 @@
{% from "components.html" import EmptyState %}
{% extends "base_workspace.html" %}
{% extends "base_workspace.html.to" %}
{% block workspace_content %}
{% if not members %}
{{ EmptyState(
{% module EmptyState(
'There are currently no members in this Workspace.',
actionLabel='Invite a new Member',
actionHref='/members/new',
icon='avatar'
)}}
)%}
{% else %}
@@ -61,17 +59,17 @@
{% for m in members %}
<tr>
<td><a href="/workspaces/123456/members/789/edit" class="icon-link icon-link--large">{{ m['first_name'] }} {{ m['last_name'] }}</a></td>
<td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% endif %}</td>
<td class='table-cell--shrink'>{% if m['num_projects'] == '0' %} <span class="label label--info">No Project Access</span> {% end %}</td>
<td>{{ m['status'] }}</a></td>
<td>{{ m['workspace_role'] }}</a></td>
</tr>
{% endfor %}
{% end %}
</tbody>
</table>
</div>
{% endif %}
{% end %}
{% endblock %}
{% end %}