ofri masad has uploaded a new change for review.

Change subject: webadmin: Added the quota to the Pool-general subtab
......................................................................

webadmin: Added the quota to the Pool-general subtab

Added the quota name to the General sub-tab under the Pool main-tab

Change-Id: Ib442572880ef75929eecfc19037cca4ad86f206b
Bug-Url: https://bugzilla.redhat.com/965979
Signed-off-by: Ofri Masad <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/pools/PoolGeneralModel.java
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/pool/SubTabPoolGeneralView.java
2 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/83/15283/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/pools/PoolGeneralModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/pools/PoolGeneralModel.java
index 240a049..e42a6f6 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/pools/PoolGeneralModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/pools/PoolGeneralModel.java
@@ -481,6 +481,8 @@
 
                     poolGeneralModel.setIsStateless(getvm().isStateless());
 
+                    poolGeneralModel.setQuotaName(getvm().getQuotaName());
+
                     
poolGeneralModel.setHasDefaultHost(getvm().getDedicatedVmForVds() != null);
                     if (poolGeneralModel.getHasDefaultHost())
                     {
@@ -595,4 +597,13 @@
                 _asyncQuery);
     }
 
+    private String quotaName;
+
+    public void setQuotaName(String quotaName) {
+        this.quotaName = quotaName;
+    }
+
+    public String getQuotaName() {
+        return quotaName;
+    }
 }
diff --git 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/pool/SubTabPoolGeneralView.java
 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/pool/SubTabPoolGeneralView.java
index 9963919..e4fa809 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/pool/SubTabPoolGeneralView.java
+++ 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/tab/pool/SubTabPoolGeneralView.java
@@ -44,6 +44,7 @@
     TextBoxLabel template = new TextBoxLabel();
     TextBoxLabel timeZone = new TextBoxLabel();
     TextBoxLabel usbPolicy = new TextBoxLabel();
+    TextBoxLabel quotaName = new TextBoxLabel();
 
     @Ignore
     // TODO: primitive field
@@ -78,6 +79,7 @@
         formBuilder.addFormItem(new FormItem(constants.templatePoolGeneral(), 
template, 2, 0));
         formBuilder.addFormItem(new FormItem(constants.osPoolGeneral(), oS, 3, 
0));
         formBuilder.addFormItem(new 
FormItem(constants.defaultDisplayTypePoolGeneral(), defaultDisplayType, 4, 0));
+        formBuilder.addFormItem(new FormItem(constants.quota(), quotaName, 5, 
0));
 
         formBuilder.addFormItem(new 
FormItem(constants.definedMemPoolGeneral(), definedMemory, 0, 1));
         formBuilder.addFormItem(new 
FormItem(constants.physMemGaurPoolGeneral(), minAllocatedMemory, 1, 1));


--
To view, visit http://gerrit.ovirt.org/15283
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib442572880ef75929eecfc19037cca4ad86f206b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to