improve helpText attributes

This commit is contained in:
Sebastian Sdorra
2011-03-18 18:28:43 +01:00
parent f6f3ff2f72
commit 8b4d47fb31
6 changed files with 46 additions and 15 deletions

View File

@@ -37,6 +37,7 @@ registerConfigPanel({
xtype: 'textfield', xtype: 'textfield',
name: 'repositoryDirectory', name: 'repositoryDirectory',
fieldLabel: 'Repository directory', fieldLabel: 'Repository directory',
helpText: 'The location of the Git repositories.',
allowBlank : false allowBlank : false
}] }]
}); });

View File

@@ -37,26 +37,31 @@ registerConfigPanel({
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'HG Binary', fieldLabel : 'HG Binary',
name : 'hgBinary', name : 'hgBinary',
allowBlank : false allowBlank : false,
helpText: 'The location of the Mercurial binary.'
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Python Binary', fieldLabel : 'Python Binary',
name : 'pythonBinary', name : 'pythonBinary',
allowBlank : false allowBlank : false,
helpText: 'The location of the Python binary.'
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Python Path', fieldLabel : 'Python Path',
name : 'pythonPath' name : 'pythonPath',
helpText: 'The Python path.'
},{ },{
xtype: 'textfield', xtype: 'textfield',
name: 'repositoryDirectory', name: 'repositoryDirectory',
fieldLabel: 'Repository directory', fieldLabel: 'Repository directory',
helpText: 'The location of the Mercurial repositories.',
allowBlank : false allowBlank : false
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
name: 'useOptimizedBytecode', name: 'useOptimizedBytecode',
fieldLabel: 'Optimized Bytecode (.pyo)', fieldLabel: 'Optimized Bytecode (.pyo)',
inputValue: 'true' inputValue: 'true',
helpText: 'Use the Python "-O" switch.'
},{ },{
xtype: 'button', xtype: 'button',
text: 'Load Auto-Configuration', text: 'Load Auto-Configuration',

View File

@@ -37,6 +37,7 @@ registerConfigPanel({
xtype: 'textfield', xtype: 'textfield',
name: 'repositoryDirectory', name: 'repositoryDirectory',
fieldLabel: 'Repository directory', fieldLabel: 'Repository directory',
helpText: 'The location of the Suberversion repositories.',
allowBlank : false allowBlank : false
}] }]
}); });

View File

@@ -114,6 +114,19 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
errorTitleText: 'Error', errorTitleText: 'Error',
errorMsgText: 'Could not load config.', errorMsgText: 'Could not load config.',
// help
servernameHelpText: 'The name of this server. This name would be part of the repository url.',
pluginRepositoryHelpText: 'The url of the plugin repository. Explanation of the {placeholders}:\n\
<br />version = SCM-Manager Version<br />os = Operation System<br />arch = Architecture',
enableForwardingHelpText: 'Enbale mod_proxy port forwarding.',
forwardPortHelpText: 'The forwarding port.',
allowAnonymousAccessHelpText: 'Anonymous users can see public repositories.',
enableSSLHelpText: 'Enable SSL.',
sslPortHelpText: 'The ssl port.',
adminGroupsHelpText: 'Comma seperated list of groups with admin rights.',
adminUsersHelpText: 'Comma seperated list of users with admin rights.',
initComponent: function(){ initComponent: function(){
var config = { var config = {
@@ -124,12 +137,14 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: this.servnameText, fieldLabel: this.servnameText,
name: 'servername', name: 'servername',
helpText: this.servernameHelpText,
allowBlank: false allowBlank: false
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: this.enableForwardingText, fieldLabel: this.enableForwardingText,
name: 'enablePortForward', name: 'enablePortForward',
inputValue: 'true', inputValue: 'true',
helpText: this.enableForwardingHelpText,
listeners: { listeners: {
check: function(){ check: function(){
Ext.getCmp('serverport').setDisabled( ! this.checked ); Ext.getCmp('serverport').setDisabled( ! this.checked );
@@ -141,23 +156,27 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
fieldLabel: this.forwardPortText, fieldLabel: this.forwardPortText,
name: 'forwardPort', name: 'forwardPort',
disabled: true, disabled: true,
allowBlank: false allowBlank: false,
helpText: this.forwardPortHelpText
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: this.pluginRepositoryText, fieldLabel: this.pluginRepositoryText,
name: 'plugin-url', name: 'plugin-url',
vtype: 'pluginurl', vtype: 'pluginurl',
allowBlank: false allowBlank: false,
helpText: this.pluginRepositoryHelpText
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: this.allowAnonymousAccessText, fieldLabel: this.allowAnonymousAccessText,
name: 'anonymousAccessEnabled', name: 'anonymousAccessEnabled',
inputValue: 'true' inputValue: 'true',
helpText: this.allowAnonymousAccessHelpText
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: this.enableSSLText, fieldLabel: this.enableSSLText,
name: 'enableSSL', name: 'enableSSL',
inputValue: 'true', inputValue: 'true',
helpText: this.enableSSLHelpText,
listeners: { listeners: {
check: function(){ check: function(){
Ext.getCmp('sslPort').setDisabled( ! this.checked ); Ext.getCmp('sslPort').setDisabled( ! this.checked );
@@ -169,17 +188,20 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
fieldLabel: this.sslPortText, fieldLabel: this.sslPortText,
name: 'sslPort', name: 'sslPort',
disabled: true, disabled: true,
allowBlank: false allowBlank: false,
helpText: this.sslPortHelpText
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : this.adminGroupsText, fieldLabel : this.adminGroupsText,
name : 'admin-groups', name : 'admin-groups',
allowBlank : true allowBlank : true,
helpText: this.adminGroupsHelpText
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : this.adminUsersText, fieldLabel : this.adminUsersText,
name : 'admin-users', name : 'admin-users',
allowBlank : true allowBlank : true,
helpText: this.adminUsersHelpText
}], }],
onSubmit: function(values){ onSubmit: function(values){

View File

@@ -151,7 +151,7 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
createErrorMsgText: 'Group creation failed', createErrorMsgText: 'Group creation failed',
// help // help
nameHelpText: 'The unique name for this group.', nameHelpText: 'The unique name of the group.',
descriptionHelpText: 'A short description of the group.', descriptionHelpText: 'A short description of the group.',
membersHelpText: 'The usernames of the group members.', membersHelpText: 'The usernames of the group members.',

View File

@@ -189,12 +189,14 @@ Sonia.repository.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
createErrorMsgText: 'Repository creation failed', createErrorMsgText: 'Repository creation failed',
// help // help
nameHelpText: 'The name of the repository. This name would be part of the reository url.', nameHelpText: 'The name of the repository. This name would be part of the repository url.',
typeHelpText: 'The type of the repository.', typeHelpText: 'The type of the repository (e.g. Mercurial, Git or Subversion).',
contactHelpText: 'An e-mailaddress of the person who is in charge for this repository.', contactHelpText: 'An email address of the person who is in charge for this repository.',
descriptionHelpText: 'A short description of the repository.', descriptionHelpText: 'A short description of the repository.',
publicHelpText: 'A public repository which is readable by every person.', publicHelpText: 'A public repository which is readable by every person.',
permissionHelpText: '... coming soon ...', permissionHelpText: 'If the "Group Permission" box is checked, then the name represents the groupname otherwise the username.<br />\n\
Type explenation:<br />READ = read permission<br />WRITE = read and write permission<br />\n\
OWNER = read, write permissions and also the ability to manage the properties and permissions',
permissionStore: null, permissionStore: null,