{% extends 'base/layout.html' %} {% block title %}Pull Sheet: {{ cable }}{% endblock %} {% block content %}

Pull Sheet

Cable: {{ cable.label|default:"—" }}
Type: {{ cable.get_type_display|default:"—" }}
Status: {{ cable.get_status_display|default:"—" }}
Cable Length: {{ cable.length|default:"—" }}{% if cable.length %} {{ cable.get_length_unit_display }}{% endif %}
Color: {% if cable.color %} #{{ cable.color }} {% else %}—{% endif %}
Description: {{ cable.description|default:"—" }}
{% if not route.valid %}
Incomplete Route: This cable's route has {{ route.gaps|length }} gap{{ route.gaps|length|pluralize }}. The pull sheet may not be accurate.
{% endif %}

Route — {{ segment_count }} Segment{{ segment_count|pluralize }}

{% for segment in segments %} {% empty %} {% endfor %}
# Pathway Type From To Length Notes
{{ forloop.counter }} {% if segment.pathway %} {{ segment.pathway.name }} {% else %} {% endif %} {% if segment.pathway %} {{ segment.pathway.get_pathway_type_display }} {% else %}—{% endif %} {% if segment.pathway %} {% with ep=segment.pathway.start_endpoint %} {% if ep %}{{ ep }}{% else %}—{% endif %} {% endwith %} {% else %}—{% endif %} {% if segment.pathway %} {% with ep=segment.pathway.end_endpoint %} {% if ep %}{{ ep }}{% else %}—{% endif %} {% endwith %} {% else %}—{% endif %} {% if segment.pathway and segment.pathway.length %} {{ segment.pathway.length }} m {% else %}—{% endif %} {% if segment.comments %} {{ segment.comments|truncatewords:5 }} {% else %}—{% endif %}
No pathway segments assigned to this cable.
{% if segments %} {% endif %}
{% endblock %}