{% 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 }}
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 }}
Non-Recurring Charge {{ contract_info.charge_currency }} {{ contract_info.non_recurring_charge|floatformat:2 }}
Total Contract Value {{ contract_info.charge_currency }} {{ contract_info.total_contract_value|floatformat:2 }}
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 %} {% if object.has_type_specific_data %}
Technical Specifications {{ object.get_segment_type_display }}
{% with type_data=object.get_type_specific_display %} {% if type_data %}
{% for label, value in type_data.items %}
{{ label }} {{ value }}
{% endfor %}
{% else %}
No technical specifications configured for this segment.
{% endif %} {% endwith %}
{% 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 %}