diff --git a/README.md b/README.md
index 2966f0a..718b0f8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[![Build Status](https://travis-ci.org/TAMULib/ProjectManagementUI.svg?branch=master)](https://travis-ci.org/TAMULib/ProjectManagementUI)
-[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementUI/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/ProjectManagementUI?branch=master)
+[![Build Status](https://travis-ci.org/TAMULib/ProductManagementUI.svg?branch=master)](https://travis-ci.org/TAMULib/ProductManagementUI)
+[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProductManagementUI/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/ProductManagementUI?branch=master)
-# Project Management UI
+# Product Management UI
diff --git a/app/.htaccess b/app/.htaccess
index a58e764..78fc7d0 100644
--- a/app/.htaccess
+++ b/app/.htaccess
@@ -1,7 +1,7 @@
RewriteEngine On
- RewriteBase /projects/
+ RewriteBase /products/
RewriteCond %{HTTP:X-Requested-With} !XMLHttpRequest$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L]
-
\ No newline at end of file
+
diff --git a/app/config/apiMapping.js b/app/config/apiMapping.js
index 45ec0dc..d0333b0 100644
--- a/app/config/apiMapping.js
+++ b/app/config/apiMapping.js
@@ -1,36 +1,36 @@
// CONVENTION: must match model name, case sensitive
var apiMapping = {
- Project: {
+ Product: {
validations: true,
lazy: true,
- channel: '/channel/projects',
+ channel: '/channel/products',
all: {
'endpoint': '/private/queue',
- 'controller': 'projects',
+ 'controller': 'products',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
- 'controller': 'projects',
+ 'controller': 'products',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
- 'controller': 'projects',
+ 'controller': 'products',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
- 'controller': 'projects',
+ 'controller': 'products',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
- 'controller': 'projects'
+ 'controller': 'products'
}
},
User: {
@@ -55,47 +55,47 @@ var apiMapping = {
'method': 'update'
}
},
- RemoteProjectManager: {
+ RemoteProductManager: {
validations: true,
lazy: true,
- channel: '/channel/remote-project-manager',
+ channel: '/channel/remote-product-manager',
all: {
'endpoint': '/private/queue',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
- 'controller': 'remote-project-manager'
+ 'controller': 'remote-product-manager'
},
types: {
'endpoint': '/channel',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': 'types/',
'httpMethod': 'GET'
},
scaffolding: {
'endpoint': '/channel',
- 'controller': 'remote-project-manager',
+ 'controller': 'remote-product-manager',
'method': 'scaffolding/:type/',
'httpMethod': 'GET'
}
@@ -133,24 +133,24 @@ var apiMapping = {
'controller': 'status'
}
},
- RemoteProjects: {
+ RemoteProducts: {
all: {
'endpoint': '/private/queue',
- 'controller': 'projects/remote'
+ 'controller': 'products/remote'
},
listen: {
'endpoint': '/channel',
- 'controller': 'projects/remote'
+ 'controller': 'products/remote'
}
},
- ProjectsStats: {
+ ProductsStats: {
all: {
'endpoint': '/private/queue',
- 'controller': 'projects/stats'
+ 'controller': 'products/stats'
},
listen: {
'endpoint': '/channel',
- 'controller': 'projects/stats'
+ 'controller': 'products/stats'
}
},
ActiveSprints: {
@@ -163,4 +163,4 @@ var apiMapping = {
'controller': 'sprints/active'
}
}
-};
\ No newline at end of file
+};
diff --git a/app/config/routes.js b/app/config/routes.js
index 612db6b..7e15694 100644
--- a/app/config/routes.js
+++ b/app/config/routes.js
@@ -1,7 +1,7 @@
app.config(function ($routeProvider) {
$routeProvider.
when('/management', {
- redirectTo: '/management/projects'
+ redirectTo: '/management/products'
}).
when('/management/:tab', {
templateUrl: 'views/management.html',
@@ -31,4 +31,4 @@ app.config(function ($routeProvider) {
otherwise({
redirectTo: '/error/404'
});
-});
\ No newline at end of file
+});
diff --git a/app/controllers/activeSprintsController.js b/app/controllers/activeSprintsController.js
index d32855c..bd9fc41 100644
--- a/app/controllers/activeSprintsController.js
+++ b/app/controllers/activeSprintsController.js
@@ -19,7 +19,7 @@ app.controller('ActiveSprintsController', function ($controller, $sce, $scope, A
};
$scope.kanbanHeader = function () {
- return $scope.getSelectedSprint() ? $scope.getSelectedSprint().project + ": " + $scope.getSelectedSprint().name : "Select Sprint Above";
+ return $scope.getSelectedSprint() ? $scope.getSelectedSprint().product + ": " + $scope.getSelectedSprint().name : "Select Sprint Above";
};
$scope.getSprintEstimateTotal = function (sprint) {
@@ -76,4 +76,4 @@ app.controller('ActiveSprintsController', function ($controller, $sce, $scope, A
}
});
-});
\ No newline at end of file
+});
diff --git a/app/controllers/productController.js b/app/controllers/productController.js
index e37d08c..0b9f118 100644
--- a/app/controllers/productController.js
+++ b/app/controllers/productController.js
@@ -1,105 +1,105 @@
-app.controller('ProjectController', function ($controller, $scope, ApiResponseActions, ProjectRepo, RemoteProjectManagerRepo, RemoteProjectsService) {
+app.controller('ProductController', function ($controller, $scope, ApiResponseActions, ProductRepo, RemoteProductManagerRepo, RemoteProductsService) {
angular.extend(this, $controller('AbstractController', {
$scope: $scope
}));
- $scope.projects = ProjectRepo.getAll();
+ $scope.products = ProductRepo.getAll();
- $scope.projectToCreate = ProjectRepo.getScaffold();
+ $scope.productToCreate = ProductRepo.getScaffold();
- $scope.projectToDelete = {};
+ $scope.productToDelete = {};
- $scope.projectForms = {
- validations: ProjectRepo.getValidations(),
- getResults: ProjectRepo.getValidationResults
+ $scope.productForms = {
+ validations: ProductRepo.getValidations(),
+ getResults: ProductRepo.getValidationResults
};
- $scope.resetProjectForms = function () {
- ProjectRepo.clearValidationResults();
- for (var key in $scope.projectForms) {
- if ($scope.projectForms[key] !== undefined && !$scope.projectForms[key].$pristine && $scope.projectForms[key].$setPristine) {
- $scope.projectForms[key].$setPristine();
+ $scope.resetProductForms = function () {
+ ProductRepo.clearValidationResults();
+ for (var key in $scope.productForms) {
+ if ($scope.productForms[key] !== undefined && !$scope.productForms[key].$pristine && $scope.productForms[key].$setPristine) {
+ $scope.productForms[key].$setPristine();
}
}
$scope.closeModal();
};
- $scope.resetProjectForms();
+ $scope.resetProductForms();
- $scope.createProject = function () {
- ProjectRepo.create($scope.projectToCreate).then(function (res) {
+ $scope.createProduct = function () {
+ ProductRepo.create($scope.productToCreate).then(function (res) {
if (angular.fromJson(res.body).meta.status === 'SUCCESS') {
- $scope.resetCreateProject();
+ $scope.resetCreateProduct();
}
});
};
- $scope.resetCreateProject = function () {
- angular.extend($scope.projectToCreate, ProjectRepo.getScaffold());
- $scope.resetProjectForms();
+ $scope.resetCreateProduct = function () {
+ angular.extend($scope.productToCreate, ProductRepo.getScaffold());
+ $scope.resetProductForms();
};
- $scope.editProject = function (project) {
- $scope.projectToEdit = project;
- $scope.openModal('#editProjectModal');
+ $scope.editProduct = function (product) {
+ $scope.productToEdit = product;
+ $scope.openModal('#editProductModal');
};
- $scope.updateProject = function () {
- $scope.projectToEdit.dirty(true);
- $scope.projectToEdit.save().then(function () {
- $scope.cancelEditProject();
+ $scope.updateProduct = function () {
+ $scope.productToEdit.dirty(true);
+ $scope.productToEdit.save().then(function () {
+ $scope.cancelEditProduct();
});
};
- $scope.cancelEditProject = function () {
- $scope.projectToEdit.refresh();
- $scope.projectToEdit = {};
- $scope.resetProjectForms();
+ $scope.cancelEditProduct = function () {
+ $scope.productToEdit.refresh();
+ $scope.productToEdit = {};
+ $scope.resetProductForms();
};
- $scope.confirmDeleteProject = function (project) {
- $scope.projectToDelete = project;
- $scope.openModal('#deleteProjectModal');
+ $scope.confirmDeleteProduct = function (product) {
+ $scope.productToDelete = product;
+ $scope.openModal('#deleteProductModal');
};
- $scope.cancelDeleteProject = function () {
- $scope.projectToDelete = {};
+ $scope.cancelDeleteProduct = function () {
+ $scope.productToDelete = {};
$scope.closeModal();
};
- $scope.deleteProject = function (project) {
- ProjectRepo.delete(project).then(function (res) {
+ $scope.deleteProduct = function (product) {
+ ProductRepo.delete(product).then(function (res) {
if (angular.fromJson(res.body).meta.status === "SUCCESS") {
- $scope.cancelDeleteProject();
+ $scope.cancelDeleteProduct();
}
});
};
if ($scope.isManager() || $scope.isAdmin()) {
- $scope.remoteProjectManagers = RemoteProjectManagerRepo.getAll();
+ $scope.remoteProductManagers = RemoteProductManagerRepo.getAll();
- $scope.remoteProjects = RemoteProjectsService.getRemoteProjects();
+ $scope.remoteProducts = RemoteProductsService.getRemoteProducts();
- $scope.getRemoteProjectManagerRemoteProjects = function (remoteProjectManagerId) {
- return $scope.remoteProjects[remoteProjectManagerId];
+ $scope.getRemoteProductManagerRemoteProducts = function (remoteProductManagerId) {
+ return $scope.remoteProducts[remoteProductManagerId];
};
- RemoteProjectManagerRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
- $scope.remoteProjectManagers.length = 0;
- var remoteProjectManagers = RemoteProjectManagerRepo.getAll();
- for (var i in remoteProjectManagers) {
- $scope.remoteProjectManagers.push(remoteProjectManagers[i]);
+ RemoteProductManagerRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
+ $scope.remoteProductManagers.length = 0;
+ var remoteProductManagers = RemoteProductManagerRepo.getAll();
+ for (var i in remoteProductManagers) {
+ $scope.remoteProductManagers.push(remoteProductManagers[i]);
}
});
}
- ProjectRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
- $scope.projects.length = 0;
- var projects = ProjectRepo.getAll();
- for (var i in projects) {
- $scope.projects.push(projects[i]);
+ ProductRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
+ $scope.products.length = 0;
+ var products = ProductRepo.getAll();
+ for (var i in products) {
+ $scope.products.push(products[i]);
}
});
-});
\ No newline at end of file
+});
diff --git a/app/controllers/remoteProductManagerController.js b/app/controllers/remoteProductManagerController.js
index affc44a..a084124 100644
--- a/app/controllers/remoteProductManagerController.js
+++ b/app/controllers/remoteProductManagerController.js
@@ -1,82 +1,82 @@
-app.controller('RemoteProjectManagerController', function ($controller, $scope, ApiResponseActions, RemoteProjectManagerRepo) {
+app.controller('RemoteProductManagerController', function ($controller, $scope, ApiResponseActions, RemoteProductManagerRepo) {
angular.extend(this, $controller('AbstractController', {
$scope: $scope
}));
- $scope.remoteProjectManagers = RemoteProjectManagerRepo.getAll();
+ $scope.remoteProductManagers = RemoteProductManagerRepo.getAll();
- $scope.remoteProjectManagerToCreate = RemoteProjectManagerRepo.getScaffold();
+ $scope.remoteProductManagerToCreate = RemoteProductManagerRepo.getScaffold();
- $scope.remoteProjectManagerToEdit = {};
- $scope.remoteProjectManagerToDelete = {};
+ $scope.remoteProductManagerToEdit = {};
+ $scope.remoteProductManagerToDelete = {};
- RemoteProjectManagerRepo.getTypes().then(function (types) {
+ RemoteProductManagerRepo.getTypes().then(function (types) {
$scope.serviceTypes = types;
- $scope.resetRemoteProjectManagerForms();
+ $scope.resetRemoteProductManagerForms();
});
- $scope.remoteProjectManagerForms = {
- validations: RemoteProjectManagerRepo.getValidations(),
- getResults: RemoteProjectManagerRepo.getValidationResults
+ $scope.remoteProductManagerForms = {
+ validations: RemoteProductManagerRepo.getValidations(),
+ getResults: RemoteProductManagerRepo.getValidationResults
};
- $scope.resetRemoteProjectManagerForms = function () {
- RemoteProjectManagerRepo.clearValidationResults();
- for (var key in $scope.remoteProjectManagerForms) {
- if ($scope.remoteProjectManagerForms[key] !== undefined && !$scope.remoteProjectManagerForms[key].$pristine && $scope.remoteProjectManagerForms[key].$setPristine) {
- $scope.remoteProjectManagerForms[key].$setPristine();
+ $scope.resetRemoteProductManagerForms = function () {
+ RemoteProductManagerRepo.clearValidationResults();
+ for (var key in $scope.remoteProductManagerForms) {
+ if ($scope.remoteProductManagerForms[key] !== undefined && !$scope.remoteProductManagerForms[key].$pristine && $scope.remoteProductManagerForms[key].$setPristine) {
+ $scope.remoteProductManagerForms[key].$setPristine();
}
}
$scope.closeModal();
};
- $scope.createRemoteProjectManager = function () {
- RemoteProjectManagerRepo.create($scope.remoteProjectManagerToCreate).then(function (res) {
+ $scope.createRemoteProductManager = function () {
+ RemoteProductManagerRepo.create($scope.remoteProductManagerToCreate).then(function (res) {
if (angular.fromJson(res.body).meta.status === 'SUCCESS') {
- $scope.resetCreateRemoteProjectManager();
+ $scope.resetCreateRemoteProductManager();
}
});
};
- $scope.resetCreateRemoteProjectManager = function () {
- $scope.remoteProjectManagerToCreate = RemoteProjectManagerRepo.getScaffold();
- $scope.resetRemoteProjectManagerForms();
+ $scope.resetCreateRemoteProductManager = function () {
+ $scope.remoteProductManagerToCreate = RemoteProductManagerRepo.getScaffold();
+ $scope.resetRemoteProductManagerForms();
};
- $scope.editRemoteProjectManager = function (remoteProjectManager) {
- $scope.remoteProjectManagerToEdit = angular.copy(remoteProjectManager);
- $scope.openModal('#editRemoteProjectManagerModal');
+ $scope.editRemoteProductManager = function (remoteProductManager) {
+ $scope.remoteProductManagerToEdit = angular.copy(remoteProductManager);
+ $scope.openModal('#editRemoteProductManagerModal');
};
- $scope.updateRemoteProjectManager = function () {
- $scope.remoteProjectManagerToEdit.dirty(true);
- $scope.remoteProjectManagerToEdit.save().then(function (res) {
+ $scope.updateRemoteProductManager = function () {
+ $scope.remoteProductManagerToEdit.dirty(true);
+ $scope.remoteProductManagerToEdit.save().then(function (res) {
if (angular.fromJson(res.body).meta.status === "SUCCESS") {
- $scope.cancelEditRemoteProjectManager();
+ $scope.cancelEditRemoteProductManager();
}
});
};
- $scope.cancelEditRemoteProjectManager = function () {
- $scope.remoteProjectManagerToEdit.refresh();
- $scope.resetRemoteProjectManagerForms();
+ $scope.cancelEditRemoteProductManager = function () {
+ $scope.remoteProductManagerToEdit.refresh();
+ $scope.resetRemoteProductManagerForms();
};
- $scope.confirmDeleteRemoteProjectManager = function (remoteProjectManager) {
- $scope.remoteProjectManagerToDelete = remoteProjectManager;
- $scope.openModal('#deleteRemoteProjectManagerModal');
+ $scope.confirmDeleteRemoteProductManager = function (remoteProductManager) {
+ $scope.remoteProductManagerToDelete = remoteProductManager;
+ $scope.openModal('#deleteRemoteProductManagerModal');
};
- $scope.cancelDeleteRemoteProjectManager = function () {
- $scope.remoteProjectManagerToDelete = {};
+ $scope.cancelDeleteRemoteProductManager = function () {
+ $scope.remoteProductManagerToDelete = {};
$scope.closeModal();
};
- $scope.deleteRemoteProjectManager = function (remoteProjectManager) {
- RemoteProjectManagerRepo.delete(remoteProjectManager).then(function (res) {
+ $scope.deleteRemoteProductManager = function (remoteProductManager) {
+ RemoteProductManagerRepo.delete(remoteProductManager).then(function (res) {
if (angular.fromJson(res.body).meta.status === 'SUCCESS') {
- $scope.cancelDeleteRemoteProjectManager();
+ $scope.cancelDeleteRemoteProductManager();
}
});
};
@@ -90,12 +90,12 @@ app.controller('RemoteProjectManagerController', function ($controller, $scope,
return [];
};
- RemoteProjectManagerRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
- $scope.remoteProjectManagers.length = 0;
- var remoteProjectManagers = RemoteProjectManagerRepo.getAll();
- for (var i in remoteProjectManagers) {
- $scope.remoteProjectManagers.push(remoteProjectManagers[i]);
+ RemoteProductManagerRepo.listen([ApiResponseActions.CREATE, ApiResponseActions.DELETE, ApiResponseActions.UPDATE], function () {
+ $scope.remoteProductManagers.length = 0;
+ var remoteProductManagers = RemoteProductManagerRepo.getAll();
+ for (var i in remoteProductManagers) {
+ $scope.remoteProductManagers.push(remoteProductManagers[i]);
}
});
-});
\ No newline at end of file
+});
diff --git a/app/directives/remoteProductManagerFormDirective.js b/app/directives/remoteProductManagerFormDirective.js
index 7cdf011..ed415cf 100644
--- a/app/directives/remoteProductManagerFormDirective.js
+++ b/app/directives/remoteProductManagerFormDirective.js
@@ -1,6 +1,6 @@
-app.directive('remoteProjectManagerForm', function () {
+app.directive('remoteProductManagerForm', function () {
return {
- templateUrl: 'views/directives/remoteProjectManagerForm.html',
+ templateUrl: 'views/directives/remoteProductManagerForm.html',
restrict: 'E',
replace: false,
scope: {
@@ -55,4 +55,4 @@ app.directive('remoteProjectManagerForm', function () {
};
}
};
-});
\ No newline at end of file
+});
diff --git a/app/index.html b/app/index.html
index 7782293..6685890 100644
--- a/app/index.html
+++ b/app/index.html
@@ -7,7 +7,7 @@
-
+
@@ -15,7 +15,7 @@
- Project Management :: Texas A&M Libraries
+ Product Management :: Texas A&M Libraries
@@ -38,7 +38,7 @@
-
+
@@ -193,11 +193,11 @@
-
+
-
-
+
+
@@ -206,22 +206,22 @@
-
+
-
+
-
-
+
+
-
+
-
+
@@ -246,4 +246,4 @@
-