use auto-generated block IDs to reference online docu.

This commit is contained in:
Dietmar Maurer 2016-10-13 11:26:06 +02:00
parent 3d9a210f55
commit c8802a60b7
23 changed files with 109 additions and 152 deletions

View File

@ -207,8 +207,12 @@ JSSRC= \
lint: ${JSSRC} lint: ${JSSRC}
jslint ${JSSRC} jslint ${JSSRC}
pvemanagerlib.js: ${JSSRC} pvemanagerlib.js: OnlineHelpInfo.js ${JSSRC}
cat ${JSSRC} >$@.tmp cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
mv $@.tmp $@
OnlineHelpInfo.js: /usr/bin/asciidoc-pve
/usr/bin/asciidoc-pve scan-extjs ${JSSRC} >$@.tmp
mv $@.tmp $@ mv $@.tmp $@
all: pvemanagerlib.js all: pvemanagerlib.js
@ -222,7 +226,7 @@ install: pvemanagerlib.js
.PHONY: clean .PHONY: clean
clean: clean:
find . -name '*~' -exec rm {} ';' find . -name '*~' -exec rm {} ';'
rm -rf pvemanagerlib.js rm -rf pvemanagerlib.js OnlineHelpInfo.js

View File

@ -1277,72 +1277,6 @@ Ext.define('PVE.Utils', { statics: {
} }
menu.showAt(event.getXY()); menu.showAt(event.getXY());
},
DocsPages: {
'pve-admin-guide.html':'Proxmox VE Administration Guide',
'chapter-sysadmin.html':'Host System Administration',
'chapter-pvecm.html':'Cluster Manager',
'chapter-pmxcfs.html':'Proxmox Cluster File System (pmxcfs)',
'chapter-pvesm.html':'Proxmox VE Storage',
'chapter-qm.html': 'Qemu/KVM Virtual Machines',
'chapter-pve-firewall.html': 'Proxmox VE Firewall',
'chapter-pveum.html': 'User Management',
'chapter-pct.html': 'Proxmox Container Toolkit',
'chapter-ha-manager.html': 'High Availability',
'chapter-vzdump.html': 'Backup and Restore',
'chapter-pve-faq.html': 'Frequently Asked Questions',
'chapter-pve-bibliography.html': 'Bibliography',
'qm.1.html': 'Qemu/KVM Virtual Machine Manager',
'qmrestore.1.html': 'Restore QemuServer vzdump Backups',
'pct.1.html': 'Tool to manage Linux Containers (LXC) on Proxmox VE',
'pveam.1.html': 'Proxmox VE Appliance Manager',
'pveceph.1.html': 'Manage CEPH Services on Proxmox VE Nodes',
'pvecm.1.html': 'Proxmox VE Cluster Manager',
'pveum.1.html': 'Proxmox VE User Manager',
'pvesm.1.html': 'Proxmox VE Storage Manager',
'pvesubscription.1.html': 'Proxmox VE Subscription Manager',
'vzdump.1.html': 'Backup Utility for VMs and Containers',
'ha-manager.1.html': 'Proxmox VE HA Manager',
'index.html':'',
'datacenter.cfg.5.html':'Proxmox VE Datacenter Configuration'
},
DocsSubTitles: {
'_vm_container_configuration':'VM/Container configuration',
'_ip_aliases':'IP Aliases',
'_ip_sets':'IP Sets'
},
mapDocsUrlToTitle: function(url) {
var title, subtitle;
// if there is a subtitle
if (url.indexOf('#') !== -1) {
title = PVE.Utils.DocsPages[url.split('#')[0]] || '';
subtitle = PVE.Utils.DocsSubTitles[url.split('#')[1]];
// if we do not find the subtitle,
// capitalize the beginning of every word
// and replace '_' with ' '
// e.g.:
// '_my_text' -> 'My Text'
if (!subtitle) {
subtitle = url.split('#')[1].replace(/_(\w)/gi, function(match,p1){
return ' ' + p1.toUpperCase();
}).slice(1);
}
if (title !== '') {
title += ' - ';
}
title += subtitle;
} else {
title = PVE.Utils.DocsPages[url] || '';
}
return title;
} }
}}); }});

View File

@ -405,7 +405,7 @@ Ext.define('PVE.StdWorkspace', {
hidden: false, hidden: false,
iconCls: 'fa fa-info-circle x-btn-icon-el-default-toolbar-small ', iconCls: 'fa fa-info-circle x-btn-icon-el-default-toolbar-small ',
listenToGlobalEvent: false, listenToGlobalEvent: false,
onlineHelp: 'index.html', onlineHelp: 'pve_documentation_index',
margin: '0 5 0 0' margin: '0 5 0 0'
}, },
createVM, createVM,

View File

@ -1,6 +1,9 @@
/* help button pointing to an online documentation /* help button pointing to an online documentation
for components contained in a modal window for components contained in a modal window
*/ */
/*global
pveOnlineHelpInfo
*/
Ext.define('PVE.button.Help', { Ext.define('PVE.button.Help', {
extend: 'Ext.button.Button', extend: 'Ext.button.Button',
alias: 'widget.pveHelpButton', alias: 'widget.pveHelpButton',
@ -35,16 +38,32 @@ Ext.define('PVE.button.Help', {
// this sets the link and // this sets the link and
// sets the tooltip text // sets the tooltip text
setOnlineHelp:function(link) { setOnlineHelp:function(blockid) {
var me = this; var me = this;
me.onlineHelp = link;
me.setTooltip(PVE.Utils.mapDocsUrlToTitle(link)); var info = pveOnlineHelpInfo[blockid];
if (info) {
me.onlineHelp = blockid;
var title = info.title;
if (info.subtitle) {
title += ' - ' + info.subtitle;
}
me.setTooltip(title);
}
}, },
handler: function() { handler: function() {
var me = this; var me = this;
var docsURI;
if (me.onlineHelp) { if (me.onlineHelp) {
var docsURI = window.location.origin + '/pve-docs/' + me.onlineHelp; var info = pveOnlineHelpInfo[me.onlineHelp];
if (info) {
docsURI = window.location.origin + info.link;
}
}
if (docsURI) {
window.open(docsURI); window.open(docsURI);
} else { } else {
Ext.Msg.alert(gettext('Help'), gettext('No Help available')); Ext.Msg.alert(gettext('Help'), gettext('No Help available'));

View File

@ -57,7 +57,7 @@ Ext.define('PVE.dc.ACLAdd', {
var ipanel = Ext.create('PVE.panel.InputPanel', { var ipanel = Ext.create('PVE.panel.InputPanel', {
items: items, items: items,
onlineHelp: 'chapter-pveum.html#_terms_and_definitions' onlineHelp: 'pveum_permission_management'
}); });
Ext.apply(me, { Ext.apply(me, {

View File

@ -6,7 +6,7 @@ Ext.define('PVE.dc.Config', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.PVE.dc.Config', alias: 'widget.PVE.dc.Config',
onlineHelp: 'pve-admin-guide.html', onlineHelp: 'pve_admin_guide',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -31,7 +31,7 @@ Ext.define('PVE.dc.Config', {
me.items.push({ me.items.push({
xtype: 'pveDcOptionView', xtype: 'pveDcOptionView',
title: gettext('Options'), title: gettext('Options'),
onlineHelp: 'datacenter.cfg.5.html', onlineHelp: 'datacenter_configuration_file',
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
itemId: 'options' itemId: 'options'
}); });
@ -41,7 +41,7 @@ Ext.define('PVE.dc.Config', {
me.items.push({ me.items.push({
xtype: 'pveStorageView', xtype: 'pveStorageView',
title: gettext('Storage'), title: gettext('Storage'),
onlineHelp: 'chapter-pvesm.html', onlineHelp: 'chapter_storage',
iconCls: 'fa fa-database', iconCls: 'fa fa-database',
itemId: 'storage' itemId: 'storage'
}); });
@ -51,7 +51,7 @@ Ext.define('PVE.dc.Config', {
me.items.push({ me.items.push({
xtype: 'pveDcBackupView', xtype: 'pveDcBackupView',
iconCls: 'fa fa-floppy-o', iconCls: 'fa fa-floppy-o',
onlineHelp: 'chapter-vzdump.html', onlineHelp: 'chapter_vzdump',
title: gettext('Backup'), title: gettext('Backup'),
itemId: 'backup' itemId: 'backup'
}, },
@ -59,7 +59,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveACLView', xtype: 'pveACLView',
title: gettext('Permissions'), title: gettext('Permissions'),
iconCls: 'fa fa-unlock', iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html', onlineHelp: 'chapter_user_management',
itemId: 'permissions', itemId: 'permissions',
expandedOnInit: true expandedOnInit: true
}); });
@ -69,7 +69,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveUserView', xtype: 'pveUserView',
groups: ['permissions'], groups: ['permissions'],
iconCls: 'fa fa-user', iconCls: 'fa fa-user',
onlineHelp: 'chapter-pveum.html#_users', onlineHelp: 'pveum_users',
title: gettext('Users'), title: gettext('Users'),
itemId: 'users' itemId: 'users'
}); });
@ -79,7 +79,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveGroupView', xtype: 'pveGroupView',
title: gettext('Groups'), title: gettext('Groups'),
iconCls: 'fa fa-users', iconCls: 'fa fa-users',
onlineHelp: 'chapter-pveum.html#_groups', onlineHelp: 'pveum_groups',
groups: ['permissions'], groups: ['permissions'],
itemId: 'groups' itemId: 'groups'
}, },
@ -87,7 +87,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pvePoolView', xtype: 'pvePoolView',
title: gettext('Pools'), title: gettext('Pools'),
iconCls: 'fa fa-tags', iconCls: 'fa fa-tags',
onlineHelp: 'chapter-pveum.html#_pools', onlineHelp: 'pveum_pools',
groups: ['permissions'], groups: ['permissions'],
itemId: 'pools' itemId: 'pools'
}, },
@ -95,7 +95,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveRoleView', xtype: 'pveRoleView',
title: gettext('Roles'), title: gettext('Roles'),
iconCls: 'fa fa-male', iconCls: 'fa fa-male',
onlineHelp: 'chapter-pveum.html#_roles', onlineHelp: 'pveum_roles',
groups: ['permissions'], groups: ['permissions'],
itemId: 'roles' itemId: 'roles'
}, },
@ -103,7 +103,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveAuthView', xtype: 'pveAuthView',
title: gettext('Authentication'), title: gettext('Authentication'),
groups: ['permissions'], groups: ['permissions'],
onlineHelp: 'chapter-pveum.html#_authentication_realms', onlineHelp: 'pveum_authentication_realms',
iconCls: 'fa fa-key', iconCls: 'fa fa-key',
itemId: 'domains' itemId: 'domains'
}, },
@ -111,14 +111,14 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveHAStatusView', xtype: 'pveHAStatusView',
title: 'HA', title: 'HA',
iconCls: 'fa fa-heartbeat', iconCls: 'fa fa-heartbeat',
onlineHelp: 'chapter-ha-manager.html', onlineHelp: 'chapter_ha_manager',
itemId: 'ha' itemId: 'ha'
}, },
{ {
title: gettext('Resources'), title: gettext('Resources'),
groups: ['ha'], groups: ['ha'],
iconCls: 'fa fa-th', iconCls: 'fa fa-th',
onlineHelp: 'chapter-ha-manager.html#_resources', onlineHelp: 'ha_manager_resources',
xtype: 'pveHAResourcesView', xtype: 'pveHAResourcesView',
itemId: 'resources' itemId: 'resources'
}, },
@ -126,7 +126,7 @@ Ext.define('PVE.dc.Config', {
title: gettext('Groups'), title: gettext('Groups'),
groups: ['ha'], groups: ['ha'],
xtype: 'pveHAGroupsView', xtype: 'pveHAGroupsView',
onlineHelp: 'chapter-ha-manager.html#_groups', onlineHelp: 'ha_manager_groups',
iconCls: 'fa fa-object-group', iconCls: 'fa fa-object-group',
itemId: 'ha-groups' itemId: 'ha-groups'
}, },
@ -134,7 +134,7 @@ Ext.define('PVE.dc.Config', {
title: gettext('Fencing'), title: gettext('Fencing'),
groups: ['ha'], groups: ['ha'],
iconCls: 'fa fa-bolt', iconCls: 'fa fa-bolt',
onlineHelp: 'chapter-ha-manager.html#_fencing', onlineHelp: 'ha_manager_fencing',
xtype: 'pveFencingView', xtype: 'pveFencingView',
itemId: 'ha-fencing' itemId: 'ha-fencing'
}, },
@ -145,7 +145,7 @@ Ext.define('PVE.dc.Config', {
base_url: '/cluster/firewall/rules', base_url: '/cluster/firewall/rules',
list_refs_url: '/cluster/firewall/refs', list_refs_url: '/cluster/firewall/refs',
iconCls: 'fa fa-shield', iconCls: 'fa fa-shield',
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
itemId: 'firewall' itemId: 'firewall'
}, },
{ {
@ -154,7 +154,7 @@ Ext.define('PVE.dc.Config', {
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
base_url: '/cluster/firewall/options', base_url: '/cluster/firewall/options',
onlineHelp: 'chapter-pve-firewall.html#_cluster_wide_setup', onlineHelp: 'pve_firewall_cluster_wide_setup',
fwtype: 'dc', fwtype: 'dc',
itemId: 'firewall-options' itemId: 'firewall-options'
}, },
@ -163,7 +163,7 @@ Ext.define('PVE.dc.Config', {
title: gettext('Security Group'), title: gettext('Security Group'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-group', iconCls: 'fa fa-group',
onlineHelp: 'chapter-pve-firewall.html#_security_groups', onlineHelp: 'pve_firewall_security_groups',
itemId: 'firewall-sg' itemId: 'firewall-sg'
}, },
{ {
@ -171,7 +171,7 @@ Ext.define('PVE.dc.Config', {
title: gettext('Alias'), title: gettext('Alias'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-external-link', iconCls: 'fa fa-external-link',
onlineHelp: 'chapter-pve-firewall.html#_ip_aliases', onlineHelp: 'pve_firewall_ip_aliases',
base_url: '/cluster/firewall/aliases', base_url: '/cluster/firewall/aliases',
itemId: 'firewall-aliases' itemId: 'firewall-aliases'
}, },
@ -180,7 +180,7 @@ Ext.define('PVE.dc.Config', {
title: 'IPSet', title: 'IPSet',
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-list-ol', iconCls: 'fa fa-list-ol',
onlineHelp: 'chapter-pve-firewall.html#_ip_sets', onlineHelp: 'pve_firewall_ip_sets',
base_url: '/cluster/firewall/ipset', base_url: '/cluster/firewall/ipset',
list_refs_url: '/cluster/firewall/refs', list_refs_url: '/cluster/firewall/refs',
itemId: 'firewall-ipset' itemId: 'firewall-ipset'
@ -189,7 +189,7 @@ Ext.define('PVE.dc.Config', {
xtype: 'pveDcSupport', xtype: 'pveDcSupport',
title: gettext('Support'), title: gettext('Support'),
itemId: 'support', itemId: 'support',
onlineHelp: 'chapter-sysadmin.html#_getting_help', onlineHelp: 'getting_help',
iconCls: 'fa fa-comments-o' iconCls: 'fa fa-comments-o'
}); });
} }

View File

@ -1,6 +1,6 @@
Ext.define('PVE.ha.GroupInputPanel', { Ext.define('PVE.ha.GroupInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
onlineHelp: 'chapter-ha-manager.html#_groups', onlineHelp: 'ha_manager_groups',
groupId: undefined, groupId: undefined,

View File

@ -2,7 +2,7 @@ Ext.define('PVE.lxc.Config', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.PVE.lxc.Config', alias: 'widget.PVE.lxc.Config',
onlineHelp: 'chapter-pct.html', onlineHelp: 'chapter_pct',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -153,7 +153,7 @@ Ext.define('PVE.lxc.Config', {
{ {
title: gettext('Resources'), title: gettext('Resources'),
itemId: 'resources', itemId: 'resources',
onlineHelp: 'chapter-pct.html#_configuration', onlineHelp: 'pct_configuration',
expandedOnInit: true, expandedOnInit: true,
iconCls: 'fa fa-cube', iconCls: 'fa fa-cube',
xtype: 'pveLxcRessourceView' xtype: 'pveLxcRessourceView'
@ -161,21 +161,21 @@ Ext.define('PVE.lxc.Config', {
{ {
title: gettext('Network'), title: gettext('Network'),
iconCls: 'fa fa-exchange', iconCls: 'fa fa-exchange',
onlineHelp: 'chapter-pct.html#_container_network', onlineHelp: 'pct_container_network',
itemId: 'network', itemId: 'network',
xtype: 'pveLxcNetworkView' xtype: 'pveLxcNetworkView'
}, },
{ {
title: gettext('DNS'), title: gettext('DNS'),
iconCls: 'fa fa-globe', iconCls: 'fa fa-globe',
onlineHelp: 'chapter-pct.html#_container_network', onlineHelp: 'pct_container_network',
itemId: 'dns', itemId: 'dns',
xtype: 'pveLxcDNS' xtype: 'pveLxcDNS'
}, },
{ {
title: gettext('Options'), title: gettext('Options'),
itemId: 'options', itemId: 'options',
onlineHelp: 'chapter-pct.html#_options', onlineHelp: 'pct_options',
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions' xtype: 'pveLxcOptions'
}, },
@ -192,7 +192,7 @@ Ext.define('PVE.lxc.Config', {
me.items.push({ me.items.push({
title: gettext('Backup'), title: gettext('Backup'),
iconCls: 'fa fa-floppy-o', iconCls: 'fa fa-floppy-o',
onlineHelp: 'chapter-vzdump.html', onlineHelp: 'chapter_vzdump',
xtype: 'pveBackupView', xtype: 'pveBackupView',
itemId: 'backup' itemId: 'backup'
}); });
@ -202,7 +202,7 @@ Ext.define('PVE.lxc.Config', {
me.items.push({ me.items.push({
title: gettext('Snapshots'), title: gettext('Snapshots'),
iconCls: 'fa fa-history', iconCls: 'fa fa-history',
onlineHelp: 'chapter-pct.html#_snapshots', onlineHelp: 'pct_snapshots',
xtype: 'pveLxcSnapshotTree', xtype: 'pveLxcSnapshotTree',
itemId: 'snapshot' itemId: 'snapshot'
}); });
@ -213,7 +213,7 @@ Ext.define('PVE.lxc.Config', {
{ {
xtype: 'pveFirewallRules', xtype: 'pveFirewallRules',
title: gettext('Firewall'), title: gettext('Firewall'),
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
iconCls: 'fa fa-shield', iconCls: 'fa fa-shield',
allow_iface: true, allow_iface: true,
base_url: base_url + '/firewall/rules', base_url: base_url + '/firewall/rules',
@ -224,7 +224,7 @@ Ext.define('PVE.lxc.Config', {
xtype: 'pveFirewallOptions', xtype: 'pveFirewallOptions',
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
onlineHelp: 'chapter-pve-firewall.html#_vm_container_configuration', onlineHelp: 'pve_firewall_vm_container_configuration',
title: gettext('Options'), title: gettext('Options'),
base_url: base_url + '/firewall/options', base_url: base_url + '/firewall/options',
fwtype: 'vm', fwtype: 'vm',
@ -235,7 +235,7 @@ Ext.define('PVE.lxc.Config', {
title: gettext('Alias'), title: gettext('Alias'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-external-link', iconCls: 'fa fa-external-link',
onlineHelp: 'chapter-pve-firewall.html#_ip_aliases', onlineHelp: 'pve_firewall_ip_aliases',
base_url: base_url + '/firewall/aliases', base_url: base_url + '/firewall/aliases',
itemId: 'firewall-aliases' itemId: 'firewall-aliases'
}, },
@ -244,7 +244,7 @@ Ext.define('PVE.lxc.Config', {
title: gettext('IPSet'), title: gettext('IPSet'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-list-ol', iconCls: 'fa fa-list-ol',
onlineHelp: 'chapter-pve-firewall.html#_ip_sets', onlineHelp: 'pve_firewall_ip_sets',
base_url: base_url + '/firewall/ipset', base_url: base_url + '/firewall/ipset',
list_refs_url: base_url + '/firewall/refs', list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset' itemId: 'firewall-ipset'
@ -253,7 +253,7 @@ Ext.define('PVE.lxc.Config', {
title: gettext('Log'), title: gettext('Log'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-list', iconCls: 'fa fa-list',
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
itemId: 'firewall-fwlog', itemId: 'firewall-fwlog',
xtype: 'pveLogView', xtype: 'pveLogView',
url: '/api2/extjs' + base_url + '/firewall/log' url: '/api2/extjs' + base_url + '/firewall/log'
@ -267,7 +267,7 @@ Ext.define('PVE.lxc.Config', {
title: gettext('Permissions'), title: gettext('Permissions'),
itemId: 'permissions', itemId: 'permissions',
iconCls: 'fa fa-unlock', iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html', onlineHelp: 'chapter_user_management',
path: '/vms/' + vmid path: '/vms/' + vmid
}); });
} }

View File

@ -60,7 +60,7 @@ Ext.define('PVE.lxc.CreateWizard', {
insideWizard: true, insideWizard: true,
create: true, create: true,
unused: false, unused: false,
onlineHelp: 'chapter-pct.html#_container_storage', onlineHelp: 'pct_container_storage',
confid: 'rootfs' confid: 'rootfs'
}); });
@ -68,7 +68,7 @@ Ext.define('PVE.lxc.CreateWizard', {
title: gettext('Network'), title: gettext('Network'),
insideWizard: true, insideWizard: true,
dataCache: {}, dataCache: {},
onlineHelp: 'chapter-pct.html#_container_network', onlineHelp: 'pct_container_network',
create: true create: true
}); });
@ -224,7 +224,7 @@ Ext.define('PVE.lxc.CreateWizard', {
{ {
xtype: 'inputpanel', xtype: 'inputpanel',
title: gettext('Template'), title: gettext('Template'),
onlineHelp: 'chapter-pct.html#_container_images', onlineHelp: 'pct_container_images',
column1: [ tmplstoragesel, tmplsel] column1: [ tmplstoragesel, tmplsel]
}, },
rootfspanel, rootfspanel,

View File

@ -4,7 +4,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
insideWizard: false, insideWizard: false,
onlineHelp: 'chapter-pct.html#_container_network', onlineHelp: 'pct_container_network',
setNodename: function(nodename) { setNodename: function(nodename) {
var me = this; var me = this;

View File

@ -187,7 +187,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
insideWizard: false, insideWizard: false,
onlineHelp: 'chapter-pct.html#_container_storage', onlineHelp: 'pct_container_storage',
unused: false, // ADD usused disk imaged unused: false, // ADD usused disk imaged

View File

@ -2,7 +2,7 @@ Ext.define('PVE.node.Config', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.PVE.node.Config', alias: 'widget.PVE.node.Config',
onlineHelp: 'chapter-sysadmin.html', onlineHelp: 'chapter_system_administration',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -160,7 +160,7 @@ Ext.define('PVE.node.Config', {
title: gettext('System'), title: gettext('System'),
iconCls: 'fa fa-cogs', iconCls: 'fa fa-cogs',
itemId: 'services', itemId: 'services',
onlineHelp: 'index.html#_service_daemons', onlineHelp: 'pve_service_daemons',
expandedOnInit: true, expandedOnInit: true,
xtype: 'pveNodeServiceView' xtype: 'pveNodeServiceView'
}, },
@ -168,7 +168,7 @@ Ext.define('PVE.node.Config', {
title: gettext('Network'), title: gettext('Network'),
iconCls: 'fa fa-exchange', iconCls: 'fa fa-exchange',
itemId: 'network', itemId: 'network',
onlineHelp: 'chapter-sysadmin.html#_network_configuration', onlineHelp: 'sysadmin_network_configuration',
groups: ['services'], groups: ['services'],
xtype: 'pveNodeNetworkView' xtype: 'pveNodeNetworkView'
}, },
@ -177,7 +177,7 @@ Ext.define('PVE.node.Config', {
iconCls: 'fa fa-globe', iconCls: 'fa fa-globe',
groups: ['services'], groups: ['services'],
itemId: 'dns', itemId: 'dns',
onlineHelp: 'chapter-sysadmin.html#_network_configuration', onlineHelp: 'sysadmin_network_configuration',
xtype: 'pveNodeDNSView' xtype: 'pveNodeDNSView'
}, },
{ {
@ -207,7 +207,7 @@ Ext.define('PVE.node.Config', {
iconCls: 'fa fa-refresh', iconCls: 'fa fa-refresh',
disabled: !caps.nodes['Sys.Console'], disabled: !caps.nodes['Sys.Console'],
// do we want to link to system updates instead? // do we want to link to system updates instead?
onlineHelp: 'chapter-sysadmin.html#_package_repositories', onlineHelp: 'sysadmin_package_repositories',
itemId: 'apt', itemId: 'apt',
xtype: 'pveNodeAPT', xtype: 'pveNodeAPT',
nodename: nodename nodename: nodename
@ -220,7 +220,7 @@ Ext.define('PVE.node.Config', {
{ {
xtype: 'pveFirewallRules', xtype: 'pveFirewallRules',
iconCls: 'fa fa-shield', iconCls: 'fa fa-shield',
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
title: gettext('Firewall'), title: gettext('Firewall'),
allow_iface: true, allow_iface: true,
base_url: '/nodes/' + nodename + '/firewall/rules', base_url: '/nodes/' + nodename + '/firewall/rules',
@ -231,7 +231,7 @@ Ext.define('PVE.node.Config', {
xtype: 'pveFirewallOptions', xtype: 'pveFirewallOptions',
title: gettext('Options'), title: gettext('Options'),
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
onlineHelp: 'chapter-pve-firewall.html#_host_specific_configuration', onlineHelp: 'pve_firewall_host_specific_configuration',
groups: ['firewall'], groups: ['firewall'],
base_url: '/nodes/' + nodename + '/firewall/options', base_url: '/nodes/' + nodename + '/firewall/options',
fwtype: 'node', fwtype: 'node',
@ -252,7 +252,7 @@ Ext.define('PVE.node.Config', {
{ {
title: 'Ceph', title: 'Ceph',
itemId: 'ceph', itemId: 'ceph',
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
iconCls: 'fa fa-ceph', iconCls: 'fa fa-ceph',
xtype: 'pveNodeCephStatus' xtype: 'pveNodeCephStatus'
}, },
@ -260,7 +260,7 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephConfigCrush', xtype: 'pveNodeCephConfigCrush',
title: gettext('Config'), title: gettext('Config'),
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
groups: ['ceph'], groups: ['ceph'],
itemId: 'ceph-config' itemId: 'ceph-config'
}, },
@ -268,7 +268,7 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephMonList', xtype: 'pveNodeCephMonList',
title: gettext('Monitor'), title: gettext('Monitor'),
iconCls: 'fa fa-tv', iconCls: 'fa fa-tv',
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
groups: ['ceph'], groups: ['ceph'],
itemId: 'ceph-monlist' itemId: 'ceph-monlist'
}, },
@ -276,7 +276,7 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephOsdTree', xtype: 'pveNodeCephOsdTree',
title: 'OSD', title: 'OSD',
iconCls: 'fa fa-hdd-o', iconCls: 'fa fa-hdd-o',
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
groups: ['ceph'], groups: ['ceph'],
itemId: 'ceph-osdtree' itemId: 'ceph-osdtree'
}, },
@ -284,7 +284,7 @@ Ext.define('PVE.node.Config', {
xtype: 'pveNodeCephPoolList', xtype: 'pveNodeCephPoolList',
title: gettext('Pools'), title: gettext('Pools'),
iconCls: 'fa fa-sitemap', iconCls: 'fa fa-sitemap',
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
groups: ['ceph'], groups: ['ceph'],
itemId: 'ceph-pools' itemId: 'ceph-pools'
} }
@ -298,7 +298,7 @@ Ext.define('PVE.node.Config', {
title: gettext('Log'), title: gettext('Log'),
iconCls: 'fa fa-list', iconCls: 'fa fa-list',
groups: ['firewall'], groups: ['firewall'],
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
url: '/api2/extjs/nodes/' + nodename + '/firewall/log', url: '/api2/extjs/nodes/' + nodename + '/firewall/log',
itemId: 'firewall-fwlog' itemId: 'firewall-fwlog'
}, },
@ -307,7 +307,7 @@ Ext.define('PVE.node.Config', {
itemId: 'ceph-log', itemId: 'ceph-log',
iconCls: 'fa fa-list', iconCls: 'fa fa-list',
groups: ['ceph'], groups: ['ceph'],
onlineHelp: 'pveceph.1.html', onlineHelp: 'chapter_pveceph',
xtype: 'pveLogView', xtype: 'pveLogView',
url: "/api2/extjs/nodes/" + nodename + "/ceph/log" url: "/api2/extjs/nodes/" + nodename + "/ceph/log"
}); });
@ -324,7 +324,7 @@ Ext.define('PVE.node.Config', {
title: gettext('Subscription'), title: gettext('Subscription'),
iconCls: 'fa fa-support', iconCls: 'fa fa-support',
itemId: 'support', itemId: 'support',
onlineHelp: 'chapter-sysadmin.html#_getting_help', onlineHelp: 'getting_help',
xtype: 'pveNodeSubscription', xtype: 'pveNodeSubscription',
nodename: nodename nodename: nodename
} }

View File

@ -2,7 +2,7 @@ Ext.define('PVE.pool.Config', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.pvePoolConfig', alias: 'widget.pvePoolConfig',
onlineHelp: 'chapter-pveum.html#_pools', onlineHelp: 'pveum_pools',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -33,7 +33,7 @@ Ext.define('PVE.pool.Config', {
xtype: 'pveACLView', xtype: 'pveACLView',
title: gettext('Permissions'), title: gettext('Permissions'),
iconCls: 'fa fa-unlock', iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html', onlineHelp: 'chapter_user_management',
itemId: 'permissions', itemId: 'permissions',
path: '/pool/' + pool path: '/pool/' + pool
} }

View File

@ -2,7 +2,7 @@ Ext.define('PVE.qemu.Config', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.PVE.qemu.Config', alias: 'widget.PVE.qemu.Config',
onlineHelp: 'chapter-qm.html', onlineHelp: 'chapter_virtual_machines',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -162,14 +162,14 @@ Ext.define('PVE.qemu.Config', {
{ {
title: gettext('Hardware'), title: gettext('Hardware'),
itemId: 'hardware', itemId: 'hardware',
onlineHelp: 'chapter-qm.html#_virtual_machines_settings', onlineHelp: 'qm_virtual_machines_settings',
iconCls: 'fa fa-desktop', iconCls: 'fa fa-desktop',
xtype: 'PVE.qemu.HardwareView' xtype: 'PVE.qemu.HardwareView'
}, },
{ {
title: gettext('Options'), title: gettext('Options'),
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
onlineHelp: 'chapter-qm.html#_options', onlineHelp: 'qm_options',
itemId: 'options', itemId: 'options',
xtype: 'PVE.qemu.Options' xtype: 'PVE.qemu.Options'
}, },
@ -196,7 +196,7 @@ Ext.define('PVE.qemu.Config', {
title: gettext('Backup'), title: gettext('Backup'),
iconCls: 'fa fa-floppy-o', iconCls: 'fa fa-floppy-o',
xtype: 'pveBackupView', xtype: 'pveBackupView',
onlineHelp: 'chapter-vzdump.html', onlineHelp: 'chapter_vzdump',
itemId: 'backup' itemId: 'backup'
}); });
} }
@ -216,7 +216,7 @@ Ext.define('PVE.qemu.Config', {
xtype: 'pveFirewallRules', xtype: 'pveFirewallRules',
title: gettext('Firewall'), title: gettext('Firewall'),
iconCls: 'fa fa-shield', iconCls: 'fa fa-shield',
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
allow_iface: true, allow_iface: true,
base_url: base_url + '/firewall/rules', base_url: base_url + '/firewall/rules',
list_refs_url: base_url + '/firewall/refs', list_refs_url: base_url + '/firewall/refs',
@ -226,7 +226,7 @@ Ext.define('PVE.qemu.Config', {
xtype: 'pveFirewallOptions', xtype: 'pveFirewallOptions',
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-gear', iconCls: 'fa fa-gear',
onlineHelp: 'chapter-pve-firewall.html#_vm_container_configuration', onlineHelp: 'pve_firewall_vm_container_configuration',
title: gettext('Options'), title: gettext('Options'),
base_url: base_url + '/firewall/options', base_url: base_url + '/firewall/options',
fwtype: 'vm', fwtype: 'vm',
@ -237,7 +237,7 @@ Ext.define('PVE.qemu.Config', {
title: gettext('Alias'), title: gettext('Alias'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-external-link', iconCls: 'fa fa-external-link',
onlineHelp: 'chapter-pve-firewall.html#_ip_aliases', onlineHelp: 'pve_firewall_ip_aliases',
base_url: base_url + '/firewall/aliases', base_url: base_url + '/firewall/aliases',
itemId: 'firewall-aliases' itemId: 'firewall-aliases'
}, },
@ -246,7 +246,7 @@ Ext.define('PVE.qemu.Config', {
title: gettext('IPSet'), title: gettext('IPSet'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-list-ol', iconCls: 'fa fa-list-ol',
onlineHelp: 'chapter-pve-firewall.html#_ip_sets', onlineHelp: 'pve_firewall_ip_sets',
base_url: base_url + '/firewall/ipset', base_url: base_url + '/firewall/ipset',
list_refs_url: base_url + '/firewall/refs', list_refs_url: base_url + '/firewall/refs',
itemId: 'firewall-ipset' itemId: 'firewall-ipset'
@ -255,7 +255,7 @@ Ext.define('PVE.qemu.Config', {
title: gettext('Log'), title: gettext('Log'),
groups: ['firewall'], groups: ['firewall'],
iconCls: 'fa fa-list', iconCls: 'fa fa-list',
onlineHelp: 'chapter-pve-firewall.html', onlineHelp: 'chapter_pve_firewall',
itemId: 'firewall-fwlog', itemId: 'firewall-fwlog',
xtype: 'pveLogView', xtype: 'pveLogView',
url: '/api2/extjs' + base_url + '/firewall/log' url: '/api2/extjs' + base_url + '/firewall/log'
@ -268,7 +268,7 @@ Ext.define('PVE.qemu.Config', {
xtype: 'pveACLView', xtype: 'pveACLView',
title: gettext('Permissions'), title: gettext('Permissions'),
iconCls: 'fa fa-unlock', iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html', onlineHelp: 'chapter_user_management',
itemId: 'permissions', itemId: 'permissions',
path: '/vms/' + vmid path: '/vms/' + vmid
}); });

View File

@ -44,7 +44,7 @@ Ext.define('PVE.qemu.CreateWizard', {
{ {
xtype: 'inputpanel', xtype: 'inputpanel',
title: gettext('General'), title: gettext('General'),
onlineHelp: 'chapter-qm.html#_general_settings', onlineHelp: 'qm_general_settings',
column1: [ column1: [
{ {
xtype: 'pveNodeSelector', xtype: 'pveNodeSelector',

View File

@ -3,7 +3,7 @@
Ext.define('PVE.qemu.HDInputPanel', { Ext.define('PVE.qemu.HDInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
alias: 'widget.PVE.qemu.HDInputPanel', alias: 'widget.PVE.qemu.HDInputPanel',
onlineHelp: 'chapter-qm.html#_hard_disk', onlineHelp: 'qm_hard_disk',
insideWizard: false, insideWizard: false,

View File

@ -126,7 +126,7 @@ Ext.define('PVE.qemu.EFIDiskEdit', {
/* because create is a method above..., really jslint? */ /* because create is a method above..., really jslint? */
me.items = [{ me.items = [{
xtype: 'pveEFIDiskInputPanel', xtype: 'pveEFIDiskInputPanel',
onlineHelp: 'chapter-qm.html#_bios_and_uefi', onlineHelp: 'qm_bios_and_uefi',
confid: me.confid, confid: me.confid,
nodename: nodename, nodename: nodename,
create: true create: true

View File

@ -1,7 +1,7 @@
Ext.define('PVE.qemu.MemoryInputPanel', { Ext.define('PVE.qemu.MemoryInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
alias: 'widget.pveQemuMemoryPanel', alias: 'widget.pveQemuMemoryPanel',
onlineHelp: 'chapter-qm.html#_memory', onlineHelp: 'qm_memory',
insideWizard: false, insideWizard: false,

View File

@ -1,7 +1,7 @@
Ext.define('PVE.qemu.NetworkInputPanel', { Ext.define('PVE.qemu.NetworkInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
alias: 'widget.PVE.qemu.NetworkInputPanel', alias: 'widget.PVE.qemu.NetworkInputPanel',
onlineHelp: 'chapter-qm.html#_network_device', onlineHelp: 'qm_network_device',
insideWizard: false, insideWizard: false,

View File

@ -1,7 +1,7 @@
Ext.define('PVE.qemu.OSTypeInputPanel', { Ext.define('PVE.qemu.OSTypeInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
alias: 'widget.pveQemuOSTypePanel', alias: 'widget.pveQemuOSTypePanel',
onlineHelp: 'chapter-qm.html#_os_settings', onlineHelp: 'qm_os_settings',
insideWizard: false, insideWizard: false,
controller: { controller: {

View File

@ -1,7 +1,7 @@
Ext.define('PVE.qemu.ProcessorInputPanel', { Ext.define('PVE.qemu.ProcessorInputPanel', {
extend: 'PVE.panel.InputPanel', extend: 'PVE.panel.InputPanel',
alias: 'widget.pveQemuProcessorPanel', alias: 'widget.pveQemuProcessorPanel',
onlineHelp: 'chapter-qm.html#_cpu', onlineHelp: 'qm_cpu',
onGetValues: function(values) { onGetValues: function(values) {
var me = this; var me = this;

View File

@ -17,7 +17,7 @@ Ext.define('PVE.qemu.BiosEdit', {
subject: 'BIOS', subject: 'BIOS',
items: [ { items: [ {
xtype: 'pveQemuBiosSelector', xtype: 'pveQemuBiosSelector',
onlineHelp: 'chapter-qm.html#_bios_and_uefi', onlineHelp: 'qm_bios_and_uefi',
name: 'bios', name: 'bios',
value: '__default__', value: '__default__',
fieldLabel: 'BIOS', fieldLabel: 'BIOS',

View File

@ -2,7 +2,7 @@ Ext.define('PVE.storage.Browser', {
extend: 'PVE.panel.Config', extend: 'PVE.panel.Config',
alias: 'widget.PVE.storage.Browser', alias: 'widget.PVE.storage.Browser',
onlineHelp: 'chapter-pvesm.html', onlineHelp: 'chapter_storage',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
@ -49,7 +49,7 @@ Ext.define('PVE.storage.Browser', {
xtype: 'pveACLView', xtype: 'pveACLView',
title: gettext('Permissions'), title: gettext('Permissions'),
iconCls: 'fa fa-unlock', iconCls: 'fa fa-unlock',
onlineHelp: 'chapter-pveum.html', onlineHelp: 'chapter_user_management',
itemId: 'permissions', itemId: 'permissions',
path: '/storage/' + storeid path: '/storage/' + storeid
}); });