{% extends "common/base.html" %} {% load crispy_forms_tags %} {% load static %} {% block title %} Resource Detail {% endblock %} {% block content %}

Resource Detail


Resource Information

{% csrf_token %}
Name: {{ resource.name }}
Description: {{ resource.description }}
Resource Type: {{ resource.resource_type }}
Parent Resource: {% if resource.parent_resource %} {{ resource.parent_resource }} {% else %} {{ resource.parent_resource }} {% endif %}
Linked Resources: {% if resource.linked_resources.all %} {% for resource in resource.linked_resources.all %} {{ resource }}
{% endfor %} {% else %} None {% endif %}
Public/Private: {% if resource.is_public %} Public {% else %} Private {% endif %}
{% if attributes or request.user.is_superuser %}

Resource Attributes

{% if request.user.is_superuser %} Add Resource Attribute Delete Resource Attributes {% endif %}
{% if attributes %}
{% for attribute in attributes %} {% endfor %}
Attribute Value
{{attribute.resource_attribute_type.name}} {{attribute.value}}
{% endif %}
{% endif %}

Child Resources

{% if child_resources %}
{% for child in child_resources %} {% endfor %}
Resource Name WarrantyExpire ServiceEnd Vendor Serial # Model
{{child.object}} {{child.WarrantyExpirationDate}} {{child.ServiceEnd}} {{child.Vendor}} {{child.SerialNumber}} {{child.Model}}
{% else %} {% endif %}
{% endblock %}