CORD GUI -- Information about bundles and functions updated.
Change-Id: Iad39ee4df5185e0a017a542b5a583241b78476da
Showing
8 changed files
with
30 additions
and
19 deletions
... | @@ -64,6 +64,9 @@ public class CordModelCache extends JsonFactory { | ... | @@ -64,6 +64,9 @@ public class CordModelCache extends JsonFactory { |
64 | private static final String LEVEL = "level"; | 64 | private static final String LEVEL = "level"; |
65 | private static final String LOGOUT = "logout"; | 65 | private static final String LOGOUT = "logout"; |
66 | 66 | ||
67 | + private static final String BUNDLE_NAME = BUNDLE + "_name"; | ||
68 | + private static final String BUNDLE_DESC = BUNDLE + "_desc"; | ||
69 | + | ||
67 | private static final Map<Integer, Integer> LOOKUP = new HashMap<>(); | 70 | private static final Map<Integer, Integer> LOOKUP = new HashMap<>(); |
68 | 71 | ||
69 | private String email = null; | 72 | private String email = null; |
... | @@ -315,8 +318,10 @@ public class CordModelCache extends JsonFactory { | ... | @@ -315,8 +318,10 @@ public class CordModelCache extends JsonFactory { |
315 | return jsonLogout(); | 318 | return jsonLogout(); |
316 | } | 319 | } |
317 | 320 | ||
321 | + BundleDescriptor bundleDescriptor = currentBundle.descriptor(); | ||
318 | ObjectNode root = objectNode(); | 322 | ObjectNode root = objectNode(); |
319 | - root.put(BUNDLE, currentBundle.descriptor().displayName()); | 323 | + root.put(BUNDLE_NAME, bundleDescriptor.displayName()); |
324 | + root.put(BUNDLE_DESC, bundleDescriptor.description()); | ||
320 | root.set(USERS, userJsonArray()); | 325 | root.set(USERS, userJsonArray()); |
321 | addSubId(root); | 326 | addSubId(root); |
322 | return root.toString(); | 327 | return root.toString(); | ... | ... |
... | @@ -35,12 +35,18 @@ public class BundleFactory extends JsonFactory { | ... | @@ -35,12 +35,18 @@ public class BundleFactory extends JsonFactory { |
35 | private static final String BASIC_ID = "basic"; | 35 | private static final String BASIC_ID = "basic"; |
36 | private static final String BASIC_DISPLAY_NAME = "Basic Bundle"; | 36 | private static final String BASIC_DISPLAY_NAME = "Basic Bundle"; |
37 | private static final String BASIC_DESCRIPTION = | 37 | private static final String BASIC_DESCRIPTION = |
38 | - "Provides basic internet and firewall functions."; | 38 | + "If the thing that matters most to you is high speed Internet" + |
39 | + " connectivity delivered at a great price, then the basic" + | ||
40 | + " bundle is right for you.\n" + | ||
41 | + "Starting at $30 a month for 12 months."; | ||
39 | 42 | ||
40 | private static final String FAMILY_ID = "family"; | 43 | private static final String FAMILY_ID = "family"; |
41 | private static final String FAMILY_DISPLAY_NAME = "Family Bundle"; | 44 | private static final String FAMILY_DISPLAY_NAME = "Family Bundle"; |
42 | private static final String FAMILY_DESCRIPTION = | 45 | private static final String FAMILY_DESCRIPTION = |
43 | - "Provides internet, firewall and parental control functions."; | 46 | + "Enjoy great entertainment, peace of mind and big savings when " + |
47 | + "you bundle high speed Internet and Firewall with" + | ||
48 | + " Parental Control.\n" + | ||
49 | + "Starting at $40 a month for 12 months."; | ||
44 | 50 | ||
45 | 51 | ||
46 | // no instantiation | 52 | // no instantiation | ... | ... |
... | @@ -26,7 +26,8 @@ public enum XosFunctionDescriptor { | ... | @@ -26,7 +26,8 @@ public enum XosFunctionDescriptor { |
26 | */ | 26 | */ |
27 | INTERNET("internet", | 27 | INTERNET("internet", |
28 | "Internet", | 28 | "Internet", |
29 | - "Basic internet connectivity.", | 29 | + "Discover the joys of high-speed, reliable Internet" + |
30 | + " connectivity delivered seamlessly to your home.", | ||
30 | false, | 31 | false, |
31 | true), | 32 | true), |
32 | 33 | ||
... | @@ -35,7 +36,7 @@ public enum XosFunctionDescriptor { | ... | @@ -35,7 +36,7 @@ public enum XosFunctionDescriptor { |
35 | */ | 36 | */ |
36 | FIREWALL("firewall", | 37 | FIREWALL("firewall", |
37 | "Firewall", | 38 | "Firewall", |
38 | - "Normal firewall protection.", | 39 | + "Simple access control and filtering with minimal set-up.", |
39 | true, | 40 | true, |
40 | true), | 41 | true), |
41 | 42 | ||
... | @@ -44,7 +45,11 @@ public enum XosFunctionDescriptor { | ... | @@ -44,7 +45,11 @@ public enum XosFunctionDescriptor { |
44 | */ | 45 | */ |
45 | URL_FILTER("url_filter", | 46 | URL_FILTER("url_filter", |
46 | "Parental Control", | 47 | "Parental Control", |
47 | - "Variable levels of URL filtering.", | 48 | + "Parental Control is peace of mind that your kids are safe" + |
49 | + " - whether you are around or away. Indicate with a " + | ||
50 | + "few clicks what online content is appropriate for " + | ||
51 | + "your children, and voila - you have control over" + | ||
52 | + " what your kids can and cannot view.", | ||
48 | true, | 53 | true, |
49 | true), | 54 | true), |
50 | 55 | ... | ... |
1 | <!--Foot partial html--> | 1 | <!--Foot partial html--> |
2 | <div class="foot"> | 2 | <div class="foot"> |
3 | <div class="left"> | 3 | <div class="left"> |
4 | - Sample copyright notice here | 4 | + |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | <div class="right"> | 7 | <div class="right"> |
8 | - Some other text here | 8 | + © ONOS Project. All rights reserved. |
9 | </div> | 9 | </div> |
10 | </div> | 10 | </div> | ... | ... |
... | @@ -44,7 +44,7 @@ div#bundle div.main-right { | ... | @@ -44,7 +44,7 @@ div#bundle div.main-right { |
44 | padding-left: 3%; | 44 | padding-left: 3%; |
45 | } | 45 | } |
46 | #bundle td.desc { | 46 | #bundle td.desc { |
47 | - width: 50%; | 47 | + width: 60%; |
48 | text-align: left; | 48 | text-align: left; |
49 | font-style: italic; | 49 | font-style: italic; |
50 | } | 50 | } | ... | ... |
... | @@ -70,6 +70,7 @@ p { | ... | @@ -70,6 +70,7 @@ p { |
70 | color: rgba(0,0,0, 0.8); | 70 | color: rgba(0,0,0, 0.8); |
71 | text-indent: 20px; | 71 | text-indent: 20px; |
72 | text-align: justify; | 72 | text-align: justify; |
73 | + padding-right: 5%; | ||
73 | } | 74 | } |
74 | th { | 75 | th { |
75 | background-color: #7AB6EA; | 76 | background-color: #7AB6EA; | ... | ... |
... | @@ -9,17 +9,10 @@ | ... | @@ -9,17 +9,10 @@ |
9 | <div class="bundle-title"> | 9 | <div class="bundle-title"> |
10 | <h4>Welcome Dad!</h4> | 10 | <h4>Welcome Dad!</h4> |
11 | <h5>You are subscribed to the</h5> | 11 | <h5>You are subscribed to the</h5> |
12 | - <h3>{{bundle}}</h3> | 12 | + <h3>{{bundle_name}}</h3> |
13 | </div> | 13 | </div> |
14 | 14 | ||
15 | - <p> | 15 | + <p>{{bundle_desc}}</p> |
16 | - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sit | ||
17 | - amet ultricies metus. Praesent pretium diam et nibh lacinia | ||
18 | - faucibus. Donec commodo efficitur ex quis faucibus. | ||
19 | - Pellentesque nec commodo metus. Nulla ultrices odio vitae tellus | ||
20 | - tempor, quis fringilla arcu pellentesque. Duis efficitur massa | ||
21 | - libero, et molestie diam vulputate nec. Nulla vitae lacinia odio. | ||
22 | - </p> | ||
23 | 16 | ||
24 | 17 | ||
25 | <h4>Users</h4> | 18 | <h4>Users</h4> | ... | ... |
... | @@ -35,7 +35,8 @@ | ... | @@ -35,7 +35,8 @@ |
35 | resource = DashboardData.get({}, | 35 | resource = DashboardData.get({}, |
36 | // success | 36 | // success |
37 | function () { | 37 | function () { |
38 | - $scope.bundle = resource.bundle; | 38 | + $scope.bundle_name = resource.bundle_name; |
39 | + $scope.bundle_desc = resource.bundle_desc; | ||
39 | $scope.users = resource.users; | 40 | $scope.users = resource.users; |
40 | 41 | ||
41 | if ($.isEmptyObject($scope.shared.userActivity)) { | 42 | if ($.isEmptyObject($scope.shared.userActivity)) { | ... | ... |
-
Please register or login to post a comment