Updates webpage to allow input of plc handshake tags
This commit is contained in:
@@ -42,6 +42,11 @@ module.exports = {
|
||||
{
|
||||
class_type: 'custom',
|
||||
description: 'Stroke Information'
|
||||
},
|
||||
,
|
||||
{
|
||||
class_type: 'handshake',
|
||||
description: 'PLC Handshake Tag'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ poconsole.factory('tags',function($q, $http, $log, dateConversion){
|
||||
$http.post('/tag/create', {
|
||||
tag: tag.tag,
|
||||
name: tag.name,
|
||||
tag_class:5,
|
||||
tag_class:tag.tag_class,
|
||||
deviceID: tag.deviceID,
|
||||
units: tag.units,
|
||||
minExpected: tag.minExpected,
|
||||
@@ -74,7 +74,7 @@ poconsole.factory('tags',function($q, $http, $log, dateConversion){
|
||||
$http.post('/tag/update/'+ tag.id, {
|
||||
tag: tag.tag,
|
||||
name: tag.name,
|
||||
tag_class:5,
|
||||
tag_class:tag.tag_class,
|
||||
deviceID: tag.deviceID,
|
||||
units: tag.units,
|
||||
minExpected: tag.minExpected,
|
||||
|
||||
@@ -28,6 +28,13 @@
|
||||
<label for="data_type">Data Type</label>
|
||||
<select ng-model="newTag.data_type" ng-options="t as t.data_type for t in data_types track by t.id" class="form-control" id="data_type"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="tag_type">Tag Type</label>
|
||||
<select ng-model="newTag.tag_class" class="form-control" id="tag_type">
|
||||
<option value=5>Normal</option>
|
||||
<option value=6>PLC Handshake</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label for="minExpected">Minimum Value Expected</label>
|
||||
@@ -99,6 +106,13 @@
|
||||
<label for="data_type">Data Type</label>
|
||||
<select ng-model="editTag.data_type" ng-options="t as t.data_type for t in data_types track by t.id" class="form-control" id="data_type"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="tag_type">Tag Type</label>
|
||||
<select ng-model="editTag.tag_class" class="form-control" id="tag_type">
|
||||
<option value=5>Normal</option>
|
||||
<option value=6>PLC Handshake</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label for="minExpected">Minimum Value Expected</label>
|
||||
|
||||
Reference in New Issue
Block a user