<template name="worklistResult">
    <table id="tblStudyList" class="worklistResult table table-striped noselect">
        <thead>
        <tr>
            <th>
                <a id="_patientName" class="sortingCell" href="#">
                    <span>Patient Name</span>
                    <i class="{{sortingColumnsIcons.patientName}}"></i>
                </a>
                <input type="text" class="form-control worklist-search" id="patientName">
            </th>
            <th>
                <a id="_patientId" class="sortingCell" href="#">
                    <span>Patient ID</span>
                    <i class="{{sortingColumnsIcons.patientId}}"></i>
                </a>
                <input type="text" class="form-control worklist-search" id="patientId">
            </th>

            {{#unless isTouchDevice}}
                <th>
                    <a id="_accessionNumber" class="sortingCell" href="#">
                        <span>Accession #</span>
                        <i class="{{sortingColumnsIcons.accessionNumber}}"></i>
                    </a>
                    <input type="text" class="form-control worklist-search" id="accessionNumber">
                </th>
            {{/unless}}

            <th>
                <a id="_studyDate" class="sortingCell" href="#">
                    <span>Study Date</span>
                    <i class="{{sortingColumnsIcons.studyDate}}"></i>
                </a>
                <input type="text" class="form-control worklist-search" name="daterange" id="studyDate">

            </th>

            {{#unless isTouchDevice}}
                <th>
                    <a id="_modalities" class="sortingCell" href="#">
                        <span>Modality</span>
                        <i class="{{sortingColumnsIcons.modalities}}"></i>
                    </a>
                    <input type="text" class="form-control worklist-search" id="modality">
                </th>
            {{/unless}}
            <th>
                <a id="_studyDescription" class="sortingCell" href="#">
                    <span>Study Description</span>
                    <i class="{{sortingColumnsIcons.studyDescription}}"></i>
                </a>
                <input type="text" class="form-control worklist-search" id="studyDescription">
            </th>

            {{#unless isTouchDevice}}
            <th>
                <a id="_numberOfStudyRelatedInstances" class="sortingCell" href="#">
                    <span># Images</span>
                    <i class="{{sortingColumnsIcons.numberOfStudyRelatedInstances}}"></i>
                </a>
                <input type="text" class="form-control worklist-search" id="numImages">
            </th>
            {{/unless}}
        </tr>
        </thead>
        <tbody id="studyListData">
        {{#each studies}}
            {{>worklistStudy }}
        {{/each}}
        </tbody>
    </table>
    {{#if showLoadingText}}
        {{>loadingText}}
    {{/if}}

    {{#if showNotFoundMessage}}
        {{>studyNotFound}}
    {{/if}}
</template>