From efb4f088f14aee394599bea21973f82f1867c4fe Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Fri, 11 Aug 2017 09:26:22 +0000 Subject: Add function to upload image from local/url in GUI JIRA: YARDSTICK-782 As user, we need to upload image from local/url. If upload image from local, user need to choose local image, then we will load it to openstack. If upload image from url, we will download it and load it to openstack. Change-Id: Ia9a42fda15a1dfc91476643635343a2f77a94a6b Signed-off-by: chenjiankun --- gui/app/views/modal/environmentDialog.html | 15 +++--- gui/app/views/modal/imageDialog.html | 19 +++++++ gui/app/views/podupload.html | 2 +- gui/app/views/uploadImage.html | 82 ++++++++++++++++++++---------- 4 files changed, 84 insertions(+), 34 deletions(-) create mode 100644 gui/app/views/modal/imageDialog.html (limited to 'gui/app/views') diff --git a/gui/app/views/modal/environmentDialog.html b/gui/app/views/modal/environmentDialog.html index 389de8340..4c539fc33 100644 --- a/gui/app/views/modal/environmentDialog.html +++ b/gui/app/views/modal/environmentDialog.html @@ -133,16 +133,17 @@ + - + - - - - - - + + + + + + diff --git a/gui/app/views/modal/imageDialog.html b/gui/app/views/modal/imageDialog.html new file mode 100644 index 000000000..c568f2aba --- /dev/null +++ b/gui/app/views/modal/imageDialog.html @@ -0,0 +1,19 @@ +
+ +

Enter Remote Image Url

+ + +
+ +
+ +
+ + + diff --git a/gui/app/views/podupload.html b/gui/app/views/podupload.html index 99e83aca2..d6d7c0c6e 100644 --- a/gui/app/views/podupload.html +++ b/gui/app/views/podupload.html @@ -13,7 +13,7 @@
- diff --git a/gui/app/views/uploadImage.html b/gui/app/views/uploadImage.html index 17ccfdb8b..0c337feeb 100644 --- a/gui/app/views/uploadImage.html +++ b/gui/app/views/uploadImage.html @@ -4,56 +4,86 @@
-

{{baseElementInfo.name}} -- Image +

{{environmentInfo.name}} -- Image

-
- - - - -
-

Current Images

- +

Alternative Images

choose namesizedescription statustime
{{image.name}}{{image.size/1024}} mb{{image.status}}{{image.time}}
{{name}}{{value.description}}{{value.status}}
+ + - + - + + - + - - -
namedescription size status timeaction
{{image.name}}{{image.size/1024}} MB{{image.description}}{{image.size | number:2}} MB {{image.status}} {{image.time}} +
+ + +
+
+
+

Custom Images

+
+ + +
+
+ - - - - - - + + + + + + + + + + + + + + + + +
namedescriptionsizestatustimeaction
{{image.name}}{{image.description}}{{image.size | number:2}} MB{{image.status}}{{image.time}} +
+ + +
+
+
- - -- cgit 1.2.3-korg