{% extends "dashboard/operate.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block formfields %} {% if form %} {% crispy form %} {% endif %} {% if form.fields.rule.initial != None %} {% with rule=form.fields.rule.initial %}
{% trans "Port" %}:
{{ rule.dport }}/{{ rule.proto }}
{% trans "Host" %}:
{{ rule.host.hostname }}
{% trans "Vlan" %}:
{{ rule.host.vlan.name }}
{% endwith %} {% endif %} {% endblock %}