|
|
|
@ -2,49 +2,52 @@
|
|
|
|
|
<h4>New Manager Device</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<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">* Device No</label>
|
|
|
|
|
<input required class="form-control text-lowercase" id="client_dev_id-input" name="client_dev_id"
|
|
|
|
|
ng-model="device.client_dev_id" maxlength="25">
|
|
|
|
|
<div ng-messages="deviceForm.client_dev_id.$error" ng-if="deviceForm.client_dev_id.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Device No Cannot Be Empty</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" ng-init="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">* Device Key</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">Device Key Cannot Be Empty</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label" for="client_type-input">Device Type</label>
|
|
|
|
|
<input class="form-control" id="client_type-input" name="client_type"
|
|
|
|
|
ng-init="device.client_type='inspiry'" placeholder="inspiry"
|
|
|
|
|
ng-model="device.client_type" 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 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" maxlength="10">
|
|
|
|
|
<div ng-messages="deviceForm.version.$error" ng-if="deviceForm.version.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Version No Cannot Be Empty</p>
|
|
|
|
|
</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>
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':deviceForm.remark.$invalid && deviceForm.remark.$dirty}">
|
|
|
|
|
<label class="control-label" for="remark-input">* Remark</label>
|
|
|
|
|
<input required class="form-control" id="remark-input" name="remark"
|
|
|
|
|
ng-model="device.remark" maxlength="50">
|
|
|
|
|
<div ng-messages="deviceForm.remark.$error" ng-if="deviceForm.remark.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Remark Cannot Be Empty</p>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|