{% extends 'common/base.html' %} {% load racks_tag %} {% block content %} {% if action == 'assign' %}

Reassign Resources

{% elif action == 'labels' %}

Manage Resource Labels

{% else %}

Perform Bulk Operations

{% endif %}
{% csrf_token %}
{% if inventory %}
Inventory Objects
{% for obj in inventory %} {% empty %} {% endfor %}
{{ obj|racks_tag }} {% if obj.label.count %}
{% for label in obj.label.all %} {{ label|racks_tag }} {% endfor %} {% endif %}
{% if obj.assigned_user %}{{ obj.assigned_user|racks_tag }}{% endif %} {% if obj.assigned_group %}{{ obj.assigned_group|racks_tag }}{% endif %}
none
{% endif %} {% if labs %}
Labs
{% for obj in labs %} {% empty %} {% endfor %}
{{ obj|racks_tag }} {% if obj.assigned_user %}{{ obj.assigned_user|racks_tag }}{% endif %} {% if obj.assigned_group %}{{ obj.assigned_group|racks_tag }}{% endif %}
none
{% endif %}
{% if action == 'assign' %}
Reassign to...
{% if multiple_matches %}

Multiple users/groups found matching this name

{% else %} {% if target %} {% if recipient %}

One possible match found

{% else %}

No users or groups found matching this name

{% endif %} {% endif %} {% endif %}
{% endif %} {% if action == 'labels' %}
Add labels to inventory objects
{% if labels|length %}
Clear labels...
{% for chunk_labels in labels|partition %}
    {% for label in chunk_labels %}
  • {% endfor %}
{% endfor %}
{% endif %} {% endif %}
{% endblock %}