cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [16/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:15:02 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/f1d3156f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f1d3156f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f1d3156f

Branch: refs/heads/sf-plugins
Commit: f1d3156ffda300588e7324b53e2a787fbaf87ab8
Parents: c47fba4
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Tue Jul 7 13:07:58 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:41 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/f1d3156f/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