<div id="deleteDocument" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="deleteDocumentLabel">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<h5 class="modal-title" id="deleteDocumentLabel">Confirm deletion</h5>
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">
						<ion-icon name="close-outline"></ion-icon>
					</span>
				</button>
			</div>

			<div class="modal-body">
				<p><strong id="about_to_delete_items">You are about to delete the following item(s):</strong></p>

				<ul class="nav flex-column" id="delete-files"></ul>

				<script type="text/template" id="deleteTemplate">
					{{ if(mode === 'details') { }}
		                {{ if(is_document_link == true) { }}
		                    <li>
		                        <span class="glyphicons-new-window glyphicons"></span> {{- title }}
		                        <input type="hidden" name="delete_type" id="deleteDocumentLink" value="2" />
		                    </li>
						{{ } else if(version_count > 1) { }}
						<li>
							<div class="form-check">
								<label>
									<input type="radio" name="delete_type" id="deleteThisVersion" value="0" checked="checked" />
									<txt name="documents:delete_type:this_version_only">this Version only.</txt>
								</label>
							</div>
						</li>
						<li>
							<div class="form-check">
								<label>
									<input type="radio" name="delete_type" id="deleteEntireDocument" value="1" />
									<txt name="documents:delete_type:the_entire_document">the entire Document.</txt>
									<small class="form-text text-muted" name="documents:delete_type:all_version_alert">This will delete ALL versions from the system.</small>
								</label>
							</div>
						</li>
						{{ } else { }}
							<li>
								<div class="form-check">
									<label>
										{{- title }}
										<txt name="documents:delete_type:the_entire_document">the entire Document.</txt>
									</label>
								</div>
							</li>
						{{ } }}
					{{ } }}
					{{ if(mode === 'list') { }}
						{{ if(type === 'document' || type === 'document_version') { }}
							<li id="{{-id }}">
								{{ if(response) { }}
									<span class="float-right mt-1 delete-label badge badge-pill badge-{{= success }}">{{-message}}</span>
								{{ } }}
								<span class="{{- icon }}"></span> {{- title }}
							</li>
						{{ } }}
						{{ if(type === 'folder') { }}
							<li id="{{-id }}">
								{{ if(response) { }}
									<span class="float-right delete-label badge badge-pill badge-{{= success }}">{{- message }}</span>
								{{ } }}
								<ion-icon name="folder-outline"></ion-icon> {{- title }}
							</li>
						{{ } }}
					{{ } }}
				</script>
			</div>

			<div class="modal-footer">
				<button type="button" id="deleteCancel" class="btn btn-secondary" data-dismiss="modal"><loc name="common:cancel">[Cancel]</loc></button>
				<input type="submit" id="deleteConfirm" class="btn btn-danger" value="Confirm Delete" name="documents:confirm_delete" />
				<button type="button" id="deleteClose" class="btn btn-secondary" data-dismiss="modal"><loc name="common:close">[Close]</loc></button>
			</div>
		</div>
	</div>
</div>
