Extend plug-in functionality

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

Branch: refs/heads/sf-plugins
Commit: 81d58dbabd3919b7c626e3754aeedcd6fbdd5120
Parents: 7755061
Author: Mike Tutkowski <mike.tutkow...@solidfire.com>
Authored: Mon Jul 6 20:56:46 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:41 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 35 ++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/81d58dba/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js 
b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index ff16c91..99ad905 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -46,6 +46,41 @@
               title: 'Add Shared Volume',
               desc: 'Please fill in the following data to add a new shared 
volume.',
               fields: {
+                name: {
+                  docID: 'helpVolumeName',
+                  label: 'label.name',
+                  validation: {
+                    required: true
+                  }
+                },
+                diskSize: {
+                  label: 'label.disk.size.gb',
+                  validation: {
+                    required: true,
+                    number: true
+                  }
+                },
+                minIops: {
+                  label: 'label.disk.iops.min',
+                  validation: {
+                    required: false,
+                    number: true
+                  }
+                },
+                maxIops: {
+                  label: 'label.disk.iops.max',
+                  validation: {
+                    required: false,
+                    number: true
+                  }
+                },
+                burstIops: {
+                  label: 'Burst IOPS',
+                  validation: {
+                    required: false,
+                    number: true
+                  }
+                }
               }
             }
           }

Reply via email to