{% extends "modal/content.html" %} {% load humanize %} {% load settings %} {% block modal_title %}

{{ object.staff.first_name|upper }} {{ object.staff.last_name }}

{% endblock %} {% block modal_subtitle %} Beamline Support for {{ object.date }} {% endblock %} {% block modal_body %} {% now "Y-m-d" as now %} {% get_setting "MIN_SUPPORT_HOUR" 0 as MIN_SUPPORT_HOUR %} {% get_setting "MAX_SUPPORT_HOUR" 24 as MAX_SUPPORT_HOUR %} {% get_setting "SUPPORT_EMAIL" as SUPPORT_EMAIL %} {% with object.active as active %}
Current Local Time:
{% now "H:i" %} {% now "M j, Y" %}
Support Hours:
{% if MIN_SUPPORT_HOUR < 10 %}0{% endif %}{{ MIN_SUPPORT_HOUR|floatformat:"0" }}:00 - {{ MAX_SUPPORT_HOUR|floatformat:"0" }}:00

{% if active %}
Contact {{ object.staff.first_name }} at {{ object.staff.contact_email }} or {{ object.staff.contact_phone }}.
{% else %}
{% if current %} There is no local support at this time. {% else %} {{ object.staff.first_name }} will contact you on {{ object.date }} to start your beamtime. {% endif %}

Contact {% if SUPPORT_EMAIL %} {{ SUPPORT_EMAIL }} {% else %}Beamline Staff{% endif %} with questions or concerns.
{% endif %}
{% endwith %} {% endblock %}