{% 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 }}
{% if has_financial_view_perm %}
Financial Information {% if financial_info %}
{% if has_financial_change_perm %} Edit {% endif %} {% if has_financial_delete_perm %} Delete {% endif %}
{% else %}
{% if has_financial_add_perm %} Add Financial Info {% endif %}
{% endif %}
{% if financial_info %} {% if financial_info.non_recurring_charge %} {% endif %} {% if financial_info.commitment_period_months %} {% if financial_info.commitment_end_date %} {% else %} {% endif %} {% if financial_info.non_recurring_charge %} {% endif %} {% endif %} {% if financial_info.notes %} {% endif %}
Monthly Charge {{ financial_info.monthly_charge|floatformat:2|spacecomma }} {{ financial_info.charge_currency }}
Non-Recurring Charge {{ financial_info.non_recurring_charge|floatformat:2|spacecomma }} {{ financial_info.charge_currency }}
Commitment Period {{ financial_info.commitment_period_months }} months
Commitment End Date {{ financial_info.commitment_end_date }} Set Segment Install Date
Total Commitment Cost {{ financial_info.total_commitment_cost|floatformat:2|spacecomma }} {{ financial_info.charge_currency }}
Total Cost (incl. Setup) {{ financial_info.total_cost_including_setup|floatformat:2|spacecomma }} {{ financial_info.charge_currency }}
Notes {{ financial_info.notes|linebreaks }}
{% else %}
No financial information available for this segment. {% if has_financial_add_perm %} Add financial information {% endif %}
{% endif %}
{% endif %} {% plugin_right_page object %}
{% 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 %}