{% extends "layouts/settings.html" %} {% comment %} The organization's workspaces, in the shape contacts/tag_list.html established. The create form is a modal opened from the header, like every other "new" control in the settings column — the pages are one click apart, and disagreeing about where that control lives is the kind of thing that makes a product feel assembled rather than designed. Archived state is the whole point of this page: it is the only way back to an archived workspace, so it reads as a pill on the row rather than as a word in a column. {% endcomment %} {% load common_extras %} {% block title %}Workspaces · DemandTrail Messaging{% endblock %} {% block content_wrap %}{% endblock %} {% block content %}
{% if can_manage %} {% modal "new-workspace" title="New workspace" %}
{% csrf_token %}
{% endmodal %} {% endif %} {% if workspaces %}
{% for workspace in workspaces %}
{% if workspace.icon %}{{ workspace.icon }}{% else %}{% include "partials/_nav_icon.html" with name="grid" icon_size=19 %}{% endif %}
{{ workspace.name }} {% if workspace.is_archived %}Archived{% endif %}
{% if workspace.id in member_workspace_ids %}You are a member{% else %}You do not have access{% endif %}
{% if workspace.id in member_workspace_ids and not workspace.is_archived %} Open {% endif %} {% if can_manage %} {% endif %}
{% endfor %}
{% else %}

No workspaces yet

A workspace is one shop, brand or team, with its own inbox.

{% endif %}
{% endblock %} {% block alpine_components %}{{ block.super }}{% include "partials/_list_behaviours.html" %}{% endblock %}