{% extends "base.html" %} {% load i18n %} {% load static %} {% load formatstring %} {% block title %}{% translate 'Distributor' %}: {{ distributor }}{% endblock %} {% block header_bar %} {% translate 'Distributor' %}: {{ distributor.name }} {{ distributor.description }} {% endblock %} {% block header_icons %} {% if user.is_staff %}
  • {% endif %} {% endblock %} {% block content %} {% if distributor.icon %} {% endif %} {% if distributor.search_link %} {% endif %} {% if distributor.phone %} {% endif %} {% if distributor.email %} {% endif %} {% if distributor.created_at != distributor.changed_at %} {% endif %}
    {% translate 'Name' %} {{ distributor.name }}
    {% translate 'Description' %} {{ distributor.description }}
    {% translate 'Icon' %}
    {% translate 'Web link' %} {% if distributor.web_link %}{{ distributor.web_link }}{% else %}-{% endif %}
    {% translate 'Search' %}
    {% translate 'Phone' %} {{ distributor.phone }}
    {% translate 'E-Mail' %} {{ distributor.email }}
    {% translate 'Tags' %}
      {% for tag in distributor.tags.all %}
    • {{ tag.name }}
    • {% empty %} {% translate 'No tags' %} {% endfor %}
    {% translate 'Created at' %}{{ distributor.created_at }}
    {% translate 'Changed at' %}{{ distributor.changed_at }}

    Items

    {% url 'distributor-detail' distributor.id as this_url %} {% include "inventory/pagination.html" with url=this_url id="paginator_top" param="item" paginator=items %} {% include "inventory/item_list.html" with items=items show_manufacturer=1 %} {% include "inventory/pagination.html" with url=this_url id="paginator_top" param="item" paginator=items %} {% endblock %}