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

Edit Task ${task.task_name|h}

Back to Task | Back to Case

Task History

% for history in task_history: % endfor
Date User Changes
${history['date']|h} ${history['user'].fullname|h} % if not isinstance(history['change_log'], basestring): % for entry, change in history['change_log'].iteritems(): The ${entry|h} changed from ${change[0]|h} to ${change[1]|h}
% endfor % else: ${history['change_log']|h} % endif

Edit Task Details

${forms.formTextField("Task Name", "task_name", "task_name", "form_label", "input_long", value=task.task_name, first=True)} ${forms.formTextField("Task Files Location", "location", "location", "form_label", "input_long", value=task.location)} ${forms.formTextArea("Task Description", "background", "background", "form_label", "addeditcase", value=task.background)} ${forms.formSelectBox("Task Type", "task_type", "task_type", "form_label", "input_long", task_type_options, value=task.task_type, please_select=False)}

% if task_investigators_and_qa_history:

Investigators & QA Partners History

% for history in task_investigators_and_qa_history: % endfor
Date User Changes
${history['date']|h} ${history['user'].fullname|h} % for entry, change in history['change_log'].iteritems(): % if change[0] == "ADD": The ${entry|h} was assigned to ${change[1]|h}
% elif change[0] == "DEL": ${change[1]|h} was removed from ${entry|h}
% else: The ${entry|h} changed from ${change[0]|h} to ${change[1]|h}
% endif % endfor
% endif

Edit Investigators & QA Partners

${forms.formSelectBox("Principle Investigator", "primary_investigator", "primary_investigator", "form_label", "input_long", investigators, first=True, please_select=True, value=principle_inv)} ${forms.formSelectBox("Secondary Investigator", "secondary_investigator", "secondary_investigator", "form_label", "input_long", investigators, please_select=True, value=secondary_inv)} ${forms.formSelectBox("Principle QA Partner", "primary_qa", "primary_qa", "form_label", "input_long", qas, please_select=True, value=principle_qa)} ${forms.formSelectBox("Secondary QA Partner", "secondary_qa", "secondary_qa", "form_label", "input_long", qas, please_select=True, value=secondary_qa)}