lose-text="Delete" close-action="document.deleteDoc(doc)" modal="true">
                        <div class="ui-dialog-content">
                            <p>Are you sure you want to delete that document?</p>
                        </div>
                    </ui-dialog>
                </div>
                <ui-preview id="view-document"></ui-preview>
            </div>
        </div>
    </ui-file-upload>
    <ui-handy-tip  ng-if="document.docs.length > 0" tip-text="document.handyTipText"></ui-handy-ti