parent
83916a28fc
commit
a9b363fddf
@ -0,0 +1,57 @@
|
||||
<div class="modal-header">
|
||||
<h4>New Manager Device</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<form novalidate name="accountForm">
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':accountForm.client_dev_id.$invalid && accountForm.client_dev_id.$dirty}">
|
||||
<label class="control-label" for="client_dev_id-input">* 设备编号</label>
|
||||
<input required class="form-control text-lowercase" id="client_dev_id-input" name="client_dev_id"
|
||||
ng-model="device.client_dev_id" maxlength="50">
|
||||
<div ng-messages="accountForm.client_dev_id.$error" ng-if="accountForm.client_dev_id.$dirty">
|
||||
<p class="small text-danger" ng-message="required">client_dev_id field is required</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':accountForm.auth_code.$invalid && accountForm.auth_code.$dirty}">
|
||||
<label class="control-label" for="auth_code-input">* 设备密钥</label>
|
||||
<input required class="form-control" id="auth_code-input" name="auth_code"
|
||||
ng-model="device.auth_code" maxlength="50">
|
||||
<div ng-messages="accountForm.auth_code.$error" ng-if="accountForm.auth_code.$dirty">
|
||||
<p class="small text-danger" ng-message="required">设备密钥 field is required</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':accountForm.client_type.$invalid && accountForm.client_type.$dirty}">
|
||||
<label class="control-label" for="client_type-input">* 设备类型</label>
|
||||
<input required class="form-control" id="client_type-input" name="client_type"
|
||||
ng-model="device.client_type">
|
||||
<div ng-messages="accountForm.auth_code.$error" ng-if="accountForm.auth_code.$dirty">
|
||||
<p class="small text-danger" ng-message="required">设备类型 field is required</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':accountForm.version.$invalid && accountForm.version.$dirty}">
|
||||
<label class="control-label" for="version-input">* version</label>
|
||||
<input required class="form-control" id="version-input" name="version"
|
||||
ng-model="device.version">
|
||||
<div ng-messages="accountForm.auth_code.$error" ng-if="accountForm.auth_code.$dirty">
|
||||
<p class="small text-danger" ng-message="required">version field is required</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-success" type="button" ng-click="save(accountForm)">Submit</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-danger" type="button" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue