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

{% trans "Name" %}
{{ rule.name|default:_("-") }}
{% trans "Description" %}
{{ rule.description|default:_("-") }}
{% trans "ID" %}
{{ rule.id }}
{% trans "Project ID" %}
{{ rule.tenant_id }}
{% trans "Action" %}
{{ rule.action|upper }}
{% trans "Protocol" %}
{{ rule.protocol|default:_("ANY")|upper }}
{% trans "Source IP Address" %}
{{ rule.source_ip_address|default:_("ANY") }}
{% trans "Source Port" %}
{{ rule.source_port|default:_("ANY") }}
{% trans "Destination IP Address" %}
{{ rule.destination_ip_address|default:_("ANY") }}
{% trans "Destination Port"%}
{{ rule.destination_port|default:_("ANY") }}
{% trans "Used in Policy" %}
{% if rule.policy %} {% url 'horizon:project:firewalls:policydetails' rule.policy.id as policy_url %} {{ rule.policy.name|default:rule.policy.id }} {% else %} {% trans "-" %} {% endif %}
{% trans "Position in Policy" %}
{{ rule.position|default:_("-") }}
{% trans "Shared" %}
{{ rule.shared|yesno|capfirst }}
{% trans "Enabled" %}
{{ rule.enabled|yesno|capfirst }}