diff --git a/client/templates/header.html b/client/templates/header.html
index 7475ad3..06798d3 100644
--- a/client/templates/header.html
+++ b/client/templates/header.html
@@ -14,6 +14,9 @@
{{> findNav}}
{{> scanNav}}
+ -
+ Transport
+
-
Map
diff --git a/client/templates/pages/byId.html b/client/templates/pages/byId.html
index bf7d702..3c2c690 100644
--- a/client/templates/pages/byId.html
+++ b/client/templates/pages/byId.html
@@ -1,6 +1,6 @@
{{> findId}}
- {{> presentId}}
+ {{> presentId idStore="findById"}}
diff --git a/client/templates/pages/find.js b/client/templates/pages/find.js
index 4b3726c..eb93389 100644
--- a/client/templates/pages/find.js
+++ b/client/templates/pages/find.js
@@ -153,8 +153,8 @@ Template.presentValue.events({
Template.presentId.helpers({
// Get a single doc from our db referred
"fromdb": function() {
- var itemId, data;
- itemId = Session.get("findById");
+ var itemId, data;
+ itemId = Session.get(this.idStore);
if (!itemId) {
return {found: false};
}
diff --git a/client/templates/pages/relocate.html b/client/templates/pages/relocate.html
index 0006c97..f277e45 100644
--- a/client/templates/pages/relocate.html
+++ b/client/templates/pages/relocate.html
@@ -2,22 +2,190 @@
{{> relocateScan}}
- {{> relocateResult}}
+ {{> presentId idStore="relocateId"}}
- {{> relocateForm}}
+ {{> relocateMode}}
- scan
+
-
- result
+
+
+
+
+
+
+
+
+
+
+
+ {{> sublocationsHalleH}}
+
+
+
+
-
- form
+
+
+
+
+
+
+
+
+
+ {{#if sublocationIs "custom"}}
+
+ {{/if}}
\ No newline at end of file
diff --git a/lib/router.js b/lib/router.js
index 92cb55d..e2ad83e 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -27,4 +27,6 @@ Router.route('/scan/single', {name: 'singlePage'});
Router.route('/scan/bulk', {name: 'bulkPage'});
Router.route('/scan', {name: 'scanPage'});
+Router.route('/transports', {name: 'transportsPage'});
+
Router.route('/maps', {name: 'mapsPage'});
\ No newline at end of file
diff --git a/server/publications.js b/server/publications.js
index eeddf60..97dc274 100644
--- a/server/publications.js
+++ b/server/publications.js
@@ -1,6 +1,10 @@
Meteor.publish('items', function() {
return Items.find();
});
+Meteor.publish('transports', function() {
+ return Transports.find();
+});
+
Meteor.publish("userData", function () {
if (this.userId) {
return Meteor.users.find({_id: this.userId},