{% 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 %}
| 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 %} |
| 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 }} |
| 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 }} |
| 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 %} |
| Site | {% if object.site_a %} {{ object.site_a }} {% else %} {{ ''|placeholder }} {% endif %} |
|---|---|
| Location | {% if object.location_a %} {{ object.location_a }} {% else %} {{ ''|placeholder }} {% endif %} |
| Site | {% if object.site_b %} {{ object.site_b }} {% else %} {{ ''|placeholder }} {% endif %} |
|---|---|
| Location | {% if object.location_b %} {{ object.location_b }} {% else %} {{ ''|placeholder }} {% endif %} |