From 3e6bfbab7147793d5e799a5e46362f9f5cd6d8b7 Mon Sep 17 00:00:00 2001 From: Paul Van Eck Date: Wed, 15 Feb 2017 11:52:12 -0800 Subject: [PATCH] Allow adding cpid to null product version This will be used for associated a CPID to the product with no specific version in mind. Change-Id: I419a6bb18cde8f31088d25cf8d9113dde7a4bc1f --- .../app/components/products/cloud.html | 1 + .../app/components/products/distro.html | 1 + .../products/partials/productEditModal.html | 14 +++++++ .../components/products/productController.js | 42 +++++++++++++++++-- refstack-ui/tests/unit/ControllerSpec.js | 12 +++++- 5 files changed, 64 insertions(+), 6 deletions(-) diff --git a/refstack-ui/app/components/products/cloud.html b/refstack-ui/app/components/products/cloud.html index bf812d6c..e85220c6 100644 --- a/refstack-ui/app/components/products/cloud.html +++ b/refstack-ui/app/components/products/cloud.html @@ -7,6 +7,7 @@ Name: {{ctrl.product.name}}
Product ID: {{ctrl.id}}
Description: {{ctrl.product.description}}
+ CPID: {{ctrl.nullVersion.cpid}}
Publicity: {{ctrl.product.public ? 'Public' : 'Private'}}
Vendor Name: {{ctrl.vendor.name}}
diff --git a/refstack-ui/app/components/products/distro.html b/refstack-ui/app/components/products/distro.html index ec12d380..12ab93e6 100644 --- a/refstack-ui/app/components/products/distro.html +++ b/refstack-ui/app/components/products/distro.html @@ -7,6 +7,7 @@ Name: {{ctrl.product.name}}
Product ID: {{ctrl.id}}
Description: {{ctrl.product.description}}
+ CPID: {{ctrl.nullVersion.cpid}}
Publicity: {{ctrl.product.public ? 'Public' : 'Private'}}
Vendor Name: {{ctrl.vendor.name}}
diff --git a/refstack-ui/app/components/products/partials/productEditModal.html b/refstack-ui/app/components/products/partials/productEditModal.html index f49e3522..cd1e7459 100644 --- a/refstack-ui/app/components/products/partials/productEditModal.html +++ b/refstack-ui/app/components/products/partials/productEditModal.html @@ -42,6 +42,20 @@
 Add new property
+
+
+ + + + + + +
+