|
|
|
@ -3,47 +3,45 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<form novalidate name="deviceForm">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.client_dev_id.$invalid && deviceForm.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="deviceForm.client_dev_id.$error" ng-if="deviceForm.client_dev_id.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">client_dev_id field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
<form novalidate name="deviceForm">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.client_dev_id.$invalid && deviceForm.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="deviceForm.client_dev_id.$error" ng-if="deviceForm.client_dev_id.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">client_dev_id field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.auth_code.$invalid && deviceForm.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="deviceForm.auth_code.$error" ng-if="deviceForm.auth_code.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">设备密钥 field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label" for="client_type-input">设备类型</label>
|
|
|
|
|
<input class="form-control" id="client_type-input" name="client_type"
|
|
|
|
|
ng-model="device.client_type" value="inspiry" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.auth_code.$invalid && deviceForm.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="deviceForm.auth_code.$error" ng-if="deviceForm.auth_code.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">设备密钥 field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label" for="client_type-input">设备类型</label>
|
|
|
|
|
<input class="form-control" id="client_type-input" name="client_type"
|
|
|
|
|
ng-model="device.client_type" ng-init="inspiry" readonly>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.version.$invalid && deviceForm.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="deviceForm.version.$error" ng-if="deviceForm.version.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">version field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label" for="remark-input">Remark</label>
|
|
|
|
|
<input class="form-control" id="remark-input" name="version"
|
|
|
|
|
ng-model="device.remark">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.version.$invalid && deviceForm.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="deviceForm.version.$error" ng-if="deviceForm.version.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">version field is required</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label" for="remark-input">Remark</label>
|
|
|
|
|
<input class="form-control" id="remark-input" name="version"
|
|
|
|
|
ng-model="device.remark">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|