[MRM-1714] using LDAP can be configurable with the ui

add i18n and cleanup

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1413072 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-23 21:33:58 +00:00
parent b3fec01ba6
commit 377cc8e725
3 changed files with 4 additions and 4 deletions

View File

@ -548,5 +548,7 @@ menu.docs=Documentation
#runtime configuration
runtime-configuration.title=Archiva Runtime Configuration
runtime-configuration.usermanager.label=User Manager Implementation
archiva-runtime-configuration.updated=Archiva Runtime Configuration updated.
archiva-runtime-configuration.updated=Archiva Runtime Configuration updated to '{0}'
archiva.redback.usermanager.ldap=LDAP User Manager.
archiva.redback.usermanager.jdo=Database User Manager.

View File

@ -1174,7 +1174,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
data:ko.toJSON(self.archivaRuntimeConfiguration),
dataType: 'json',
success: function(data) {
var message=$.i18n.prop('archiva-runtime-configuration.updated');
var message=$.i18n.prop('archiva-runtime-configuration.updated',self.archivaRuntimeConfiguration().userManagerImpl());
displaySuccessMessage(message);
},
error: function(data) {

View File

@ -905,8 +905,6 @@
</label>
<div class="controls">
<select data-bind="options: userManagerImplementationInformations,optionsValue: 'beanId', optionsText: 'description', value: archivaRuntimeConfiguration().userManagerImpl, optionsCaption: 'Choose...'"></select>
<input type="text" id="userManagerImpl" name="userManagerImpl" class="input-small required"
data-bind="value: archivaRuntimeConfiguration().userManagerImpl"/>
</div>
</div>
<button data-bind="click: saveArchivaRuntimeConfiguration" id="archiva-runtime-configuration-save" class="btn">${$.i18n.prop('save')}</button>