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',
name: 'repositoryDirectory',
fieldLabel: 'Repository directory',
helpText: 'The location of the Git repositories.',
allowBlank : false
}]
});

View File

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

View File

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

View File

@@ -114,6 +114,19 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
errorTitleText: 'Error',
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(){
var config = {
@@ -124,12 +137,14 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
xtype: 'textfield',
fieldLabel: this.servnameText,
name: 'servername',
helpText: this.servernameHelpText,
allowBlank: false
},{
xtype: 'checkbox',
fieldLabel: this.enableForwardingText,
name: 'enablePortForward',
inputValue: 'true',
helpText: this.enableForwardingHelpText,
listeners: {
check: function(){
Ext.getCmp('serverport').setDisabled( ! this.checked );
@@ -141,23 +156,27 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
fieldLabel: this.forwardPortText,
name: 'forwardPort',
disabled: true,
allowBlank: false
allowBlank: false,
helpText: this.forwardPortHelpText
},{
xtype: 'textfield',
fieldLabel: this.pluginRepositoryText,
name: 'plugin-url',
vtype: 'pluginurl',
allowBlank: false
allowBlank: false,
helpText: this.pluginRepositoryHelpText
},{
xtype: 'checkbox',
fieldLabel: this.allowAnonymousAccessText,
name: 'anonymousAccessEnabled',
inputValue: 'true'
inputValue: 'true',
helpText: this.allowAnonymousAccessHelpText
},{
xtype: 'checkbox',
fieldLabel: this.enableSSLText,
name: 'enableSSL',
inputValue: 'true',
helpText: this.enableSSLHelpText,
listeners: {
check: function(){
Ext.getCmp('sslPort').setDisabled( ! this.checked );
@@ -169,17 +188,20 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
fieldLabel: this.sslPortText,
name: 'sslPort',
disabled: true,
allowBlank: false
allowBlank: false,
helpText: this.sslPortHelpText
},{
xtype : 'textfield',
fieldLabel : this.adminGroupsText,
name : 'admin-groups',
allowBlank : true
allowBlank : true,
helpText: this.adminGroupsHelpText
},{
xtype : 'textfield',
fieldLabel : this.adminUsersText,
name : 'admin-users',
allowBlank : true
allowBlank : true,
helpText: this.adminUsersHelpText
}],
onSubmit: function(values){

View File

@@ -151,7 +151,7 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
createErrorMsgText: 'Group creation failed',
// help
nameHelpText: 'The unique name for this group.',
nameHelpText: 'The unique name of the group.',
descriptionHelpText: 'A short description of the group.',
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',
// help
nameHelpText: 'The name of the repository. This name would be part of the reository url.',
typeHelpText: 'The type of the repository.',
contactHelpText: 'An e-mailaddress of the person who is in charge for this repository.',
nameHelpText: 'The name of the repository. This name would be part of the repository url.',
typeHelpText: 'The type of the repository (e.g. Mercurial, Git or Subversion).',
contactHelpText: 'An email address of the person who is in charge for this repository.',
descriptionHelpText: 'A short description of the repository.',
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,