[pve-devel] r6194 - pve-manager/pve2/www/manager/dc
svn-commits at proxmox.com
svn-commits at proxmox.com
Wed Jun 29 06:37:40 CEST 2011
Author: dietmar
Date: 2011-06-29 06:37:40 +0200 (Wed, 29 Jun 2011)
New Revision: 6194
Modified:
pve-manager/pve2/www/manager/dc/UserView.js
Log:
add example for Seth
Modified: pve-manager/pve2/www/manager/dc/UserView.js
===================================================================
--- pve-manager/pve2/www/manager/dc/UserView.js 2011-06-28 10:39:11 UTC (rev 6193)
+++ pve-manager/pve2/www/manager/dc/UserView.js 2011-06-29 04:37:40 UTC (rev 6194)
@@ -6,6 +6,41 @@
initComponent : function() {
var me = this;
+ var tbar = [
+ {
+ text: 'Add',
+ handler: function() {
+ var msg = 'This feature is not implemented yet!';
+ Ext.Msg.alert('Not Implemented', msg);
+ }
+ },
+ {
+ text: 'Modify',
+ handler: function() {
+ var msg = 'This feature is not implemented yet!';
+ Ext.Msg.alert('Not Implemented', msg);
+ }
+ },
+ {
+ text: 'Delete',
+ handler: function() {
+ var sm = me.getSelectionModel();
+ var rec = sm.getLastSelected();
+ if (!rec)
+ return;
+
+ var userid = rec.data.userid;
+
+ var msg = 'Are you sure you want to permanently delete the user: ' + userid;
+ Ext.Msg.confirm('Deletion Confirmation', msg, function(btn) {
+ if (btn !== 'yes')
+ return;
+ Ext.Msg.alert('Not Implemented', 'This feature is not implemented yet!');
+ });
+ }
+ }
+ ];
+
var store = new Ext.data.Store({
model: 'pve-users',
proxy: {
@@ -43,6 +78,7 @@
Ext.apply(me, {
store: store,
stateful: false,
+ tbar: tbar,
viewConfig: {
trackOver: false
More information about the pve-devel
mailing list