<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>DART</title>
    <link href="./bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="./chosen/chosen/chosen.css" rel="stylesheet" />
    <link href="./datatables/css/dt-bootstrap.css" rel="stylesheet">
    <link href="./css/app.css" rel="stylesheet" />
    <!--[if lt IE 9]><script src="./js/html5shim.js"></script><![endif]-->
	<link rel="shortcut icon" href="./css/vinci.png">
</head>
<body>
<header class="navbar navbar-inverse navbar-fixed-top clearfix" role="banner">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand small" href="dashboard.html" aria-label="Data Access Request Tracker"><i class="vinci-icon"></i> Data Access Request Tracker <i class="icon-chevron-right icon-white"></i></a><span class="navbar-current">Dashboard</span>
            <p class="navbar-text pull-right" role="button" aria-label="Welcome">
                <i class="icon-user icon-white"></i>Welcome <a href="#" class="active"></a>
            </p>
        </div>
    </div>
</header>
<div class="container">
    <div class="span pull-right right"><h5 id="dartReporting"><a id=reportingLink aria-label="DART Reporting Hyperlink to External Reporting" href="" target="_blank">DART Reporting</a> </h5></div>
    <br class="clear" />
    <ul id="dashboardTab" class="nav nav-tabs" role="menubar">
        <li class="active" id="to-doTab" role="menuitem"><a href="#to-do" data-toggle="tab" role="button">To-Do List <span class="badge badge-info">0</span></a></li>
        <li id="requestsTab" class="nowrap" role="menuitem"><a href="#requests" data-toggle="tab" role="button">Requests <span class="badge badge-info">0</span></a></li>
        <li id="request-administrationTab" role="menuitem"><a href="#request-administration" data-toggle="tab" role="button" id="requestTabTxt">Request Administration <span class="badge badge-info">0</span></a></li>
        <!-- li id="janitorTab" role="menuitem" hidden="hidden"><a href="#janitor" data-toggle="tab" role="button">Administration Tool</a></li -->	<!-- added in JS as a workaround for IE9 -->
    </ul>
    <!-- My To-do -->
    <div id="dashboardContent" class="tab-content tab-area" role="button">
        <div class="progress progress-striped active" id="preload">
            <div class="bar" role="progressbar" aria-live="polite">Loading...</div>
        </div>
        <div class="tab-pane fade active" id="to-do">
            <h4 id="todoTitle">To-Do List</h4>
            <div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert" tabindex="2" aria-label="Please complete these as soon as possible. Dismiss Alert.">&times;</button>
                <small><strong>You have <span class="alert-todo">0</span> to-do items!</strong> Please complete these as soon as possible by clicking on the "Complete To-Do" button.</small>
            </div>
            <div class="table-filter hide">
                <h5>Filter </h5>
                <div class="btn-group table-filter-div" data-role="controlgroup">
                    <input class="table-filter-input" type="radio" id="toDoFilterAll" name="toDoFilterButons" aria-label="All" checked/> <label class="table-filter-label btn table-filter-label-left" for="toDoFilterAll">All</label>
                    <input class="table-filter-input" type="radio" id="toDoFilterPreparatory" name="toDoFilterButons" aria-label="Preparatory" /> <label class="table-filter-label btn table-filter-label-right" for="toDoFilterPreparatory">Preparatory to Research</label>
                    <input class="table-filter-input" type="radio" id="toDoFilterResearch" name="toDoFilterButons" aria-label="Research" /> <label class="table-filter-label btn" for="toDoFilterResearch">Research</label>
<!--                     <input class="table-filter-input" type="radio" id="toDoFilterOperations" name="toDoFilterButons" aria-label="Operations" /> <label class="table-filter-label btn table-filter-label-right" for="toDoFilterOperations">Operations</label> --> 
                </div>
            </div>
            <table class="full-width table table-condensed table-bordered table-striped table-data-set small-text tablesorter" id="sortTable" aria-describedby="todoTitle" role="grid">
                <thead>
                <tr role="row">
                    <th class="header span2" role="columnheader">Date Received</th>
                    <th class="header span2" role="columnheader">Tracking #</th>
                    <th class="header span2" role="columnheader">Name</th>
                    <th class="header span2" role="columnheader">Type</th>
                    <th class="header span2" role="columnheader">Contact</th>
                    <th class="header span2" role="columnheader">Description</th>
                    <th class="header span2" role="columnheader">Actions</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
        <!-- End My To-do -->
        <!-- My Requests -->
        <div class="tab-pane fade" id="requests">
            <div class="span6 nowrap no-left">
                <h4 id="myRequestsTitle">Requests <button role="button" href="#createNewRequest" class="btn" data-toggle="modal" id="submit" tabindex="51" type="button"><i class="icon-plus-sign text-success"></i> Create a New Request</button></h4>
            </div>
            <div class="span5 pull-right right">
            </div>
            <br class="clear" />
            <div class="table-filter hide">
                <h5>Filter </h5>
                <div class="btn-group table-filter-div" data-role="controlgroup">
                    <input class="table-filter-input" type="radio" id="requestFilterAll" name="requestFilterButons" aria-label="All" checked/> <label class="table-filter-label btn table-filter-label-left" for="requestFilterAll">All</label>
                    <input class="table-filter-input" type="radio" id="requestFilterPreparatory" name="requestFilterButons" aria-label="Preparatory to Research" /> <label class="table-filter-label btn" for="requestFilterPreparatory">Preparatory to Research</label>
                    <input class="table-filter-input" type="radio" id="requestFilterResearch" name="requestFilterButons" aria-label="Research" /> <label class="table-filter-label btn" for="requestFilterResearch">Research</label>
               <!-- <input class="table-filter-input" type="radio" id="requestFilterOperations" name="requestFilterButons" aria-label="Operations" /> <label class="table-filter-label btn table-filter-label-right" for="requestFilterOperations">Operations</label> -->
                </div>
            </div>
            <table class="full-width table table-condensed table-bordered table-striped table-data-set small-text tablesorter" id="sortTableMyRequests" role="grid"  aria-describedby="myRequestsTitle">
                <thead>
                <tr role="row">
                    <th class="header span2" role="columnheader">Tracking #</th>
                    <th class="header span2" role="columnheader">Name</th>
                    <th class="header span2" role="columnheader">Type</th>
                    <th class="header span2" role="columnheader">Contact</th>
                    <th class="header span2" role="columnheader">Submitted</th>
                    <!--<th class="header span2" role="columnheader">Updated</th>-->
                    <!--<th class="header span2 nowrap" role="columnheader">Time Elapsed</th>-->
                    <th class="header span1" role="columnheader">Status</th>
                    <th class="header span1" role="columnheader">Actions</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
        <!-- End My Requests -->
        <!-- Request Administration -->
        <div class="tab-pane fade" id="request-administration">
            <div class="span6 nowrap no-left">
                <h4 id="requestAdministration">Request Administration</h4>
            </div>
            <div class="span5 pull-right right">
            </div>
            <br class="clear" />
            <div class="table-filter hide">
                <h5>Filter </h5>
                <div class="btn-group table-filter-div" data-role="controlgroup">
                    <input class="table-filter-input" type="radio" id="requestAdminFilterAll" name="requestAdminFilterButons" aria-label="All" checked/> <label class="table-filter-label btn table-filter-label-left" for="requestAdminFilterAll">All</label>
                    <input class="table-filter-input" type="radio" id="requestAdminFilterPreparatory" name="requestAdminFilterButons" aria-label="Preparatory to Research" /> <label class="table-filter-label btn" for="requestAdminFilterPreparatory">Preparatory to Research</label>
                    <input class="table-filter-input" type="radio" id="requestAdminFilterResearch" name="requestAdminFilterButons" aria-label="Research" /> <label class="table-filter-label btn" for="requestAdminFilterResearch">Research</label>                  
<!--            	<input class="table-filter-input" type="radio" id="requestAdminFilterOperations" name="requestAdminFilterButons" aria-label="Operations" /> <label class="table-filter-label btn table-filter-label-right" for="requestAdminFilterOperations">Operations</label> --> 
                </div>
            </div>
            <table class="full-width table table-condensed table-bordered table-striped table-data-set small-text tablesorter" id="sortTableRequestAdmin" role="grid" aria-describedby="requestAdministration">
                <thead>
                <tr role="row">
                    <th class="header span2" role="columnheader">Tracking #</th>
                    <th class="header span2" role="columnheader">Name</th>
                    <th class="header span2" role="columnheader">Type</th>
                    <th class="header span2" role="columnheader">Contact</th>
                    <th class="header span2" role="columnheader">Submitted</th>
                    <!--<th class="header span2" role="columnheader">Updated</th>-->
                    <!--<th class="header span2 nowrap" role="columnheader">Time Elapsed</th>-->
                    <th class="header span1" role="columnheader">Status</th>
                    <th class="header span1" role="columnheader">Actions</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
	    <!-- End Request Administration -->
	    <!-- Administration Tool -->
	    <div class="tab-pane fade" id="janitor">
	        <div class="span6 nowrap no-left">
	            <h4 id="janitorTabTitle">Administration Tool</h4>
	        </div>
	        <div class="span5 pull-right right">
	        </div>
	        <div class="search-request">        
	        <table class="full-width table table-condensed table-bordered table-striped table-data-set small-text tablesorter" id="TableAdminTool" role="grid" aria-describedby="AdministrationTool">
	        	<thead>
	        		<tr><td>Tracking Number</td><td><input type="text" value="" class="span4" id="searchtrackingNum" aria-label="Tracking Number" /></td><td><button class="btn btn-primary findRequestwithTN" aria-hidden="true">Search</button></td></tr> 
                	<tr><td>Narrative Text</td><td><input type="text" disabled value="" class="span4" id="changenarrativeTxt" aria-label="Narrative Text" /></td><td><button class="btn btn-primary changeNarrative" id="changeNarrative" data-id="" disabled aria-hidden="true">Change</button></td></tr>
            		<tr><td>Official Name</td><td><input type="text" disabled value="" class="span4" id="changeofficialNameTxt" aria-label="Official Name" maxlength="1024" /></td><td><button class="btn btn-primary changeofficialName" id="changeofficialName" data-id="" disabled aria-hidden="true">Change</button></td></tr>            		
            		<tr><td>Short Name</td><td><input type="text" disabled value="" class="span4" id="changeShortNameTxt" aria-label="Short Name" maxlength="1024" /></td><td><button class="btn btn-primary changeShortName" id="changeShortName" data-id="" disabled aria-hidden="true">Change</button></td></tr>
	        	</thead>
	        	<tbody></tbody>
	        </table>
	        </div>


			
	        <br class="clear" />
	    </div>
	    <!-- End Administration Tool -->
	    <!-- Role Tool -->
	    <div class="tab-pane fade" id="roleSwitcher">
	        <div class="span6 nowrap no-left">
	            <h4 id="roleSwitcherTabTitle">Add/Remove Roles</h4>
	        </div>
	        <div class="span5 pull-right right">
	        </div>
	        
               <div class="row-fluid person-info">
                  <div class="">
                     <table class="displayTable full-width table table-striped table-condensed small-text" aria-label="Select Group and Role" role="grid">
                        <tbody>
                           <tr role="row">
                              <th role="columnheader" aria-label="Name">Name</th>	<!-- class="name-width" -->
                              <th role="columnheader" aria-label="Group and Role">Group and Role</th>
                              <th role="columnheader" aria-label="Administration Tool">Administration Tool</th>
                              <th></th>
                           </tr>
                           <tr class="controls">
                              <td class="selected-person name hide" aria-hidden="true"></td>
                              <td id="findPeopleButtonCell"><button href="#findPeopleModal" class="btn btn-small" data-toggle="modal" id="findPeopleButton" aria-label="Find People" type="button"><i class="icon-search"></i> Find People</button></td>
                              <td>
                                 <div class="person-select-role">
                                    <label for="select-role">
                                    <select class="input-large" data-placeholder="Select a Group and Role" id="select-role" aria-label="Select a Group and Role" disabled="disabled">
                                       <option></option>
                                    </select>
                                    </label>
                                 </div>
                              </td>
                              <td><label for="admin-tool"><input class="admin-tool center" type="checkbox" id="admin-tool" aria-label="Administration Tool" disabled="disabled"/></label></td>
                              <td><button class="btn btn-primary btn-small" href="#" aria-label="Save Changes" id="changeGroupAndRole" disabled="disabled">Save Changes</button></td>
                           </tr>
                        </tbody>
                     </table>
                  </div>
               </div>

	        <br class="clear" />
	    </div>
	    <!-- End Role Tool -->
    </div>
</div>
<!-- Modals -->
<!-- Create Request Modal -->
<div id="createNewRequest" class="modal hide fade" role="dialog" aria-labelledby="createNewRequestLabel" aria-hidden="true">
    <div class="modal-header">
        <a class="close" style="color: rgb(0, 136, 204);" data-dismiss="modal"><i class="icon-remove"></i></a>
        <h1 id="createNewRequestLabel"><i class="file-icon"></i> New Request</h1>
    </div>
    <!-- form class="form-horizontal" -->
    <div class="modal-body">
        <form class="form-horizontal">
            <div class="control-group">
                <label class="control-label" for="new-official-name">Official Study Name *</label>
                <div class="controls">
                    <textarea rows="4" id="new-official-name" class="span4" maxlength="1024" required="required" aria-label="Official Study Name"></textarea>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="new-activity-type">Request Type *</label>
                <div class="controls">
                    <select id="new-activity-type" class="span4" aria-label="Please select a Request Type">
                        <option value="1" disabled selected>Please select a Request Type</option>
                         <optgroup label="Preparatory to Research">
                            <option value="Preparatory to Research Access">Preparatory to Research Access</option>
                        </optgroup>
                        <optgroup label="Research">
                            <option value="Research Data Access">Research Data Access</option>
                        </optgroup>
               <!--        <optgroup label="Non-Research" disabled>
                            <option value="Operations Data Access">Operations Data Access (not in use at this time)</option>
                        </optgroup>  -->  
                    </select>
                </div>
                <p class="offset5 required-info">* Required</p>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
        <button class="btn btn-primary validateNewRequest" id="continue">Create Request</button>
        <div class="progress progress-striped active hide">
            <div class="bar" style="width: 100%;" role="progressbar" aria-live="polite">creating request...</div>
        </div>
    </div>
    <!-- /form -->
</div>
<!-- Amend Request Modal -->
<div id="amendRequestModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="amendRequestLabel" aria-hidden="true">
    <div class="modal-header">
        <a class="close" style="color: rgb(0, 136, 204);" data-dismiss="modal"><i class="icon-remove"></i></a>
        <h1 id="amendRequestLabel"><i class="file-icon"></i> Amend Request</h1>
        <h5 class="subhead muted">REQUEST INFORMATION</h5>
    </div>
    <!-- form class="form-horizontal" -->
    <div class="modal-body">
        <form class="form-horizontal">
            <div class="control-group">
                <label class="control-label" for="officialStudyName">Official Study Name</label>
                <div class="controls">
                    <textarea rows="4" disabled id="officialStudyName" class="span4" aria-label="Official Study Name"></textarea>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="requestType">Request Type</label>
                <div class="controls">
                    <input type="text" value="Data Access" disabled class="span4" id="requestType" aria-label="Request Type" />
                    <input type="hidden" name="requestID" value="" id="requestID" aria-hidden="true" />
                </div>
            </div>

            <h5 class="subhead muted border-top">AMENDMENT INFORMATION</h5>

            <div class="control-group">
                <label class="control-label" for="narrative">Amendment Narrative *</label>
                <div class="controls">
                    <textarea rows="5" class="span4" id="narrative" required="required" aria-label="Amendment Narrative"></textarea>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
        <button class="btn btn-primary" id="amendRequest">Amend Request</button>
    </div>
    <!-- /form -->
</div>
<!-- Complete Request Modal -->
<div id="completeRequestModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="completeRequestLabel" aria-hidden="true">
    <div class="modal-header">
        <a class="close blue-close" data-dismiss="modal"><i class="icon-remove"></i></a>
        <h1 id="completeRequestLabel"><i class="icon-ok"></i> Complete Request</h1>
        <h5 class="subhead muted">REQUEST INFORMATION</h5>
    </div>
    <div class="modal-body"> </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
        <button class="btn btn-primary" id="amendRequest">Amend Request</button>
    </div>
</div>
<!-- Status Modal -->
<div id="statusModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="H1">
    <div class="modal-header">
        <a class="close" data-dismiss="modal"><i class="icon-remove"></i></a>
        <h3 class="requestStatus"></h3>
    </div>
    <div class="modal-body">
        <table class="table table-bordered status-viz" id="statusTable">
            <thead>
            <tr>
                <th></th>
                <th colspan="2"><i class="icon-time pull-left"></i> <p>Requestor</p><p class="sub">(Days)</p></th>
                <th colspan="2"><i class="icon-time pull-left"></i> <p>Reviewer</p><p class="sub">(Days)</p></th>
            </tr>
            <tr>
                <th class="span4"></th>
                <th class="subhead">Median</th>
                <th class="subhead actual">Actual</th>
                <th class="subhead">Median</th>
                <th class="subhead actual">Actual</th>
            </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
</div>
<!-- Find People modal -->
<div id="findPeopleModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="personModalLabel" aria-hidden="true">
   <div class="modal-header">
      <a class="close" style="color: rgb(0, 136, 204);" data-dismiss="modal"><i class="icon-remove"></i></a>
      <h3 id="personModalLabel"><i class="search-icon"></i> Find People By Name (Last Name, First Name)</h3>
   </div>
   <div class="modal-body">
      <form class="createNewProject form-horizontal adjust-left-margin">
         <div class="control-group">
            <label class="control-label" for="name">Name</label>
            <div class="controls">
               <input class="span4" id="name" name="name" placeholder="Enter Last Name" required="required" type="text" aria-label="Enter Last Name" />
               <button class="btn" id="findNow">Find Now</button>

               <!-- br class="clear" />
               <div class="progress progress-striped active hide" id="searchProgress" aria-hidden="true">
               	<div class="bar" style="width: 100%;">Searching...</div>
               </div -->
            </div>
         </div>
         <div class="control-group">
            <br class="clear" />
            <div class="controls">
               <div class="progress progress-striped active hide" id="searchProgress" aria-hidden="true">
               	<div class="bar" style="width: 100%;" role="progressbar" aria-live="polite">Searching...</div>
               </div>
            </div>
         </div>
         <div id="resultTable" class="control-group hide" aria-hidden="true">
            <!-- div class="controls" -->
             <!--  div class="alert alert-info hide" aria-hidden="true" -->
             <div class="alert alert-info controls hide span5" aria-hidden="true">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                <small>Click any row to select a person.</small>
             </div>
         <!-- /div -->
            <br class="clear" />  
            <div class="control-label">Results</div>
            <div class="controls">
               <table class="table table-condensed table-bordered table-striped table-data-set small-text tablesorter nowrap" id="personSortTable" role="grid">
                  <thead>
                     <tr role="row">
                        <th aria-label="Full Name" class="header" role="columnheader">Full Name</th>
                        <th aria-label="Username" class="header" role="columnheader">Username</th>
                     </tr>
                  </thead>
                  <tbody></tbody>
               </table>
            </div>
         </div>
      </form>
   </div>
   <div class="modal-footer">
      <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true" id="cancel">Cancel</button>
   </div>
</div>
<!-- Mustache Templates -->
<script type="text/templates" id="newRequestSuccessTemplate">
    <div class="alert alert-success newrequest-success fade">
        Your request was successfully submitted.
        <button type="button" class="close" data-dismiss="alert" aria-label="click to dismiss this success message">&times;</button>
    </div>
</script>
<script type="text/templates" id="reviewSuccessTemplate">
    <div class="alert alert-success review-success fade">
        {{.}} review successfully submitted.
        <button type="button" class="close" data-dismiss="alert" aria-label="click to dismiss this success message">&times;</button>
    </div>
</script>
<script type="text/templates" id="reviewErrorTemplate">
    <div class="alert alert-error review-error fade">
        Error submitting {{.}} review.
        <button type="button" class="close" data-dismiss="alert" aria-label="click to dismiss this error message">&times;</button>
    </div>
</script>

<script type="text/templates" class="loctionOptionsTemplate">
    {{#locations}}
    <option>{{.}}</option>
    {{/locations}}
</script>
<script type="text/templates" class="newRowTemplate">
    <tr class="hide">
        <td class="participant">{{name}}</td>
        <td class="location-name">{{location}}</td>
        <td><input type="checkbox" name="notify" aria-label="Notifications" {{checked}}></td>
        <td><input type="checkbox" name="data-access" aria-label="Data Access" {{checked}}></td>
        <td><a href="#" class="delete btn btn-danger" aria-label="Remove Participant"><i class="icon-trash icon-large icon-trash-action"></i></a></td>
    </tr>
</script>
<script type="text/templates" class="newPrimaryTemplate">
    {{#locations}}
    <tr>
        <td class='primary-location'><label for="{{locationId}}"><i class="icon-star-empty icon-large"></i><input type="radio" name="primary" id="{{locationId}}" value="{{location}}" {{#primary}}checked{{/primary}} class="hide" aria-label="Primary Site"></label></td>
        <td class='location-name'>{{location}}</td>
        <td class='primary-investigator'><a href="#" class="edit-primary-investigator"><i class="icon-pencil"></i> {{primaryInvestigator}}</a></td>
    </tr>
    {{/locations}}
</script>
<script type="text/templates" class="piOptionsTemplate">
    <button type="button" class="close" data-dismiss="select">&times;</button>
    <select name="pi" class="input-medium piSelect" aria-label="Select a Participant">
        {{#participants}}
        <option value="{{.}}">{{.}}</option>
        {{/participants}}
    </select>
</script>

<!-- ToDo datatable with bDeferRender option -->
<script type="text/templates" class="singleTaskRowTemplate_dateReceived">
        <td class="participant">{{dateReceived}}</td>
</script>
<script type="text/templates" class="singleTaskRowTemplate_trackingNumber">
        <td class="tracking">{{trackingNumber}}</td>
</script>
<script type="text/templates" class="singleTaskRowTemplate_activityName">
        {{^reviewTask}}
 		{{#preparatoryRequest}}
        <td class="project-name"><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td class="project-name"><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td class="project-name"><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        {{/reviewTask}}
        {{#reviewTask}}
        {{#preparatoryRequest}}
        <td class="project-name"><a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td class="project-name"><a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td class="project-name"><a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        {{/reviewTask}}
</script>
<script type="text/templates" class="singleTaskRowTemplate_activityType">
        <td class="project-type">{{activityType}}</td>
</script>
<script type="text/templates" class="singleTaskRowTemplate_contact">
        <td class="project-type">{{contact}}</td>
</script>
<script type="text/templates" class="singleTaskRowTemplate_description">
        <td class="description">{{description}}</td>
</script>
<script type="text/templates" class="singleTaskRowTemplate_completeButton">
        <td>
        {{^reviewTask}}
            {{#preparatoryRequest}}
            <a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/preparatoryRequest}}
            {{#researchRequest}}
            <a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/researchRequest}}
            {{#operationsRequest}}
            <a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/operationsRequest}}
        {{/reviewTask}}
        {{#reviewTask}}
            {{#prepartoryRequest}}
            <a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/prepartoryRequest}}
            {{#researchRequest}}
            <a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/researchRequest}}
            {{#operationsRequest}}
            <a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/operationsRequest}}
        {{/reviewTask}}
        <button class="btn btn-primary btn-mini nowrap complete" data-id="{{taskId}}">Complete To-Do</button>
        </a></td>
</script>
<script type="text/templates" class="taskRowTemplate">
    {{#tasks}}
    <tr class="{{taskId}}" data-id="{{taskId}}" id="task{{taskId}}">
        <td class="participant">{{dateReceived}}</td>
        <td class="tracking">{{trackingNumber}}</td>
        {{^reviewTask}}
    	{{#preparatoryRequest}}
        <td class="project-name"><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td class="project-name"><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td class="project-name"><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        {{/reviewTask}}
        {{#reviewTask}}
        {{#preparatoryRequest}}
        <td class="project-name"><a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td class="project-name"><a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td class="project-name"><a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        {{/reviewTask}}
        <td class="project-type">{{activityType}}</td>
        <td class="project-type">{{contact}}</td>
        <td class="description">{{description}}</td>

        <td>
        {{^reviewTask}}
			{{#preparatoryRequest}}
            <a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/preparatoryRequest}}
            {{#researchRequest}}
            <a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/researchRequest}}
            {{#operationsRequest}}
            <a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/operationsRequest}}
        {{/reviewTask}}
        {{#reviewTask}}
            {{#preparatoryRequest}}
            <a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/preparatoryRequest}}
            {{#researchRequest}}
            <a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/researchRequest}}
            {{#operationsRequest}}
            <a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">
            {{/operationsRequest}}
        {{/reviewTask}}
        <button class="btn btn-primary btn-mini nowrap complete" data-id="{{taskId}}">Complete To-Do</button>
        </a></td>
    </tr>
    {{/tasks}}
</script>

<!--  Requestor datatable with bDeferRender option -->
<script type="text/templates" class="singleRequestRowTemplate_trackingNumber">
        <td class="nowrap">{{trackingNumber}}</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_activityName">
        {{#preparatoryRequest}}
        <td><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
</script>
<script type="text/templates" class="singleRequestRowTemplate_requestType">
        <td class="project-type">{{requestType}}</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_contact">
        <td class="project-type">{{contact}}</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_submitted">
        <td>{{submitted}}</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_status">
		<td>
		<div class="span1">
		{{#workflowNameList}}
				<a href="#statusModal" data-id="{{requestId}}" data-workflowid="{{workflowId}}" data-toggle="modal">
				<label class="pull-right status-cursor" data-id="{{requestId}}" data-workflowid="{{workflowId}}"><span class="{{padLeft}}" style="padding-right:0.5em;">{{#workflowName}}{{workflowName}}{{/workflowName}}</span></label>
				</a>
				<br class="clear" />
		{{/workflowNameList}}
		</div>
		<div class="span6 pull-left">
		{{#workflowStatusList}}
				<a href="#statusModal" data-id="{{requestId}}" data-workflowid="{{workflowId}}" data-toggle="modal">
				<label class="label status-cursor {{statusClass}}" data-id="{{requestId}}" data-workflowid="{{workflowId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status">
				</a>
				<br class="clear" />
		{{/workflowStatusList}}
		</div>
		</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_status_singleAnchor">
		<td>
		{{#statusList}}
			<a href="#statusModal" data-id="{{requestId}}" data-workflowid="{{workflowId}}" data-toggle="modal">
			<div class="span2 text-right">{{#workflowName}}{{workflowName}}{{/workflowName}} </div>
			<div class="span6 text-left"><label class="label status-cursor {{statusClass}}" data-id="{{requestId}}" data-workflowid="{{workflowId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status"></div>
			</a>
			<br class="clear" />
		{{/statusList}}
		</td>
</script>
<script type="text/templates" class="singleRequestRowTemplate_actions">
        <td>
            <div class="btn-group request-actions" data-id="{{requestId}}">
                <a class="btn" href="#"><i class="icon-user"></i> Actions</a>
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    {{#preparatoryRequest}}
                    <li class="small-text"><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/preparatoryRequest}}
                    {{#researchRequest}}
                    <li class="small-text"><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/researchRequest}}
                    {{#operationsRequest}}
                    <li class="small-text"><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/operationsRequest}}
                    {{#requestor}}
                    {{#amendable}}
                    <li class="small-text"><a href="#amendRequestModal" data-id="{{requestId}}" data-toggle="modal" class="amendButton"><i class="icon-edit"></i> <span class="choiceText">Amend</span></a></li>
                    {{/amendable}}
                    <!-- <li class="small-text"><a href="#" class="closeRequest" data-id="{{requestId}}"><i class="icon-trash icon-trash-action"></i> Close</a></li> -->
                    {{/requestor}}
                </ul>
            </div>
        </td>
</script>
<script type="text/templates" class="singleRequestRowTemplate">
        <td class="nowrap">{{trackingNumber}}</td>
        {{#preparatoryRequest}}
        <td><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        <td class="project-type">{{requestType}}</td>
        <td class="project-type">{{contact}}</td>
        <td>{{submitted}}</td>
        <!--<td>{{updated}}</td>-->
        <!--<td>{{daysElapsed}}</td>-->
        <td><a href="#statusModal" data-id="{{requestId}}" data-toggle="modal"><label class="label status-cursor {{statusClass}}" data-id="{{requestId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status"></a></td>
        <td>
            <div class="btn-group request-actions" data-id="{{requestId}}">
                <a class="btn" href="#"><i class="icon-user"></i> Actions</a>
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    {{#preparatoryRequest}}
                    <li class="small-text"><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/preparatoryRequest}}
                    {{#researchRequest}}
                    <li class="small-text"><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/researchRequest}}
                    {{#operationsRequest}}
                    <li class="small-text"><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/operationsRequest}}
                    {{#requestor}}
                    {{#amendable}}
                    <li class="small-text"><a href="#amendRequestModal" data-id="{{requestId}}" data-toggle="modal" class="amendButton"><i class="icon-edit"></i> <span class="choiceText">Amend</span></a></li>
                    {{/amendable}}
                    <!--<li class="small-text"><a href="#" class="closeRequest" data-id="{{requestId}}"><i class="icon-trash icon-trash-action"></i> Close</a></li>-->
                    {{/requestor}}
                </ul>
            </div>
        </td>
</script>

<script type="text/templates" class="requestRowTemplate">
    {{#requests}}
    <tr>
        <td class="nowrap">{{trackingNumber}}</td>
        {{#preparatoryRequest}}
        <td><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        <td class="project-type">{{requestType}}</td>
        <td class="project-type">{{contact}}</td>
        <td>{{submitted}}</td>
        <!--<td>{{updated}}</td>-->
        <!--<td>{{daysElapsed}}</td>-->
        <td><a href="#statusModal" data-id="{{requestId}}" data-toggle="modal"><label class="label status-cursor {{statusClass}}" data-id="{{requestId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status"></a></td>
        <td>
            <div class="btn-group request-actions" data-id="{{requestId}}">
                <a class="btn" href="#"><i class="icon-user"></i> Actions</a>
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    {{#preparatoryRequest}}
                    <li class="small-text"><a href="./create-new-preparatory.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/preparatoryRequest}}
                    {{#researchRequest}}
                    <li class="small-text"><a href="./create-new-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/researchRequest}}
                    {{#operationsRequest}}
                    <li class="small-text"><a href="./non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" class="editButton" data-id="{{requestId}}"><i class="icon-edit"></i> <span class="choiceText">{{#editable}}Edit{{/editable}}{{^editable}}View{{/editable}}</span></a></li>
                    {{/operationsRequest}}
                    {{#requestor}}
                    {{#amendable}}
                    <li class="small-text"><a href="#amendRequestModal" data-id="{{requestId}}" data-toggle="modal" class="amendButton"><i class="icon-edit"></i> <span class="choiceText">Amend</span></a></li>
                    {{/amendable}}
                    <!--<li class="small-text"><a href="#" class="closeRequest" data-id="{{requestId}}"><i class="icon-trash icon-trash-action"></i> Close</a></li>-->
                    {{/requestor}}
                </ul>
            </div>
        </td>
    </tr>
    {{/requests}}
</script>

<!--  Reviewer datatable with bDeferRender option -->
<script type="text/templates" class="singleAdminister-requestRowTemplate_activityName">
 		{{#preparatoryRequest}}
        <td><a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td><a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td><a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
</script>
<script type="text/templates" class="singleAdminister-requestRowTemplate_status">
		<td>
		{{#workflowStatusList}}
				<a href="#statusModal" data-id="{{requestId}}" data-workflowid="{{workflowId}}" data-toggle="modal">
				<label class="label status-cursor {{statusClass}}" data-id="{{requestId}}" data-workflowid="{{workflowId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status">
				</a>
				<br class="clear" />
		{{/workflowStatusList}}
		</td>
</script>
<script type="text/templates" class="singleAdminister-requestRowTemplate_actions">
        <td>
            <div class="btn-group">
                <a class="btn" href="#"><i class="icon-user"></i> Actions</a>
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li class="small-text">
                        {{#preparatoryRequest}}
                        <a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/preparatoryRequest}}
                        {{#researchRequest}}
                        <a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/researchRequest}}
                        {{#operationsRequest}}
                        <a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/operationsRequest}}
                        <i class="icon-edit"></i> <span class="choiceText">Review</span>
                        </a>
                    </li>
                </ul>
            </div>
        </td>
</script>

<script type="text/templates" class="administer-requestRowTemplate">
    {{#requests}}
    <tr>
        <td class="nowrap">{{trackingNumber}}</td>
        {{#preparatoryRequest}}
        <td><a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/preparatoryRequest}}
        {{#researchRequest}}
        <td><a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/researchRequest}}
        {{#operationsRequest}}
        <td><a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}">{{activityName}}</a></td>
        {{/operationsRequest}}
        <td class="project-type">{{requestType}}</td>
        <td class="project-type">{{contact}}</td>
        <td>{{submitted}}</td>
        <!--<td>{{updated}}</td>-->
        <!--<td>{{daysElapsed}}</td>-->
        <td><a href="#statusModal" data-id="{{requestId}}" data-toggle="modal"><label class="label status-cursor {{statusClass}}" data-id="{{requestId}}">{{status}}</label><img id="spinner{{requestId}}" src="images/loader.gif" class="hide" alt="Calculating Review Status"></a></td>
        <td>
            <div class="btn-group">
                <a class="btn" href="#"><i class="icon-user"></i> Actions</a>
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li class="small-text">
                        {{#preparatoryRequest}}
                        <a href="./review/review-preparatory-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/preparatoryRequest}}
                        {{#researchRequest}}
                        <a href="./review/review-project.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/researchRequest}}
                        {{#operationsRequest}}
                        <a href="./review/review-non-research-request.html?id={{activityId}}&rid={{requestId}}&revid={{reviewId}}&wid={{workflowId}}" data-id="{{requestId}}" class="reviewButton">
                        {{/operationsRequest}}
                        <i class="icon-edit"></i> <span class="choiceText">Review</span>
                        </a>
                    </li>
                </ul>
            </div>
        </td>
    </tr>
    {{/requests}}
</script>

<script type="text/templates" class="requestStatusTemplate">
    <h3 class="requestStatus">Request Status <small><span class="text-info">{{#dateRange}}({{dateRange}}){{/dateRange}}</span></small> <span class="muted pull-right">{{trackingNumber}}</span></h3>
</script>
<script type="text/templates" class="reviewStatusTemplate">
    {{#reviews}}
    <tr id="{{groupNameNoSpaces}}">
        <td class="{{statusClass}}">{{groupName}} {{#status}}<label class="label pull-right">{{status}}</label>{{/status}}</td>
        <td class="td-number median" id="requestorMedian{{id}}">{{requestorMedianDaysElapsed}}</td>
        <td class="td-number" id="requestorActual{{id}}">{{requestorDaysElapsed}}</td>
        <td class="td-number median" id="reviewerMedian{{id}}">{{medianDaysElapsed}}</td>
        <td class="td-number" id="reviewerActual{{id}}">{{daysElapsed}}</td>
    </tr>
    {{/reviews}}

    {{#displayTotals}}
    <tr class="total">
        <td>Total </td>
        <td class="td-number">{{totalRequestorMedianDaysElapsed}}</td>
        <td class="td-number">{{totalRequestorDaysElapsed}}</td>
        <td class="td-number">{{totalMedianDaysElapsed}}</td>
        <td class="td-number">{{totalDaysElapsed}}</td>
    </tr>
    {{/displayTotals}}
</script>

<script type="text/templates" class="adminGroupTabTemplate">
    <a href="#request-administration" data-toggle="tab" role="button" id="requestTabTxt">{{groupName}} Request Administration <span class="badge badge-info">{{reqCount}}</span></a>
</script>

<script type="text/templates" class="todoTabTemplate">
    <a href="#to-do" data-toggle="tab" role="button">To-Do List <span class="badge badge-info">{{.}}</span></a>
</script>

<script type="text/templates" class="requestTabTemplate">
    <a href="#requests" data-toggle="tab" role="button">Requests <span class="badge badge-info">{{.}}</span></a>
</script>

<!-- Admin Tool Mustache Templates -->
<script type="text/templates" class="adminReview">
    <table class="full-width table table-condensed table-bordered table-striped table-data-set small-text tablesorter adminListData" id="adminReviewSortTable">
        <tbody></tbody>
    </table>
</script>
<script type="text/templates" class="adminTemplateRow">
    {{#templates}}
    <tr>
        <td class="span1"><label for="{{id}}"><input type="checkbox" id="{{id}}" data-id="{{id}}" class="adminndsReviewCheckBoxes" {{^active}}disabled{{/active}} aria-label="Review" /></label></td>
        <td>{{name}}</td>
    </tr>
    {{/templates}}
</script>
<script type="text/templates" class="errorMsgTemplate">
    <br class="clear" />
    <div class="alert alert-error">
    	<button type="button" class="close" data-dismiss="alert">&times;</button>
    	<strong>Error!</strong>
    </div>
    <table>
    {{#errors}}
    	<tr>         	
    		<td class='msg-info'>{{.}}</td>         	
    	</tr>
    {{/errors}}
    </table>        
</script>
<script type="text/templates" class="reviewStatusMsgTemplate">
    <br class="clear" />
    <div class="alert alert-success">
    	<button type="button" class="close" data-dismiss="alert">&times;</button>
    	<strong>Review status: </strong> 
    </div> 
    <table>
    {{#status}}			
    	<tr>
    		<td class='msg-info'>{{.}}</td>
    	</tr>
    {{/status}}
    </table>
</script>

<script type="text/templates" class="selectPersonTemplate">
	<a href="#findPeopleModal" class="edit-primary-investigator" role="button" data-toggle="modal"><i class="icon-pencil"></i> {{.}}</a>
</script>
<script type="text/templates" class="findPersonOptionsTemplate">
	{{#persons}}
	<tr role="row" data-dismiss="modal">
		<td id="fullName">{{fullName}}</td>
		<td id="username">{{name}}</td>
	</tr>
	{{/persons}}
</script>
<script type="text/templates" class="roleAndGroupOptionsTemplate">
	{{#rolesAndGroups}}
		<option data-groupid="{{groupId}}" data-roleid="{{roleId}}" value="{{groupId}}_{{roleId}}">{{displayName}}</option>
	{{/rolesAndGroups}}
</script>


<!-- JS -->
<script src="./js/jquery.min.js" type="text/javascript"></script>
<script src="./js/jquery-ui.js" type="text/javascript"></script>
<script src="./bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="./chosen/chosen/chosen.jquery.min.js" type="text/javascript"></script>
<script src="./js/mustache.min.js" type="text/javascript"></script>
<script src="./JSON-js-master/json2.js"></script>
<script src="./datatables/js/jquery.dataTables.js"></script>
<script src="./datatables/js/dt-bootstrap.min.js"></script>
<script src="./js/jquery.cookie.js" type="text/javascript"></script>
<script src="./js/app.js" type="text/javascript"></script>
<script src="./js/dashboard.js"></script>
</body>
</html>
