cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [08/50] git commit: updated refs/heads/sf-plugins to 157efc3
Date Sat, 19 Sep 2015 01:31:14 GMT
Add zone combo box to Add Shared Volume window


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b7ef791d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b7ef791d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b7ef791d

Branch: refs/heads/sf-plugins
Commit: b7ef791d1c15469a829558da995e9b346708ce08
Parents: c3a0957
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Tue Jul 7 13:07:58 2015 -0600
Committer: Mike Tutkowski <mike.tutkowski@solidfire.com>
Committed: Fri Sep 18 19:28:18 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 33 ++++++++++++++++++++----
 1 file changed, 28 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b7ef791d/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index c0d9fbe..cce02db 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -46,15 +46,38 @@
               title: 'Add Shared Volume',
               desc: 'Please fill in the following data to add a new shared volume.',
               fields: {
+                availabilityZone: {
+                  label: 'label.availability.zone',
+                  docID: 'helpVolumeAvailabilityZone',
+                  validation: {
+                    required: true
+                  },
+                  select: function(args) {
+                    $.ajax({
+                      url: createURL("listZones&available=true"),
+                      dataType: "json",
+                      async: true,
+                      success: function(json) {
+                        var zoneObjs = json.listzonesresponse.zone;
+
+                        args.response.success({
+                          descriptionField: 'name',
+                          data: zoneObjs
+                        });
+                      }
+                    });
+                  }
+                },
                 name: {
+				  label: 'label.name',
                   docID: 'helpVolumeName',
-                  label: 'label.name',
                   validation: {
                     required: true
                   }
                 },
                 diskSize: {
-                  label: 'label.disk.size.gb',
+				  label: 'label.disk.size.gb',
+			      docID: 'Size of the volume in GB',
                   validation: {
                     required: true,
                     number: true
@@ -63,21 +86,21 @@
                 minIops: {
                   label: 'label.disk.iops.min',
                   validation: {
-                    required: false,
+                    required: true,
                     number: true
                   }
                 },
                 maxIops: {
                   label: 'label.disk.iops.max',
                   validation: {
-                    required: false,
+                    required: true,
                     number: true
                   }
                 },
                 burstIops: {
                   label: 'Burst IOPS',
                   validation: {
-                    required: false,
+                    required: true,
                     number: true
                   }
                 }


Mime
View raw message