[pve-devel] [PATCH manager 6/9] add onlineHelp to lxc

Dominik Csapak d.csapak at proxmox.com
Tue Sep 13 13:46:13 CEST 2016


and its options, and to network input panel
and mount point input panel

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/lxc/Config.js       | 14 ++++++++++++++
 www/manager6/lxc/Network.js      |  2 ++
 www/manager6/lxc/ResourceEdit.js |  2 ++
 3 files changed, 18 insertions(+)

diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 9fc89de..672b49a 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -2,6 +2,8 @@ Ext.define('PVE.lxc.Config', {
     extend: 'PVE.panel.Config',
     alias: 'widget.PVE.lxc.Config',
 
+    onlineHelp: 'chapter-pct.html',
+
     initComponent: function() {
         var me = this;
 
@@ -151,6 +153,7 @@ Ext.define('PVE.lxc.Config', {
 	    {
 		title: gettext('Resources'),
 		itemId: 'resources',
+		onlineHelp: 'chapter-pct.html#_configuration',
 		expandedOnInit: true,
 		iconCls: 'fa fa-cube',
 		xtype: 'pveLxcRessourceView'
@@ -158,18 +161,21 @@ Ext.define('PVE.lxc.Config', {
 	    {
 		title: gettext('Network'),
 		iconCls: 'fa fa-exchange',
+		onlineHelp: 'chapter-pct.html#_container_network',
 		itemId: 'network',
 		xtype: 'pveLxcNetworkView'
 	    },
 	    {
 		title: gettext('DNS'),
 		iconCls: 'fa fa-globe',
+		onlineHelp: 'chapter-pct.html#_container_network',
 		itemId: 'dns',
 		xtype: 'pveLxcDNS'
 	    },
 	    {
 		title: gettext('Options'),
 		itemId: 'options',
+		onlineHelp: 'chapter-pct.html#_options',
 		iconCls: 'fa fa-gear',
 		xtype: 'pveLxcOptions'
 	    },
@@ -186,6 +192,7 @@ Ext.define('PVE.lxc.Config', {
 	    me.items.push({
 		title: gettext('Backup'),
 		iconCls: 'fa fa-floppy-o',
+		onlineHelp: 'chapter-vzdump.html',
 		xtype: 'pveBackupView',
 		itemId: 'backup'
 	    });
@@ -195,6 +202,7 @@ Ext.define('PVE.lxc.Config', {
 	    me.items.push({
 		title: gettext('Snapshots'),
 		iconCls: 'fa fa-history',
+		onlineHelp: 'chapter-pct.html#_snapshots',
 		xtype: 'pveLxcSnapshotTree',
 		itemId: 'snapshot'
 	    });
@@ -205,6 +213,7 @@ Ext.define('PVE.lxc.Config', {
 		{
 		    xtype: 'pveFirewallRules',
 		    title: gettext('Firewall'),
+		    onlineHelp: 'chapter-pve-firewall.html',
 		    iconCls: 'fa fa-shield',
 		    allow_iface: true,
 		    base_url: base_url + '/firewall/rules',
@@ -215,6 +224,7 @@ Ext.define('PVE.lxc.Config', {
 		    xtype: 'pveFirewallOptions',
 		    groups: ['firewall'],
 		    iconCls: 'fa fa-gear',
+		    onlineHelp: 'chapter-pve-firewall.html#_vm_container_configuration',
 		    title: gettext('Options'),
 		    base_url: base_url + '/firewall/options',
 		    fwtype: 'vm',
@@ -225,6 +235,7 @@ Ext.define('PVE.lxc.Config', {
 		    title: gettext('Alias'),
 		    groups: ['firewall'],
 		    iconCls: 'fa fa-external-link',
+		    onlineHelp: 'chapter-pve-firewall.html#_ip_aliases',
 		    base_url: base_url + '/firewall/aliases',
 		    itemId: 'firewall-aliases'
 		},
@@ -233,6 +244,7 @@ Ext.define('PVE.lxc.Config', {
 		    title: gettext('IPSet'),
 		    groups: ['firewall'],
 		    iconCls: 'fa fa-list-ol',
+		    onlineHelp: 'chapter-pve-firewall.html#_ip_sets',
 		    base_url: base_url + '/firewall/ipset',
 		    list_refs_url: base_url + '/firewall/refs',
 		    itemId: 'firewall-ipset'
@@ -241,6 +253,7 @@ Ext.define('PVE.lxc.Config', {
 		    title: gettext('Log'),
 		    groups: ['firewall'],
 		    iconCls: 'fa fa-list',
+		    onlineHelp: 'chapter-pve-firewall.html',
 		    itemId: 'firewall-fwlog',
 		    xtype: 'pveLogView',
 		    url: '/api2/extjs' + base_url + '/firewall/log'
@@ -254,6 +267,7 @@ Ext.define('PVE.lxc.Config', {
 		title: gettext('Permissions'),
 		itemId: 'permissions',
 		iconCls: 'fa fa-unlock',
+		onlineHelp: 'chapter-pveum.html',
 		path: '/vms/' + vmid
 	    });
 	}
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 7927a8f..eba4bab 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -4,6 +4,8 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
 
     insideWizard: false,
 
+    onlineHelp: 'chapter-pct.html#_container_network',
+
     setNodename: function(nodename) {
 	var me = this;
 	
diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js
index d88a0d4..498e789 100644
--- a/www/manager6/lxc/ResourceEdit.js
+++ b/www/manager6/lxc/ResourceEdit.js
@@ -187,6 +187,8 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 
     insideWizard: false,
 
+    onlineHelp: 'chapter-pct.html#_container_storage',
+
     unused: false, // ADD usused disk imaged
 
     vmconfig: {}, // used to select usused disks
-- 
2.1.4





More information about the pve-devel mailing list