From 0aacdbe2ecb527f1d42ab37c1130a7c87d4dea0e Mon Sep 17 00:00:00 2001 From: Cindy Lu Date: Tue, 22 Mar 2016 11:57:47 -0700 Subject: [PATCH] cleanup for ng create volume workflow - cleanup help text in workflow and slide-out help panel (it's repetitive) - add required asterisk to some form labels - remove unnecessary css styles - remove unnecessary eslint-disable/enable flags Change-Id: I7de0dc7ee19816392003242431459eb73d141555 Closes-Bug: #1560594 --- .../static/app/core/images/_images.scss | 8 - .../create-volume/create-volume.help.html | 10 -- .../steps/create-volume/create-volume.html | 137 +++++++++--------- .../images/steps/edit-image/edit-image.html | 5 +- .../images/workflows/create-volume.service.js | 1 - .../app/core/workflow/decorator.service.js | 2 - .../app/core/workflow/workflow.module.js | 2 - 7 files changed, 70 insertions(+), 95 deletions(-) delete mode 100644 openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.help.html diff --git a/openstack_dashboard/static/app/core/images/_images.scss b/openstack_dashboard/static/app/core/images/_images.scss index 1001f3fdb6..0ae624ad61 100644 --- a/openstack_dashboard/static/app/core/images/_images.scss +++ b/openstack_dashboard/static/app/core/images/_images.scss @@ -12,11 +12,3 @@ table[ng-controller="horizon.app.core.images.table.ImagesController as table"] { max-height: 30em; } -.workflow-step-radiator { - margin-left: 10px; - .radiator-title { - color: #555; - font-weight: 600; - font-size: 0.9em; - } -} diff --git a/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.help.html b/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.help.html deleted file mode 100644 index af34847cbf..0000000000 --- a/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.help.html +++ /dev/null @@ -1,10 +0,0 @@ -
-

Description:

-

- Volumes are block devices that can be attached to instances. -

-

- Volume Type Description: - If "No volume type" is selected, the volume will be created without a volume type. -

-
diff --git a/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html b/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html index 53bd8fece3..78562210eb 100644 --- a/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html +++ b/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html @@ -1,79 +1,74 @@
-

Volume Details

- - -
-
Volumes are block devices that can be attached to instances.
- -
-
-
-
-
- - -
-
-
- - -
-
- - -
-
-
-
- - -
-
-
-
-
- - -
-
-
-
-
-
- - +
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+ + +
+
-
-
-
- -
-
-
-
- -
-
-
-

Volume Type Description:

-
-
{$ createVolumeCtrl.volumeType.name $}
-
{$ createVolumeCtrl.volumeType.description $}
-
-
+
+ +
-
-
+
+ +
+
+ +

Volume Type Description:

+
+
{$ createVolumeCtrl.volumeType.name $}
+
{$ createVolumeCtrl.volumeType.description $}
+
+
+
+ diff --git a/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html b/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html index 8abe49c2a5..828acd69d1 100644 --- a/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html +++ b/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html @@ -44,7 +44,10 @@
- +
diff --git a/openstack_dashboard/static/app/core/images/workflows/create-volume.service.js b/openstack_dashboard/static/app/core/images/workflows/create-volume.service.js index 58f838ff08..6c3e055433 100644 --- a/openstack_dashboard/static/app/core/images/workflows/create-volume.service.js +++ b/openstack_dashboard/static/app/core/images/workflows/create-volume.service.js @@ -43,7 +43,6 @@ { title: gettext('Volume Details'), templateUrl: basePath + 'steps/create-volume/create-volume.html', - helpUrl: basePath + 'steps/create-volume/create-volume.help.html', formName: 'volumeForm' } ] diff --git a/openstack_dashboard/static/app/core/workflow/decorator.service.js b/openstack_dashboard/static/app/core/workflow/decorator.service.js index 2b110cf781..522c508c25 100644 --- a/openstack_dashboard/static/app/core/workflow/decorator.service.js +++ b/openstack_dashboard/static/app/core/workflow/decorator.service.js @@ -19,7 +19,6 @@ var forEach = angular.forEach; - /* eslint-disable max-len */ /** * @ngdoc factory * @name horizon.app.core.workflow.factory:horizon.app.core.workflow.decorator @@ -43,7 +42,6 @@ * @returns {Object} The decorated workflow specification object, the same * reference to the input spec object. */ - /* eslint-ensable max-len */ angular .module('horizon.app.core.workflow') .factory('horizon.app.core.workflow.decorator', dashboardWorkflowDecorator); diff --git a/openstack_dashboard/static/app/core/workflow/workflow.module.js b/openstack_dashboard/static/app/core/workflow/workflow.module.js index cd9dbd7199..00f9ed0b7d 100644 --- a/openstack_dashboard/static/app/core/workflow/workflow.module.js +++ b/openstack_dashboard/static/app/core/workflow/workflow.module.js @@ -16,7 +16,6 @@ (function () { 'use strict'; - /* eslint-disable max-len */ /** * @ngdoc overview * @name horizon.app.core.workflow @@ -27,7 +26,6 @@ * This module provides utility function factory `dashboardWorkflow` and * `dashboardWorkflowDecorator`. */ - /* eslint-enable max-len */ angular.module('horizon.app.core.workflow', []); })();