<div class="card mb-3" id="your_drafts">
	<div class="card-header" name="documents:home:my_drafts">[My Drafts]</div>
	<div class="card-body">
		<ul id="draft_items" class="nav flex-column list-group list-group-flush checked-out-items"></ul>
	</div>
</div>

<script type="text/template" id="drafts_template">
    <li class="dropdown list-group-item px-1">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="{{=icon}}"></span> {{- file_name}}</a>

        <ul class="dropdown-menu ml-0 ml-lg-3 float-right" role="menu" aria-labelledby="dLabel">
            <a rel="tooltip" data-original-title="${documents:docs_list_item:document_error.title}" data-placement="bottom" class="documentLink documentTitle text-danger"></a>
            {{ if (can_approve == 1) { }}
            <li>
                <a class="dropdown-item" name="publish" href="#publish" data-doc-id="{{-doc_id}}"><ion-icon name="checkbox-outline"></ion-icon> <txt name="documents:home:approve_draft">[Approve Draft]</txt></a>
            </li>
            {{ } }}
            <li>
                <a class="dropdown-item" href="/intranet/documents/{{=parent_id}}/{{=doc_id}}/?draft=1"><span class="glyphicons-info-sign glyphicons"></span> <txt name="documents:dashboard_actions:view_properties"></txt></a>
            </li>
            <li>
                <a class="dropdown-item" href="/intranet/documents/{{=parent_id}}/{{=doc_id}}/{{-file_name}}?draft=1&action=download"><span class="glyphicons-download glyphicons"></span> <txt name="documents:dashboard_actions:download"></txt></a>
            </li>
            {{ if (can_delete == 1) { }}
            <li>
                <a class="dropdown-item" name="reject" href="#reject" data-doc-id="{{-doc_id}}"><ion-icon name="trash-outline"></ion-icon> <txt name="documents:home:delete_draft">[Delete Draft]</txt></a>
            </li>
            {{ } }}
        </ul>
    </li>
</script>

