{% extends "common/common_detail.html" %}
{% load i18n signage_tags mapentity_tags signage_tags %}
{% block detailspanel %}
{% direction_on_lines_enabled as is_direction_on_lines_enabled %}
{% trans "Code" %} |
{{ object }} |
{% trans "Signage" %} |
{{ object.signage }}
|
{{ object|verbose:"number" }} |
{{ object.number }} |
{{ object|verbose:"type" }} |
{{ object.type }} |
{% if not is_direction_on_lines_enabled %}
{{ object|verbose:"direction" }} |
{{ object.direction }} |
{% endif %}
{{ object|verbose:"condition" }} |
{% if object.condition %}{{ object.condition }}{% else %}{% trans "None" %}{% endif %} |
{{ object|verbose:"color" }} |
{% if object.color %}{{ object.color }}{% else %}{% trans "None" %}{% endif %} |
{{ object.signage|verbose:"structure" }} |
{% if object.structure %}{{ object.structure }}{% else %}{% trans "None" %}{% endif %} |
{% lines_enabled as is_lines_enabled %}
{% if is_lines_enabled %}
{% trans "Lines" %}
{% if object.order_lines.exists %}
{% trans "Code" %} |
{% if is_direction_on_lines_enabled %}{% trans "Direction" %} | {% endif %}
{% trans "Text" %} |
{% trans "Picto" %} |
{% trans "Distance" %} |
{% trans "Time" context "duration" %} |
{% endif %}
{% for line in object.order_lines.all %}
{{ line }} |
{% if is_direction_on_lines_enabled %}{{ line.direction }} | {% endif %}
{{ line.text }} |
{{ line.pictogram_name|default_if_none:"" }} |
{{ line.distance_pretty }} |
{{ line.time_pretty }} |
{% endfor %}
{% endif %}
{{ block.super }}
{% endblock detailspanel %}