<template name="studyDateList">
    <div class="studyDateList">
        <label>Study Date:</label>
        <span class="loading"><i class="fa fa-spinner fa-spin"></i></span>
        <select id="selectStudyDate">
            {{#each relatedStudies}}
                {{ #if timepointName }}
                <option value="{{studyInstanceUid}}" selected={{selected}}>{{formatDA studyDate}} ({{timepointName}}): {{studyDescription}}</option>
                {{ else }}
                <option value="{{studyInstanceUid}}" selected={{selected}}>{{formatDA studyDate}}: {{studyDescription}}</option>
                {{ /if }}
            {{/each}}
        </select>
    </div>
</template>