{% load i18n sizeformat parse_date %}
{% load url from future %}

<div class="info row detail">
	<hr class="header_rule">
	<dl>
		<dt>{% trans "Name" %}</dt>
		<dd>{{ l2policy.name|default:_("-") }}</dd>

		<dt>{% trans "Description" %}</dt>
		<dd>{{ l2policy.description|default:_("-") }}</dd>

		<dt>{% trans "ID" %}</dt>
		<dd>{{ l2policy.id }} </dd>

                <dt>{% trans "Inject Default Route" %}</dt>
                <dd>{{ l2policy.inject_default_route }} </dd>
	</dl>
    {% if l2policy.ptgs %}
    <div class="panel panel-default">
        <div class="panel-heading"> Policy Target Groups </div>
        <div class="panel-body">
            <ul class='list-unstyled'>
            {% for ptg in l2policy.ptgs %}
            <li><a href="{% url 'horizon:project:policytargets:policy_targetdetails' policy_target_id=ptg.id %}">{{ptg.name}}:{{ptg.id}}</a></li>
            {% endfor %}
        </ul>
        </div>
    </div>
    {% endif %}
</div>
 
