{% extends 'base/layout.html' %} {% load i18n %} {% block title %}{% trans "Bundles" %}{% endblock %} {% block content %}
{% if messages %}
{% for message in messages %} {% endfor %}
{% endif %}

{% trans "Bundles" %}

{% trans "Deploy NSM schema, demo data, and metadata from JSON bundles. Apply NSM Schema first, then optional demo bundles." %}

{% if not custom_objects_plugin_loaded %}
{% trans "netbox-custom-objects plugin is not installed." %}
{% elif not custom_objects_db_ready %}
{% trans "Run migrations for netbox-custom-objects first." %}
{% else %}
{% trans "Available bundles" %}
{% for bundle in schema_bundles %} {% empty %} {% endfor %}
{% trans "Bundle" %} {% trans "Status" %} {% trans "Contents" %} {% trans "Actions" %}
{{ bundle.title }}
{{ bundle.slug }}
{% if bundle.description %}
{{ bundle.description }}
{% endif %} {% if bundle.missing_requires %}
{% blocktrans with reqs=bundle.missing_requires|join:", " %}Requires: {{ reqs }}{% endblocktrans %}
{% endif %}
{% if bundle.status == 'applied' %} {% trans "Applied" %} {% elif bundle.status == 'partial' %} {% trans "Partial" %} {% else %} {% trans "Missing" %} {% endif %} {% if bundle.type_count is not None %}
{% blocktrans count counter=bundle.type_count %}{{ counter }} type{% plural %}{{ counter }} types{% endblocktrans %}
{% if bundle.choice_set_count %}
{% blocktrans count counter=bundle.choice_set_count %}{{ counter }} choice set{% plural %}{{ counter }} choice sets{% endblocktrans %}
{% endif %} {% if bundle.object_count %}
{% blocktrans count counter=bundle.object_count %}{{ counter }} seed object{% plural %}{{ counter }} seed objects{% endblocktrans %}
{% endif %} {% if bundle.metadata_type_count or bundle.metadata_rulebook_count %}
{% if bundle.metadata_type_count %}{% blocktrans count counter=bundle.metadata_type_count %}{{ counter }} type metadata{% plural %}{{ counter }} type metadata blocks{% endblocktrans %}{% endif %} {% if bundle.metadata_type_count and bundle.metadata_rulebook_count %} · {% endif %} {% if bundle.metadata_rulebook_count %}{% blocktrans count counter=bundle.metadata_rulebook_count %}{{ counter }} rulebook metadata{% plural %}{{ counter }} rulebook metadata blocks{% endblocktrans %}{% endif %}
{% endif %} {% else %} {% endif %}
{% trans "No bundles found." %}
{% endif %}
{% endblock %}