changed device_name to devices
This commit is contained in:
@ -15,10 +15,13 @@
|
||||
<ng-template rbFormValidationMessage="failure">{{locationInput.errors.failure}}</ng-template>
|
||||
<ng-template rbFormValidationMessage="required">Cannot be empty</ng-template>
|
||||
</rb-form-input>
|
||||
<rb-form-input name="device" label="device" appValidate="string" [(ngModel)]="user.device_name"
|
||||
#deviceInput="ngModel">
|
||||
<ng-template rbFormValidationMessage="failure">{{deviceInput.errors.failure}}</ng-template>
|
||||
</rb-form-input>
|
||||
<rb-array-input [(ngModel)]="user.devices" name="devices" [pushTemplate]="''">
|
||||
<rb-form-input *rbArrayInputItem="let item" rbArrayInputListener="devices" [index]="item.i"
|
||||
label="device" appValidate="string" [name]="'device-' + item.i" [ngModel]="item.value"
|
||||
#deviceInput="ngModel">
|
||||
<ng-template rbFormValidationMessage="failure">{{deviceInput.errors.failure}}</ng-template>
|
||||
</rb-form-input>
|
||||
</rb-array-input>
|
||||
<rb-icon-button icon="save" mode="primary" type="submit" [disabled]="!userForm.form.valid" (click)="saveUser()">
|
||||
Save change
|
||||
</rb-icon-button>
|
||||
|
Reference in New Issue
Block a user