<div *ngIf="model" class="ng2-modal-dialog dialog v-center h-center">
    <div *ngIf="isViewing" class="form-group">
        <h3>View type №{{model.id}}</h3>
        <br/>
        <label>Name: </label><span>{{model.name}}</span>
        <br/>
        <label>Removed: </label><span>{{model.removed}}</span>
        <br/>
        <label for="descr">Description:</label><br/>
        <textarea class="form-control" id="descr" rows="5" readonly>{{model.description}}</textarea>
        <br/>
        <button type="button" class="btn btn-default" (click)="onClose()">Cancel</button>
    </div>
    <div *ngIf="!isViewing" class="form-group">
        <h3>{{isEditing ? "Edit" : "Add"}} type №{{model.id}}</h3>
        <form (submit)="onAction()">
            <label for="name">Name</label>
            <input [(ngModel)]="model.name" class="form-control" id="name" name="name" placeholder="Type name"/>
            <br/>
            <label for="description">Description</label>
            <br/>
            <textarea [(ngModel)]="model.description" id="description" name="description" rows="5"
                      placeholder="Type description" class="form-control">
            </textarea><br/>
            <button type="submit" class="btn btn-success">{{isEditing ? "Save" : "Add"}}</button>
            <button type="button" class="btn btn-default" (click)="onClose()">Cancel</button>
        </form>
    </div>
</div>
<div *ngIf="model" class="ng2-modal-dialog dialog v-center h-center">
    <div *ngIf="isViewing">
        <h3>View type №{{model.id}}</h3>
        <br/>
        <label>Name: </label><span>{{model.name}}</span>
        <br/>
        <label>Removed: </label><span>{{model.removed}}</span>
        <br/>
        <label for="descr">Description:</label><br/>
        <textarea class="form-control" id="descr" rows="5" readonly>{{model.description}}</textarea>
        <br/>
        <button type="button" class="btn btn-default" (click)="onClose()">Cancel</button>
    </div>
    <div *ngIf="!isViewing">
        <h3>{{isEditing ? "Edit" : "Add"}} type №{{model.id}}</h3>
        <form (submit)="onAction()">
            <label for="name">Name</label>
            <input [(ngModel)]="model.name" class="form-control" id="name" name="name" placeholder="Type name"/>
            <br/>
            <label for="description">Description</label>
            <br/>
            <textarea [(ngModel)]="model.description" id="description" name="description" rows="5"
                      placeholder="Type description" class="form-control">
            </textarea><br/>
            <button type="submit" class="btn btn-success">{{isEditing ? "Save" : "Add"}}</button>
            <button type="button" class="btn btn-default" (click)="onClose()">Cancel</button>
        </form>
    </div>
</div>
Remove redundant class from dialog
Remove redundant class from dialog
