{% load i18n sizeformat parse_date %}

{% trans "Share Group Overview" %}


{% trans "ID" %}
{{ share_group.id }}
{% trans "Name" %}
{{ share_group.name }}
{% trans "Description" %}
{{ share_group.description }}
{% trans "Status" %}
{{ share_group.status|capfirst }}
{% trans "Created" %}
{{ share_group.created_at|parse_date }}
{% if share_group.source_share_group_snapshot_id %}
{% trans "Source SG Snapshot" %}
{% url 'horizon:project:share_group_snapshots:detail' share_group.source_share_group_snapshot_id as ssgs_url%}
{{ share_group.source_share_group_snapshot_id }}
{% endif %}
{% trans "Share Group Type" %}
{{ share_group.share_group_type_id}}
{% if share_group.availability_zone %}
{% trans "Availability Zone" %}
{{ share_group.availability_zone }}
{% endif %} {% if share_group.share_network_id %}
{% trans "Share Network" %}
{% url 'horizon:project:share_networks:share_network_detail' share_group.share_network_id as sn_url%}
{{ share_group.share_network_id }}
{% endif %} {% if share_group.share_types %}
{% trans "Share Types" %}
{% for st in share_group.share_types %}

Share Type Name: {{ st.name }}
Share Type Visibility: {% if st.is_public %}Public{% else %}Private{% endif %}
Network handling enabled: {{ st.dhss }}

{% endfor %} {% endif %} {% if share_group.members %}
{% trans "Shares" %}
{% for m in share_group.members %} {% url 'horizon:project:shares:detail' m.id as share_url%}
{% if m.name %}{{ m.name }}{% else %}{{ m.id }}{% endif %}
{% endfor %} {% endif %}