{% load helpers %} {% load i18n %} {% if profile %}
{% trans "WDM Profile" %}
{% trans "Node Type" %} {{ profile.get_node_type_display }}
{% trans "Grid" %} {{ profile.get_grid_display }}
{% trans "Fiber Type" %} {{ profile.get_fiber_type_display }}
{% trans "Channel Plans" %} {{ channel_plans|length }}
{% trans "Line Port Plans" %} {{ line_port_plans|length }}
{% trans "Description" %}
{% if profile.description %} {{ profile.description|markdown }} {% else %} {% trans "None" %} {% endif %}
{% if channel_plans %}
{% trans "Channel Plans" %}
{% for cp in channel_plans %} {% endfor %}
{% trans "Position" %} {% trans "Label" %} {% trans "Wavelength (nm)" %} {% trans "MUX Port" %} {% trans "DEMUX Port" %}
{{ cp.grid_position }} {{ cp.label }} {{ cp.wavelength_nm }} {{ cp.mux_front_port_template|default:"" }} {{ cp.demux_front_port_template|default:"" }}
{% endif %} {% if line_port_plans %}
{% trans "Line Port Plans" %}
{% for lpp in line_port_plans %} {% endfor %}
{% trans "Rear Port Template" %} {% trans "Direction" %} {% trans "Role" %}
{{ lpp.rear_port_template }} {{ lpp.get_direction_display }} {{ lpp.get_role_display }}
{% endif %} {% else %}
{{ no_profile_message }}
{% endif %}