<div class="umb-dialog umb-pane" ng-controller="Umbraco.Editors.DocumentTypes.DeleteController">

    <div class="umb-dialog-body">

        <p class="umb-abstract">
            <localize key="defaultdialogs_confirmdelete">Are you sure you want to delete</localize>
            <strong>{{currentNode.name}}</strong> ?
        </p>

        <ng-switch on="currentNode.nodeType">
            <div ng-switch-when="container">
                <umb-confirm
                    on-confirm="performContainerDelete"
                    on-cancel="cancel">
                </umb-confirm>
            </div>

            <div ng-switch-default>
                <p>
                	<i class="icon-alert red"></i>
                    <strong class="red">
                        <localize key="contentTypeEditor_allDocuments">All Documents</localize>
                    </strong>
                    <localize key="contentTypeEditor_usingThisDocument">
                        using this document type will be deleted permanently, please confirm you want to delete these as well.
                    </localize>
                </p>

                <hr />

                <label class="checkbox">
                	<input type="checkbox" ng-model="confirmed" />
                    <localize key="contentTypeEditor_yesDelete">Yes, delete</localize> {{currentNode.name}} <localize key="contentTypeEditor_andAllDocuments">and all documents using this type</localize>
                </label>

                <umb-confirm ng-if="confirmed" on-confirm="performDelete" on-cancel="cancel">
                </umb-confirm>
            </div>
        </ng-switch>


    </div>
</div>
