{% extends "mapentity/mapentity_detail_attributes.html" %} {% load i18n signage_tags mapentity_tags %} {% block attributes %}
{{ object|verbose:"structure" }} | {{ object.structure }} |
---|---|
{{ object|verbose:"name" }} | {{ object.name }} |
{{ object|verbose:"code" }} | {{ object.code|default:"" }} |
{{ object|verbose:"type" }} | {{ object.type }} |
{{ object|verbose:"condition" }} | {{ object.condition }} |
{{ object|verbose:"description" }} | {% if object.description %}{{ object.description|safe }} {% else %}{% trans "None" %}{% endif %} |
{{ object|verbose:"implantation_year" }} | {{ object.implantation_year|default:"" }} |
{{ object|verbose:"printed_elevation" }} | {{ object.printed_elevation|meters|default:"" }} |
{% trans "Coordinates" %} | {{ object.coordinates|default:"" }} |
{{ object|verbose:"sealing" }} | {{ object.sealing|default:"" }} |
{{ object|verbose:"manager" }} | {{ object.manager|default:"" }} |
{{ object|verbose:"published" }} | {{ object.published|yesno|title }} |
{% trans "Code" %} | {% trans "Color" %} | {% trans "Direction" %} | {% trans "Condition" %} | {% trans "Text" %} | {% trans "Picto" %} | {% trans "Distance" %} | {% trans "Time" context "duration" %} | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{ blade }} | {{ blade.color|default_if_none:"" }} | {{ blade.direction }} | {{ blade.condition|default_if_none:"" }} | {% for line in blade.order_lines.all %} {% if not forloop.first %}||||||||
{% endif %} | {{ line.text }} | {{ line.pictogram_name|default_if_none:"" }} | {{ line.distance_pretty|default_if_none:"" }} | {{ line.time_pretty|default_if_none:"" }} | {% empty %}{% endfor %} |
{% if perms.signage.add_blade %} {% if user.profile.structure == object.structure or perms.authent.can_bypass_structure %} {% trans "Add a new blade" %} {% else %} {% trans "Add a new blade" %} {% endif %} {% endif %}
{% endif %} {% endif %} {{ block.super }} {% endblock attributes %}