{% if device == 'mobile' %}

{{ tool.name_or_child_in_use_name }}

{% else %}

{{ tool.name_or_child_in_use_name }}

{% endif %}
{% if tool.serial %}
s/n : {{tool.serial| safe }}
{% endif %} {# Display tool status... #}
{% if tool.in_use %}
{% with tool.get_current_usage_event as current_usage_event %}

{% if current_usage_event.operator.id == user.id %} You are using this tool {% else %} {{ current_usage_event.operator }} is using this tool {% endif %} {% if current_usage_event.operator.id != current_usage_event.user.id %} on behalf of {{ current_usage_event.user }} {% endif %} for the project named {{ current_usage_event.project.name }} since {{ current_usage_event.start|date:"l @ g:i A" }}.

{% endwith %}
{% if time_left %}
Your reservation for this tool will end at {{ time_left|date:"g:i A" }}. The remainder of your reservation will be relinquished when you stop using this tool.
{% endif %} {% elif tool.delayed_logoff_in_progress %} {% with tool.get_delayed_logoff_usage_event as delayed_logoff_event %}

{{ delayed_logoff_event.operator }} has finished using the {{ tool.name_or_child_in_use_name }} but delayed logoff is in effect. The tool will be available at {{ delayed_logoff_event.end|time }}.

{% endwith %} {% elif not tool.operational or tool.required_resource_is_unavailable or tool.scheduled_outages %}

This tool is shut down.

{% elif tool.nonrequired_resource_is_unavailable or tool.scheduled_partial_outages %}

This tool is operational but not all resources are available.

{% else %}

This tool is operational and idle.

{% endif %} {% if tool_rate %}
{% autoescape off %} {{ tool_rate }} {% endautoescape %}
{% endif %}
{% if tool.unavailable_required_resources or tool.scheduled_outages %}
{# Display any unavailable required resources... #} {% for r in tool.unavailable_required_resources %}
A required resource is unavailable: {{ r.name }} ({{ r.category }}) {{ r.restriction_message }}
{% endfor %} {% if tool.scheduled_outages %} {% for o in tool.scheduled_outages %}
{{ o.title }} ({{ o.resource.category }}) {% if o.details %}{{ o.details }}{% endif %} {{ o.creator }} scheduled this outage from {{ o.start }} until {{ o.end }}.
{% endfor %} {% endif %}
{% endif %} {% if tool.unavailable_nonrequired_resources or tool.scheduled_partial_outages %}
{# Display any unavailable non-required resources... #} {% for r in tool.unavailable_nonrequired_resources %}
An optional resource is unavailable: {{ r.name }} ({{ r.category }}) {{ r.restriction_message }}
{% endfor %} {# Display any outage for non-required resources... #} {% for o in tool.scheduled_partial_outages %}

An optional resource has an outage: {{ o.resource.name }} ({{ o.resource.category }})

{{ o.title }}{% if o.details %}: {{ o.details }}{% endif %}
{{ o.creator }} scheduled this outage from {{ o.start }} until {{ o.end }}.
{% endfor %}
{% endif %} {% if tool.problems %}
{# Display all problems and shutdowns... #} {% for t in tool.problems %}
{% if t.force_shutdown %} {% else %} {% endif %}
{% if t.problem_category %}{{ t.problem_category }}{% endif %} {{ t.problem_description }} {% if t.estimated_resolution_time %}Estimated resolution time is {{ t.estimated_resolution_time }}.{% endif %}
This task was created by {{ t.creator }} on {{ t.creation_time }}. {% if user.is_staff %} You can update or resolve this task. {% endif %} {% if t.force_shutdown %} The tool will remain shut down until this task is resolved. {% endif %} {% if t.creator.id == user.id %} You may cancel this task if it was mistakenly created.
{% csrf_token %}
{% endif %}
{% if t.progress_description %}
Progress updates {{ t.progress_description|linebreaksbr }}
{% endif %} {% if t.task_images %}
images:
{% endif %}
{% endfor %}
{% endif %} {% if tool.comments or user.is_staff and tool.staff_only_comments|length > 0 %}
{# Display all comments... #} {% for c in tool.comments %}
{% if user.id == c.author.id or user.is_staff %} {% endif %} {% if user.id == c.author.id or user.is_staff %} {% endif %}
{{ c.content }} {{ c.author }} wrote this comment on {{ c.creation_date }} {% if user.id == c.author.id or user.is_staff %}
{% csrf_token %} Hide this comment.
{% endif %}
{% endfor %} {# Display all staff comments #} {% if user.is_staff and tool.staff_only_comments|length > 0 %}
Staff Only
{% for c in tool.staff_only_comments %}
{% if user.id == c.author.id or user.is_staff %} {% endif %} {% if user.id == c.author.id or user.is_staff %} {% endif %}
{{ c.content }} {{ c.author }} wrote this comment on {{ c.creation_date }} {% if user.id == c.author.id or user.is_staff %}
{% csrf_token %} Hide this comment.
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{{ rendered_configuration_html }}
{# Display tool control... #}
{% if tool.in_use %} {% if tool.get_current_usage_event.operator.id == user.id or tool.get_current_usage_event.user.id == user.id %} {{ post_usage_questions }} {% if tool.allow_delayed_logoff and not tool.delayed_logoff_in_progress %}
Prevent others from using the tool for minutes after disabling the tool. What's this?
{% endif %}

{% endif %} {% else %} {% if user.is_staff %}

What would you like to do?

{% if user.charging_staff_time %} {% with user.get_staff_charge as staff_charge %}
{% endwith %} {% else %}
{% endif %}
{% elif tool.operational and not tool.required_resource_is_unavailable and not tool.delayed_logoff_in_progress and not tool.scheduled_outage_in_progress %} {% include 'tool_control/get_projects.html' with active_projects=user.active_projects user_id=user.id %} {% endif %} {% if user.is_staff or tool.ready_to_use %} {% endif %} {% endif %}
{% if tool.description or tool.image %}
{% if tool.description %}

{{tool.description| safe }}

{% endif %} {% if tool.image %}
{% endif %}
{% endif %}
{# Spacer #}
{% if user.is_staff and tool.in_use %}

You may force {{ tool.get_current_usage_event.operator }} off this tool.

{% endif %}

{{ tool.primary_owner }} is primarily responsible for this tool and can be contacted with any questions or concerns about the tool.

{% if tool.backup_owners.all.count == 1 %} {% with tool.backup_owners.all|first as backup %}

If you are unable to reach {{ tool.primary_owner }} then please contact the backup tool owner, {{ backup }}.

{% endwith %} {% elif tool.backup_owners.all.count > 1 %}

If you are unable to reach {{ tool.primary_owner }} then please contact {% for x in tool.backup_owners.all %} {% if not forloop.last %} {{ x }}, {% else %} or {{ x }}. {% endif %} {% endfor %}

{% endif %} {% if tool.notification_email_address %}

Problem reports for the {{ tool.name_or_child_in_use_name }} are automatically emailed to {{ tool.notification_email_address }}.

{% endif %}

The {{ tool.name_or_child_in_use_name }} is located in room {{ tool.location }}.

You may dial the phone that is closest to the {{ tool.name_or_child_in_use_name }} at extension {{ tool.phone_number }}.

{% if user.is_staff %}
{% include 'tool_control/qualified_users.html' %}
{% endif %} {% if tool.required_resource_set.exists %}

Resources that are required for this tool to operate

    {% for u in tool.required_resource_set.all %}
  • {{ u.name }} {% if u.category %}({{ u.category }}){% endif %}
  • {% endfor %}
{% endif %} {% if tool.nonrequired_resource_set.exists %}

Resources that are optional for this tool to operate

    {% for u in tool.nonrequired_resource_set.all %}
  • {{ u.name }} ({{ u.category }})
  • {% endfor %}
{% endif %}

Task & comment history for this tool


Contains
Between
and
Go
{# Spacer #}
{% for config in configs %}
On {{ config.modification_time|default:'Current' }} {{ config.user }} changed the configuration
{{ config.html }}
{% endfor %}
{% csrf_token %}

Use this form to report a problem relating to the currently selected tool. The {{ facility_name }} staff will be notified of the problem by email and the details of the problem will be visible to everyone on the website.

{% if task_categories %}
{% endif %} {% if task_statuses and user.is_staff %}
{% endif %}
{% if user.is_staff %}
{% endif %}
{# Spacer #}
{% csrf_token %}

Use this form to comment on the operating status of the selected tool. The comment will be visible to everyone on the website for informational purposes. (Note: if there is something wrong with the tool then please report a problem instead of creating a comment). You may remove the comment at any time because you are its author.

{% if user.is_staff %}
{% endif %}
{# Spacer #}