{% extends 'remote_work/remote_work_base.html' %} {% load static %} {% load custom_tags_and_filters %} {% block title %}Previous work{% endblock %} {% block remote_work_title %}Previous work{% endblock %} {% block remote_work_tab_class %}active{% endblock %} {% block extrahead %} {% endblock %} {% block tab_content %}

This page displays remote work done by {{ facility_name }} staff on behalf of users. You can filter by which staff member performed the work, and when, by using the dropdown boxes below.

{% if remote_work_validation %}

Each charge can be validated, which means that you have confirmed that the charge is legitimate and correct, and no adjustment needs to be made to it. Press the green 'Validate' button on an individual row to validate a charge. Charges that have already been validated are highlighted in green.

Do not validate a charge if part or all of it is incorrect. Instead, visit the user office so an adjustment can be entered into the billing system. Furthermore, please visit the user office if there is a charge that you forgot to enter.

{% endif %}
{% button type="save" submit=False value="Update" icon="glyphicon-refresh" onclick="$('#hidden_data_csv').val('');$('#remote_work_form').submit();" %}
{% button type="export" submit=False value="Export" onclick="$('#hidden_data_csv').val('true');$('#remote_work_form').submit();" %}

Staff charges

{% if remote_work_validation %}{% endif %} {% for c in staff_charges %} {% admin_edit_url c request.build_absolute_uri as edit_url %} {% if edit_url %} {% else %} {% endif %} {% if remote_work_validation %} {% endif %} {% if c.note %} {% endif %} {% for area_access_record in c.areaaccessrecord_set.all %} {% admin_edit_url area_access_record request.build_absolute_uri as edit_url %} {% if edit_url %} {% else %} {% endif %} {% endfor %} {% empty %} {% endfor %}
ID Staff member Customer Project Start EndValidate
{{ c.id }}{{ c.id }}{{ c.staff_member }} {{ c.customer }} {{ c.project }} {{ c.start }} {{ c.end|default_if_none:'' }} {% url 'validate_staff_charge' c.id as validate_staff_charge_url %} {% if c.end and not c.validated %} {% button type="save" submit=False onclick="validate_charge('"|concat:validate_staff_charge_url|concat:"', this, '.staff_charge_row_"|concat:c.id|concat:"')" icon="glyphicon-ok-circle" value="Validate" %} {% endif %}
Charge note: {{ c.note|linebreaksbr }}
{{ area_access_record.id }}{{ area_access_record.id }}{{ area_access_record.area.name }} access {{ area_access_record.start }} {{ area_access_record.end|default_if_none:'' }}
{% if start_date or end_date %} No staff charges exist {% if start_date and end_date %}between {{ start_date }} and {{ end_date }}{% elif start_date %}after {{ start_date }}{% else %}before {{ end_date }}{% endif %}. {% endif %}

Tool usage

{% if remote_work_validation %}{% endif %} {% for u in usage %} {% admin_edit_url u request.build_absolute_uri as edit_url %} {% if edit_url %} {% else %} {% endif %} {% if remote_work_validation %} {% endif %} {% empty %} {% endfor %}
ID Operator User Project Start End ToolValidate
{{ u.id }}{{ u.id }}{{ u.operator }} {{ u.user }} {{ u.project }} {{ u.start }} {{ u.end|default_if_none:'' }} {{ u.tool }} {% url 'validate_usage_event' u.id as validate_usage_url %} {% if u.end and not u.validated %} {% button type="save" submit=False onclick="validate_charge('"|concat:validate_usage_url|concat:"', this, '#usage_event_row_"|concat:forloop.counter|concat:"')" icon="glyphicon-ok-circle" value="Validate" %} {% endif %}
{% if start_date or end_date %} No tool usage exist {% if start_date and end_date %}between {{ start_date }} and {{ end_date }}{% elif start_date %}after {{ start_date }}{% else %}before {{ end_date }}{% endif %}. {% endif %}
{% endblock %}