Go back

{{ tool.name_or_child_in_use_name }}

{# Display tool status... #}
{% if tool.in_use %}
{% with tool.get_current_usage_event as current_usage_event %}

{% if current_usage_event.operator.id == customer.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 }}.

{% endwith %}
{% if customer.is_staff and tool.in_use %}

You may force {{ tool.get_current_usage_event.operator }} off 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 %}

This tool is operational but not all resources are available.

{% else %}

This tool is operational and idle.

{% endif %}
{# dangers #} {% 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 %} {# Display any resources 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 %} {# warnings #} {% if tool.unavailable_nonrequired_resources or tool.scheduled_partial_outages or tool.problems %}
{# 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 non-required resources scheduled outages... #} {% 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 t.force_shutdown %} The tool will remain shut down until this task is resolved. {% endif %} {% if t.progress_description %}
Progress updates {{ t.progress_description|linebreaksbr }}
{% endif %}
{% endfor %}
{% endif %} {% if tool.comments or customer.is_staff and tool.staff_only_comments %}
{# Display all comments... #} {% for c in tool.comments %}
{{ c.content }} {{ c.author }} wrote this comment on {{ c.creation_date }}
{% endfor %} {# Display all staff comments #} {% if customer.is_staff and tool.staff_only_comments %}
Staff Only
{% for c in tool.staff_only_comments %}
{{ c.content }} {{ c.author }} wrote this comment on {{ c.creation_date }}
{% endfor %}
{% endif %}
{% endif %} {% if rendered_configuration_html %}

Configuration

{{ rendered_configuration_html }}
{% endif %} {# Display tool control... #}
{% csrf_token %} {% if tool.in_use %} {% if tool.get_current_usage_event.operator.id == customer.id or tool.get_current_usage_event.user.id == customer.id %} {% if post_usage_questions %}

Post usage questions

{{ post_usage_questions }} {% endif %} {% if tool.allow_delayed_logoff and not tool.delayed_logoff_in_progress %}

Delayed logoff

Use preset times:
and/or use the following field to prevent others from using the tool for minutes after disabling the tool. What's this?
{% endif %}

Please answer the required questions (above) to stop using the {{ tool.name_or_child_in_use_name }}

Stop using the {{ tool.name_or_child_in_use_name }} {% if remaining_reservation_duration %} and relinquish the remaining {{ remaining_reservation_duration }} minutes of your reservation {% endif %}
{% endif %}

Make a reservation

{% include 'kiosk/tool_project_selection_snippet.html' with active_projects=customer.active_projects tool=tool %} {% else %} {% if customer.is_staff or tool.ready_to_use and tool in customer.qualifications.all %} {% include 'kiosk/tool_project_selection_snippet.html' with active_projects=customer.active_projects tool=tool %} {% elif tool not in customer.qualifications.all %}

You have not been qualified to use this tool yet.
Please contact the primary tool owner, {{ tool.primary_owner }}, if you would like to receive training for tool qualification.
{% if tool.backup_owners.all.exists %} {% if tool.backup_owners.all.count == 1 %} If you are unable to reach {{ tool.primary_owner }} then please contact the backup tool owner, {{ tool.backup_owners.all|first }}. {% elif tool.backup_owners.all.count > 1 %} If you are unable to reach {{ tool.primary_owner }} then please contact one of the backup tool owners: {% endif %} {% endif %}

{% endif %} {% endif %}
{# Spacer #}