FS-10310 [verto_communicator]: Adding validation at change login information modal
This commit is contained in:
parent
db2486919d
commit
3b8d65f906
|
@ -2,15 +2,15 @@
|
|||
<h3 class="modal-title">{{ 'LOGIN_INFORMATION' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">{{ 'NAME' | translate}}</label>
|
||||
<input type="text" name="name" class="form-control" ng-model="storage.data.name" ng-value="storage.data.name"/>
|
||||
<form name="form" class="css-form" novalidate>
|
||||
<div class="form-group {{ (((!form.name.$pristine || form.$submitted) && !form.name.$valid) ? 'has-error': '') }}">
|
||||
<label class="control-label" for="name">{{ 'NAME' | translate}}</label>
|
||||
<input type="text" name="name" class="form-control" id="login-name" placeholder="{{ 'YOUR_NAME' | translate}}" required="" ng-model="verto.data.name" autofocus>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">{{ 'EMAIL' | translate}}</label>
|
||||
<input type="text" name="email" class="form-control" ng-model="storage.data.email" ng-value="storage.data.email"/>
|
||||
<div class="form-group {{ (((!form.email.$pristine || form.$submitted) && !form.email.$valid) ? 'has-error': '') }}">
|
||||
<label class="control-label" for="login-email">{{ 'EMAIL' | translate }}</label>
|
||||
<input type="email" name="email" class="form-control" id="login-email" placeholder="{{ 'YOUR_EMAIL' | translate}}" ng-model="verto.data.email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
@ -27,7 +27,7 @@
|
|||
<label class="control-label" for="callerid">{{ 'CALLER_ID' | translate}}</label>
|
||||
<input type="text" class="form-control" id="callerid" placeholder="Caller ID" ng-model="verto.data.callerid">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!-- <button class="btn btn-primary" ng-click="cancel()">Cancel</button> -->
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
verto.data.name = storage.data.name;
|
||||
verto.data.email = storage.data.email;
|
||||
|
||||
}
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue