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

Sub manifest{{ paginator.count|pluralize }} ({{ paginator.count }})

{{ form }}
{% if perms.monolith.add_submanifest %}
{% url 'monolith:create_sub_manifest' as url %} {% button 'CREATE' url "Create new Sub Manifest" %}
{% endif %}
{% if object_list %} {% pagination next_url previous_url %} {% if perms.monolith.change_submanifest or perms.monolith.delete_submanifest %} {% endif %} {% for sub_manifest in object_list %} {% endfor %}
Business unit Name Description
{% with sub_manifest.meta_business_unit as mbu %} {% if mbu %} {% if perms.inventory.view_metabusinessunit %} {{ mbu }} {% else %} {{ mbu }} {% endif %} {% else %} - {% endif %} {% endwith %} {{ sub_manifest.name }} {{ sub_manifest.description|default:"-"|urlize|linebreaksbr }} {% if perms.monolith.change_submanifest %} {% url 'monolith:update_sub_manifest' sub_manifest.pk as url %} {% button 'UPDATE' url "Edit Sub Manifest" %} {% endif %} {% if sub_manifest.can_be_deleted and perms.monolith.delete_submanifest %} {% url 'monolith:delete_sub_manifest' sub_manifest.pk as url %} {% button 'DELETE' url "Delete Sub Manifest" %} {% endif %}
{% pagination next_url previous_url %} {% elif form.has_changed %} {% url 'monolith:sub_manifests' as empty_results_url %} {% empty_results empty_results_url %} {% endif %} {% endblock %}