From 742f610edecf7a8f68d2a17e2c0f29644f474607 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Fri, 13 May 2016 09:55:59 -0500 Subject: [PATCH] Updates webpage to allow input of plc handshake tags --- www/api/models/Tag_class.js | 5 +++++ www/assets/js/ng/factory_tags.js | 4 ++-- www/assets/templates/tags.html | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/www/api/models/Tag_class.js b/www/api/models/Tag_class.js index 245eaf2..9075fcf 100644 --- a/www/api/models/Tag_class.js +++ b/www/api/models/Tag_class.js @@ -42,6 +42,11 @@ module.exports = { { class_type: 'custom', description: 'Stroke Information' + }, + , + { + class_type: 'handshake', + description: 'PLC Handshake Tag' } ] }; diff --git a/www/assets/js/ng/factory_tags.js b/www/assets/js/ng/factory_tags.js index 959ccfa..f24afa5 100644 --- a/www/assets/js/ng/factory_tags.js +++ b/www/assets/js/ng/factory_tags.js @@ -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, diff --git a/www/assets/templates/tags.html b/www/assets/templates/tags.html index de2a25e..7953755 100644 --- a/www/assets/templates/tags.html +++ b/www/assets/templates/tags.html @@ -28,6 +28,13 @@ +
+ + +
@@ -99,6 +106,13 @@
+
+ + +