<%inherit file="/base/base.html"/> <%namespace file="/utils/forms.html" name="forms" /> <%namespace file="/utils/sidebars.html" name="sidebars" /> <%def name="javascripts()" filter="trim"> <%def name="not_yet_begun()" filter="trim">

Set Status to Work in Progress

Task ${task.task_name|h} is currently allocated to you, but work has not yet begun. Click here to set the status to work in progress.

% if task.status != task_statuses['complete']:

Work on ${task.case.case_name|h}: Task ${task.task_name|h}

% else:

${task.case.case_name|h}: Task ${task.task_name|h} has been completed

% endif

View task summary

% if task.status != task_statuses['complete']:
% if start == True:

Success!

You have changed the status of ${task.task_name|h} to work in progress.

% endif % if success:

Success!

The task notes have been updated.

% endif % if task.status == task_statuses['start'] and current_user.id in [inv.id for inv in task.investigators]: ${not_yet_begun()} % else: % if len(task.notes) != 0:

Case Notes

% endif % if csv_location is not None:

Export the notes to % if pdf_location is not None: PDF, % endif % if rtf_location is not None: RTF, % endif % if pdf_location and rtf_location: and % endif spreadsheet.

% endif % if len(case_note_dates) > 0:
    % for i, dates in enumerate(case_note_dates):
  • ${dates|h}
  • % endfor
% for i, dates in enumerate(case_note_dates):
% for note in task.notes: % if note.date_time.strftime("%d %b %Y") == dates:
Date & Time: ${note.date|h} Author: ${note.author.fullname|h}
${note.note}
Hash of note: % if note.check_hash(): ${note.hash|h} % else: ${note.hash|h} % endif
% endif % endfor
% endfor
% endif

Update Case Notes

${forms.formTextArea("Notes", "notes", "notes", "form_label", "addeditcase_notes", first=True)}

% endif
% endif % if task.status == task_statuses['progress']:
% if success_qa:

Success!

You have successfully assigned someone to do QA and they have been notified.

% endif % if len(task.QAs) < 2:

Assign QA

% if len(task.QAs) == 0:

No one has been selected to do QA. Please select an investigator to QA your work.

% else:

Assign a second QA investigator.

% endif <% assign_num = "2" if len(task.QAs) == 0 else "1" %>
% if task.principle_QA is None: ${forms.formSelectBox("Primary QA Investigator", "investigator", "investigator", "form_label", "addeditcase", qa_partner_list, please_select=True)} % endif % if len(task.QAs) == 0: ${forms.formSelectBox("Secondary QA Investigator (optional)", "investigator2", "investigator2", "form_label", "addeditcase", qa_partner_list, please_select=True)} % elif task.secondary_QA is None: ${forms.formSelectBox("Secondary QA Investigator", "investigator", "investigator", "form_label", "addeditcase", qa_partner_list, please_select=True)} % endif

% endif

% if len(task.QAs) != 0:

Request QA

${forms.formSelectBox("To", "qa_partners", "qa_partners", "form_label", "addeditcase", qa_partners, please_select=True, first=True)} ${forms.formTextField("Message Subject", "subject", "subject", "form_label", "input_long", value="QA for " + task.case.case_name + " " + task.task_name)} ${forms.formTextArea("Message body", "body", "body", "form_label", "addeditcase")}

% endif
% endif % if task.status != task_statuses['start'] and task.status != task_statuses['complete']:
% if task.status == task_statuses['start']: ${not_yet_begun()} % else:

Upload file

Upload file...

% endif
% endif % if task.status == task_statuses['deliver']:

Set Status to Delivered

Task ${task.task_name|h} has been QA passed and is ready for delivery.

Click here to set the status to delivered.

% endif