{% extends 'generic/object.html' %} {% load static %} {% load helpers %} {% load perms %} {% load plugins %} {% load render_table from django_tables2 %} {% load i18n %} {% load custom_object_utils %} {% block extra_controls %} {% if perms.dcim.change_device %} {% trans "Add Field" %} {% endif %} {% endblock %} {% block content %}
{% trans "Custom Object Type" %}
{% trans "Name" %} {{ object.name }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Last activity" %} {{ latest_change.time|isodatetime|placeholder }} {% if latest_change %}
{{ latest_change.time|timesince }} {% trans "ago" %}
{% endif %}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
{% include 'inc/panels/comments.html' %} {% plugin_right_page object %}

Fields

{% for field in object.fields.all %} {% endfor %}
{{ field }} {{ field|get_field_type_verbose_name }} {% if field.type == "object" or field.type == "multiobject" %}{{ field|get_field_object_type }}{% endif %} {% if field.required %} {% endif %} {% if field.unique %} {% endif %} {% if field.primary %} {% endif %} {toggle_text}
{% plugin_full_width_page object %}

{{ object.get_verbose_name_plural }}
{% if request.user|can_add:object %} {% trans "Add" %} {{ object.get_title_case_name }} {% endif %}

{% include 'htmx/table.html' %} {% comment %} {% for field in object.fields.all %} {% endfor %} {% for instance in custom_objects %} {% for field in object.fields.all %} {% if field.is_single_value %} {% if field.type == 'object' %} {% else %} {% endif %} {% else %} {# {% with instance|get_child_relations:field as relations %}#} {# #} {# {% endwith %}#} {% endif %} {# #} {# #} {% endfor %} {% endfor %}
{{ object.name }}{{ field }}
{{ instance|linkify }}{{ instance|get_field_value:field|linkify }}{{ instance|get_field_value:field }}{{ relations.count }}{% if field.field_type == "object" %}{{ field|get_field_object_type }}{% endif %}{% if field.many %}(Many){% endif %}
{% endcomment %}
{% endblock %}