{% extends 'base.html' %} {% load inventory_extras %} {% load ui_extras %} {% block content %}

Business unit{{ page_obj.paginator.count|pluralize }} ({{ page_obj.paginator.count }})

{{ form }}
{% if perms.inventory.add_metabusinessunit %} {% url 'inventory:create_mbu' as url %} {% button 'CREATE' url "Create new Business Unit" %} {% endif %} {% if perms.inventory.change_metabusinessunit %}
{% endif %}
{% if object_list %} {% pagination next_url previous_url %}
{% for mbu in object_list %} {% if perms.inventory.change_metabusinessunit %} {% endif %} {% if perms.inventory.view_machinesnapshot %} {% else %} {% endif %} {% for bu in mbu.get_current_business_units %} {% endfor %} {% endfor %}
Name Tags API enrollment
{{ mbu.name }} {{ mbu.name }} {% for tag in mbu.tags %} {% inventory_tag tag %} {% endfor %} {% if mbu.api_enrollment_enabled %} Available for API enrollment {% endif %} {% if perms.inventory.view_metabusinessunittag and perms.inventory.add_metabusinessunittag and perms.inventory.change_metabusinessunittag and perms.inventory.delete_metabusinessunittag and perms.inventory.add_tag %} {% endif %} {% if perms.mbu.change_metabusinessunit %} {% url 'inventory:update_mbu' mbu.pk as url %} {% button 'UPDATE' url "Edit Business Unit" %} {% endif %} {% if mbu.can_be_deleted and perms.inventory.delete_metabusinessunit %} {% url 'inventory:delete_mbu' mbu.pk as url %} {% button 'DELETE' url "Delete Business Unit" %} {% endif %}
{{ bu.source.name }} {{ bu.name }} {% for link in bu.links.all %} {{ bu.source.name }} - {{ link.anchor_text }} {% endfor %}
{% pagination next_url previous_url %} {% else %} {% if perms.inventory.add_metabusinessunit %} {% url 'inventory:create_mbu' as link %} {% no_entities 'Business Units' link %} {% else %} {% no_entities 'Business Units' %} {% endif %} {% endif %} {% endblock %} {% block extrajs %} {% endblock %}