cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [1/7] git commit: updated refs/heads/ui-granular-settings to b54f643
Date Tue, 16 Apr 2013 19:51:22 GMT
Updated Branches:
  refs/heads/ui-granular-settings 202930fd5 -> b54f643b9


Add granular settings widget


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

Branch: refs/heads/ui-granular-settings
Commit: 1bb0136c8e9575e7113cd38d44effbc02a8127e3
Parents: 202930f
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Apr 16 12:41:04 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Apr 16 12:41:04 2013 -0700

----------------------------------------------------------------------
 ui/index.jsp                             |    1 +
 ui/scripts/ui-custom/granularSettings.js |   46 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1bb0136c/ui/index.jsp
----------------------------------------------------------------------
diff --git a/ui/index.jsp b/ui/index.jsp
index 46f49f0..ce1183d 100644
--- a/ui/index.jsp
+++ b/ui/index.jsp
@@ -1647,6 +1647,7 @@ under the License.
     <script type="text/javascript" src="scripts/ui-custom/autoscaler.js?t=<%=now%>"></script>
     <script type="text/javascript" src="scripts/ui-custom/healthCheck.js?t=<%=now%>"></script>
     <script type="text/javascript" src="scripts/autoscaler.js?t=<%=now%>"></script>
+    <script type="text/javascript" src="scripts/ui-custom/granularSettings.js?t=<%=now%>"></script>
     <script type="text/javascript" src="scripts/ui-custom/zoneChart.js?t=<%=now%>"></script>
     <script type="text/javascript" src="scripts/ui-custom/dashboard.js?t=<%=now%>"></script>
     <script type="text/javascript" src="scripts/installWizard.js?t=<%=now%>"></script>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1bb0136c/ui/scripts/ui-custom/granularSettings.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/granularSettings.js b/ui/scripts/ui-custom/granularSettings.js
new file mode 100644
index 0000000..02d5c1f
--- /dev/null
+++ b/ui/scripts/ui-custom/granularSettings.js
@@ -0,0 +1,46 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+(function($, cloudStack) {
+  cloudStack.uiCustom.granularSettings = function(args) {
+    var dataProvider = args.dataProvider;
+    var actions = args.actions;
+    
+    return function(args) {
+      var context = args.context;
+      
+      var listView = {
+        id: 'settings',
+        fields: {
+          name: { label: 'label.name' },
+          value: { label: 'label.value', editable: true }
+        },
+        actions: {
+          edit: {
+            label: 'label.change.value',
+            action: actions.edit
+          }
+        },
+        dataProvider: dataProvider
+      };
+      
+      var $listView = $('<div>').listView({ context: context, listView: listView });
+      
+      return $listView;
+    }
+  };
+}(jQuery, cloudStack));


Mime
View raw message