{% comment %} Cascade partial rendered into the issuance modal when a workspace is picked. Context: workspace — the selected Workspace accounts — list of connected SocialAccounts in that workspace grantable_permissions — list of (perm_key, label) the issuer can grant {% endcomment %}
{% if accounts %}
{% for sa in accounts %} {% endfor %}

Select at least one. The key can only act on these accounts.

{% else %}

No connected accounts in this workspace. Connect one before issuing a key.

{% endif %}
{% if grantable_permissions %}
{% for perm_key, label in grantable_permissions %} {% endfor %}

Only permissions you currently hold in this workspace are listed.

{% else %}

You don't hold any grantable permissions in this workspace.

{% endif %}