<div class="bauhaus-editor-view">
    <h2 class="crud-title">
        <span ng-switch on="isNew()">
            <span ng-switch-when="true">
                Create new {{ type }}
            </span>
            <span ng-switch-default>
                Edit {{ type }} "{{ document.title }}{{ document.name }}"
            </span>
        </span>
    </h2>

    <div class="crud-actions">
        <button class="button" ng-click="updateDocument()">Save</button> <button class="button" ng-click="deleteDocument()">Delete</button>
    </div>

    <div class="crud-form">
        <div class="form">
            <div bauhaus-document-form ng-model="document" config="modelConfig"></div>
        </div>
    </div>
</div>

<div class="bauhaus-editor-view">
    <h2 class="crud-title">
        <span ng-switch on="isNew()">
            <span ng-switch-when="true">
                Create new {{ type }}
            </span>
            <span ng-switch-default>
                Edit {{ type }} "{{ document.title }}{{ document.name }}"
            </span>
        </span>
    </h2>

    <div class="crud-actions">
        <button class="button" ng-click="updateDocument()">Save</button> <button class="button" ng-click="deleteDocument()" ng-show="!isNew()">Delete</button>
    </div>

    <div class="crud-form">
        <div class="form">
            <div bauhaus-document-form ng-model="document" config="modelConfig"></div>
        </div>
    </div>
</div>

Hide delete button for new document
Hide delete button for new document
