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

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

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

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

		<dt>{% trans "Project ID" %}</dt>
		<dd>{{ policy_target.tenant_id }}</dd>
	</dl>
	{% if l3list %}
	<div class='panel panel-default'>
		<div class='panel-heading'>{% trans "L3 Policies" %}</div>
		<div class='panel-body'>
			<ul class="unstyled">
				{% for l3 in l3list %}
				<li><a href="{% url 'horizon:project:network_policy:l3policy_details' l3.id %}">{{l3.name}}:{{l3.id}}</a></li>
 
				{% endfor %}
			</ul>
		</div>
	</div>
	{% endif %}
 	{% if l2list %}
	<div class='panel panel-default'>
		<div class='panel-heading'>{% trans "L2 Policies" %}</div>
		<div class='panel-body'>
			<ul class="unstyled">
				{% for l2 in l2list %}
				<li><a href="{% url 'horizon:project:network_policy:l2policy_details' l2.id %}">{{l2.name}}:{{l2.id}}</a></li>
				{% endfor %}
			</ul>
		</div>
	</div>
	{% endif %}
</div>

