{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% load thumbnail %} {% block head_title %}{% trans "Resource Type" %}: {{ resource_type.name }}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}resource-types{% endblock %} {% block body_base %}
{% include "_messages.html" %} {% trans "Resource Type" %}: {{ resource_type.name }}   {% if agent %}
{% trans "Change" %}
{% if resource_type.is_deletable %}
{% trans "Delete" %}
{% endif %} {% if not resource_type.is_work %}
{% trans "Create Resource" %}
{% endif %} {% endif %} {% if resource_type.own_recipes %} {% if resource_type.recipe_is_staged %} {% trans "View Recipe" %} {% else %} {% trans "View Recipe" %} {% endif %} {% endif %} {% if agent %} {% if not resource_type.is_work %} {% if resource_type.recipe_is_staged %} {% else %} {% endif %} {% if resource_type.producing_process_type_relationships %} {% trans "Change Recipe" %} {% else %} {% trans "Create Manufacturing Recipe" %} {% endif %} {% if not resource_type.producing_process_type_relationships %} {% trans "Create Workflow Recipe" %} {% endif %} {% trans "Plan" %} {% if resource_type.producing_process_type_relationships %} {% trans "Plan using recipe" %} {% endif %} {% endif %} {% endif %} {% trans "All Resource Types" %}
{% if agent %} {% if not resource_type.is_work %} {% endif %} {% endif %}
Context Agent: {% if resource_type.context_agent %}{{ resource_type.context_agent }}{% endif %}
Facet Values: {{ resource_type.facet_list }}
{{ resource_type.description|urlize|linebreaks }}
{% with resource_type.parent as parent %} {% if parent %}
{% trans "Parent" %}: {{ parent.name }} {% if parent.own_recipes %}    {% if parent.recipe_is_staged %} {% trans "View Recipe" %} {% else %} {% trans "View Recipe" %} {% endif %} {% endif %}
{% endif %} {% endwith %} {% if resource_type.direct_children %}

{% trans "Children" %}:

{% endif %} {% if resource_type.photo %} {% elif resource_type.photo_url %} {% endif %} {% if resource_type.wanting_process_types %}

{% trans "Used in these recipes" %}:

{% endif %} {% if resource_type.all_resources %}

{% trans "Resources" %}:

{% endif %} {% if resource_type.wanting_commitments %}

{% trans "Scheduled Requirements" %}:

{% endif %} {% if resource_type.producing_commitments %}

{% trans "Scheduled Production" %}:

{% endif %} {% if agent %} {% endif %} {% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}