{% load i18n %}
2 {% trans "Custom Object Schema" %}
{% if custom_objects_db_ready %} {% trans "Plugin ready" %} {% elif custom_objects_plugin_loaded %} {% trans "Migrations pending" %} {% else %} {% trans "Plugin not installed" %} {% endif %} {% blocktrans %}netbox-custom-objects — portable schema with comments.nsm_config per type.{% endblocktrans %}
{% if custom_objects_plugin_loaded and not custom_objects_db_ready %}
{% trans "Run migrations before importing types:" %} migrate netbox_custom_objects
{% endif %}
{% trans "Schema" %}
{% for type in cot_schema_preview %}
{{ type.slug }} — {{ type.label }}
{% if type.description %}

{{ type.description }}

{% endif %} {% if type.nsm_config_preview %}
{% trans "Rule View" %}
{% for row in type.nsm_config_preview %} {% endfor %}
{{ row.label }} {% if row.mono %}{{ row.value }}{% else %}{{ row.value }}{% endif %}
{% endif %}
{% for field in type.fields %} {% empty %} {% endfor %}
{% trans "Column" %} {% trans "Type" %} {% trans "Required" %}
{{ field.label }} {{ field.type }} {% if field.required %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}
{% trans "No columns defined." %}
{% empty %}

{% trans "No types defined." %}

{% endfor %}
{% csrf_token %}

{% trans "Imports Custom Object Types and writes nsm_config into each type's comments field." %}

{% trans "Custom Object Groups" %}
{% for group in cot_setup_groups %}
{{ group.label }}

{{ group.description }}

{% for entry in group.entries %} {% endfor %}
{% trans "Slug" %} {% trans "Label" %} {% trans "Description" %} {% trans "Status" %}
{{ entry.slug }} {{ entry.label }} {{ entry.description }} {% if entry.cot %} {% trans "present" %} {% else %} {% trans "missing" %} {% endif %}
{% endfor %} {% if all_cots_ok and all_tcs_ok %}
{% trans "Section 2 complete." %}
{% endif %}