<ng-template vdrDialogTitle>
    <span *ngIf="group.id">{{ 'customer.update-customer-group' | translate }}</span>
    <span *ngIf="!group.id">{{ 'customer.create-customer-group' | translate }}</span>
</ng-template>

<vdr-form-field [label]="'common.name' | translate" for="name">
    <input id="name" type="text" [(ngModel)]="group.name" [readonly]="!('UpdateCustomer' | hasPermission)" />
</vdr-form-field>

<ng-template vdrDialogButtons>
    <button type="button" class="btn" (click)="cancel()">{{ 'common.cancel' | translate }}</button>
    <button type="submit" (click)="save()" [disabled]="!group.name" class="btn btn-primary">
        <span *ngIf="group.id">{{ 'customer.update-customer-group' | translate }}</span>
        <span *ngIf="!group.id">{{ 'customer.create-customer-group' | translate }}</span>
    </button>
</ng-template>
