{% extends 'generic/object.html' %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load plugins %} {% load tabs %} {% load i18n %} {% load perms %} {% load custom_filters %} {% load render_table from django_tables2 %} {% block extra_controls %} {# Add button to create Circuit from Segment data #} {% if perms.circuits.add_circuit %} {% trans "Generate Circuit" %} {% endif %} {% endblock extra_controls %} {% block content %}
Segment
Name {{ object.name|placeholder }}
Segment Type {{ object.get_segment_type_display }}
Network Label {{ object.network_label|placeholder }}
Install Date {{ object.install_date|placeholder }}
Termination Date {{ object.termination_date|placeholder }}
Provider {% if object.provider %} {{ object.provider }} {% else %} {{ ''|placeholder }} {% endif %}
Provider ID {{ object.provider_segment_id|placeholder }}
Status {{ object.get_status_display }}
Ownership Type {{ object.get_ownership_type_display }}
Date Status {% include 'cesnet_service_path_plugin/inc/date_status_badge.html' with record=object %}
{% plugin_left_page object %}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %}
Path Information {% if object.has_path_data %} {% else %} {% endif %}
{% if object.has_path_data %} {% if object.path_notes %} {% endif %} {% endif %}
Has Path Data {% if object.has_path_data %} Yes {% else %} No {% endif %}
Path Length {% if object.path_length_km %} {{ object.path_length_km }} km {% else %} {{ ''|placeholder }} {% endif %}
Source Format {{ object.get_path_source_format_display|default:object.path_source_format|placeholder }}
Path Notes {{ object.path_notes|linebreaks }}
{% plugin_right_page object %}
{% if has_contract_view_perm %}
Active Contract Information {% if contract_info %}
Detail View {% if has_contract_change_perm %} Edit {% endif %} {% if has_contract_add_perm and contract_info.is_active %} New Version {% endif %}
{% else %}
{% if has_contract_add_perm %} Add Contract Info {% endif %}
{% endif %}
{% if contract_info %} {% if contract_info.non_recurring_charge %} {% endif %} {% if contract_info.commitment_end_date %} {% endif %} {% if contract_info.notes %} {% endif %}
Contract Number {{ contract_info.contract_number|placeholder }}
Contract Type {{ contract_info.get_contract_type_display }}
Version v{{ contract_info.version }} {% if contract_info.is_active %} Active {% else %} Superseded {% endif %}
Currency {{ contract_info.get_charge_currency_display }}
Recurring Charge {{ contract_info.charge_currency }} {{ contract_info.recurring_charge|floatformat:2|spacecomma }}
Recurring Period {{ contract_info.get_recurring_charge_period_display|placeholder }}
Number of Charges {{ contract_info.number_of_recurring_charges|placeholder }}
Total Recurring Cost {{ contract_info.charge_currency }} {{ contract_info.total_recurring_cost|floatformat:2|spacecomma }}
Non-Recurring Charge {{ contract_info.charge_currency }} {{ contract_info.non_recurring_charge|floatformat:2|spacecomma }}
Total Contract Value {{ contract_info.charge_currency }} {{ contract_info.total_contract_value|floatformat:2|spacecomma }}
Start Date {{ contract_info.start_date|placeholder }}
End Date {% if contract_info.end_date %} {{ contract_info.end_date }} {% else %} {{ ''|placeholder }} {% endif %}
Commitment End Date {{ contract_info.commitment_end_date }}
Notes {{ contract_info.notes|linebreaks }}
{% else %}
No contract information available for this segment. {% if has_contract_add_perm %} Add contract information {% endif %}
{% endif %}
Contract Version History
{% if contract_chains %} {% for chain in contract_chains %} {% if chain.version_history %}
{{ chain.latest.contract_number|default:"Contract" }} {{ chain.version_count }} version{{ chain.version_count|pluralize }}
{% for version in chain.version_history %} {% endfor %}
Version Type Status Actions
v{{ version.version }} {{ version.get_contract_type_display }} {% if version.is_active %} Active {% else %} Superseded {% endif %} {% if version.pk != selected_contract_id %} View {% else %} Current {% endif %}
{% endif %} {% endfor %} {% else %}
No contract version history available.
{% endif %}
{% endif %}
Technical Specifications {{ object.get_segment_type_display }}
{% if object.segment_type == 'dark_fiber' %} {% if object.dark_fiber_data %} {% with data=object.dark_fiber_data %}
{% if data.fiber_mode %}
Fiber Mode {{ data.get_fiber_mode_display }}
{% endif %} {% if data.single_mode_subtype %}
Single-mode Subtype {{ data.get_single_mode_subtype_display }}
{% endif %} {% if data.multimode_subtype %}
Multimode Subtype {{ data.get_multimode_subtype_display }}
{% endif %} {% if data.jacket_type %}
Jacket Type {{ data.get_jacket_type_display }}
{% endif %} {% if data.fiber_attenuation_max %}
Fiber Attenuation (dB/km) {{ data.fiber_attenuation_max }}
{% endif %} {% if data.total_loss %}
Total Loss (dB) {{ data.total_loss }}
{% endif %} {% if data.total_length %}
Total Length (km) {{ data.total_length }}
{% endif %} {% if data.number_of_fibers %}
Number of Fibers {{ data.number_of_fibers }}
{% endif %} {% if data.connector_type_side_a %}
Connector Side A {{ data.get_connector_type_side_a_display }}
{% endif %} {% if data.connector_type_side_b %}
Connector Side B {{ data.get_connector_type_side_b_display }}
{% endif %}
{% endwith %} {% else %}
No dark fiber technical specifications configured. Add Dark Fiber Data
{% endif %} {% elif object.segment_type == 'optical_spectrum' %} {% if object.optical_spectrum_data %} {% with data=object.optical_spectrum_data %}
{% if data.wavelength %}
Wavelength (nm) {{ data.wavelength }}
{% endif %} {% if data.spectral_slot_width %}
Spectral Slot Width (GHz) {{ data.spectral_slot_width }}
{% endif %} {% if data.itu_grid_position %}
ITU Grid Position {{ data.itu_grid_position }}
{% endif %} {% if data.chromatic_dispersion %}
Chromatic Dispersion (ps/nm) {{ data.chromatic_dispersion }}
{% endif %} {% if data.pmd_tolerance %}
PMD Tolerance (ps) {{ data.pmd_tolerance }}
{% endif %} {% if data.modulation_format %}
Modulation Format {{ data.get_modulation_format_display }}
{% endif %}
{% endwith %} {% else %}
No optical spectrum technical specifications configured. Add Optical Spectrum Data
{% endif %} {% elif object.segment_type == 'ethernet_service' %} {% if object.ethernet_service_data %} {% with data=object.ethernet_service_data %}
{% if data.port_speed %}
Port Speed (Mbps) {{ data.port_speed }}
{% endif %} {% if data.vlan_id %}
VLAN ID {{ data.vlan_id }}
{% endif %} {% if data.vlan_tags %}
VLAN Tags {{ data.vlan_tags }}
{% endif %} {% if data.encapsulation_type %}
Encapsulation Type {{ data.get_encapsulation_type_display }}
{% endif %} {% if data.interface_type %}
Interface Type {{ data.get_interface_type_display }}
{% endif %} {% if data.mtu_size %}
MTU Size (bytes) {{ data.mtu_size }}
{% endif %}
{% endwith %} {% else %}
No ethernet service technical specifications configured. Add Ethernet Service Data
{% endif %} {% else %}
No technical specifications available for this segment type.
{% endif %}
{% include './inc/topology_visualization.html' %} {% include './inc/topology_segment_card.html' %}
Side A
Site {% if object.site_a %} {{ object.site_a }} {% else %} {{ ''|placeholder }} {% endif %}
Location {% if object.location_a %} {{ object.location_a }} {% else %} {{ ''|placeholder }} {% endif %}
Side B
Site {% if object.site_b %} {{ object.site_b }} {% else %} {{ ''|placeholder }} {% endif %}
Location {% if object.location_b %} {{ object.location_b }} {% else %} {{ ''|placeholder }} {% endif %}
{% load render_table from django_tables2 %}
Related Circuits
{% render_table circuits_table 'inc/table.html' %} {% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
{% load render_table from django_tables2 %}
Related ServicePaths
{% render_table service_paths_table 'inc/table.html' %} {% include 'inc/paginator.html' with paginator=service_paths_table.paginator page=service_paths_table.page %}
{% plugin_full_width_page object %}
{% endblock content %}