2009-12-18 10:50:39 +01:00
<!--
2011-10-28 08:17:54 +02:00
This file is part of LibrePlan
2009-12-18 10:50:39 +01:00
2010-07-19 09:36:44 +02:00
Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
2012-05-09 09:03:57 +02:00
Desenvolvemento Tecnolóxico de Galicia
Copyright (C) 2010-2012 Igalia, S.L.
2009-12-18 10:50:39 +01:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n" ?>
2010-08-13 10:16:17 +02:00
<window id="${arg.top_id}">
2011-08-10 18:13:45 +02:00
<caption id="caption" sclass="caption-title" />
2009-12-18 10:50:39 +01:00
<tabbox>
<tabs>
<tab label="${i18n:_('User data')}"></tab>
</tabs>
<tabpanels>
<tabpanel>
<vbox>
2011-10-10 18:12:31 +02:00
2009-12-18 10:50:39 +01:00
<!-- User details -->
2012-02-17 16:03:35 +01:00
<vbox>
<label value="${i18n:_('Password cannot be managed for LDAP users because LDAP authentication is being used')}" visible="@{controller.ldapUserLdapConfiguration}" />
</vbox>
2011-10-10 18:12:31 +02:00
<groupbox closable="false">
<caption label="${i18n:_('General user data')}" />
<grid fixedLayout="false" span="true">
2009-12-18 10:50:39 +01:00
<columns>
<column width="200px" />
<column />
</columns>
<rows>
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('Login name')}" />
2009-12-18 10:50:39 +01:00
<textbox id="loginName"
value="@{controller.user.loginName}" width="300px"
2011-07-19 08:19:03 +02:00
constraint="no empty:${i18n:_('cannot be null or empty')}"
2011-11-16 10:18:25 +01:00
onBlur="controller.updateWindowTitle()"
disabled="@{controller.ldapUser}" />
2009-12-18 10:50:39 +01:00
</row>
2011-06-30 13:12:08 +02:00
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('First name')}" />
2011-06-30 13:12:08 +02:00
<textbox id="firstName"
2012-05-09 09:03:57 +02:00
value="@{controller.user.firstName}" width="300px"
disabled="@{controller.user.bound}" />
2011-06-30 13:12:08 +02:00
</row>
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('Last name')}" />
2011-06-30 13:12:08 +02:00
<textbox id="lastName"
2012-05-09 09:03:57 +02:00
value="@{controller.user.lastName}" width="300px"
disabled="@{controller.user.bound}" />
2011-06-30 13:12:08 +02:00
</row>
2009-12-18 10:50:49 +01:00
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('Password')}" />
2009-12-18 10:50:49 +01:00
<textbox id="password" type="password"
2012-02-17 16:03:35 +01:00
onChange="controller.setPassword(self.value);" width="300px" disabled="@{controller.ldapUserLdapConfiguration}"/>
2009-12-18 10:50:49 +01:00
</row>
2009-12-23 10:54:46 +01:00
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('Password confirmation')}" />
2009-12-23 10:54:46 +01:00
<textbox id="passwordConfirmation" type="password"
constraint="@{controller.validatePasswordConfirmation}"
2012-02-17 16:03:35 +01:00
width="300px" disabled="@{controller.ldapUserLdapConfiguration}"/>
2009-12-23 10:54:46 +01:00
</row>
2009-12-18 10:50:39 +01:00
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('Disabled')}" />
2009-12-18 10:50:39 +01:00
<checkbox id="disabled"
2011-11-16 10:18:25 +01:00
checked="@{controller.user.disabled}" width="300px"
disabled="@{controller.ldapUser}" />
2009-12-18 10:50:39 +01:00
</row>
<row>
2011-10-10 18:12:31 +02:00
<label value="${i18n:_('E-mail')}" />
2009-12-18 10:50:39 +01:00
<textbox id="email"
value="@{controller.user.email}" width="300px"/>
</row>
2011-05-27 14:27:48 +02:00
<row>
2011-11-15 20:26:45 +01:00
<label value="${i18n:_('Authentication type')}" />
2012-05-09 09:52:15 +02:00
<label value="@{controller.authenticationType}" />
2011-05-27 14:27:48 +02:00
</row>
2009-12-18 10:50:39 +01:00
</rows>
</grid>
2011-10-10 18:12:31 +02:00
</groupbox>
2012-05-09 12:41:12 +02:00
<groupbox closable="false" id="boundResourceGroupbox">
2012-05-09 10:41:34 +02:00
<caption label="${i18n:_('Bound resource')}" />
<grid fixedLayout="false" span="true">
<columns>
<column width="200px" />
<column />
</columns>
<rows>
<row>
<label value="${i18n:_('Has bound resource')}" />
<label value="@{controller.hasBoundResource}" />
</row>
<row visible="@{controller.bound}">
<label value="${i18n:_('Bound resource')}" />
<label value="@{controller.boundResource}" />
</row>
</rows>
</grid>
2012-05-09 11:20:00 +02:00
<button label="${i18n:_('Go to worker edition window')}"
onClick="controller.goToWorkerEdition();"
visible="@{controller.bound}" />
2012-05-09 12:41:12 +02:00
<button label="${i18n:_('Unbound resource')}"
onClick="controller.unboundResource();"
visible="@{controller.bound}" />
2012-05-09 10:41:34 +02:00
</groupbox>
2009-12-18 10:50:40 +01:00
<!-- Associated UserRoles -->
2011-10-10 18:12:31 +02:00
<groupbox closable="false">
<caption label="${i18n:_('Association with roles')}" />
2012-02-17 16:03:36 +01:00
<vbox>
<label value="${i18n:_('Roles of LDAP users cannot be managed because LDAP roles are being used.')}" visible="@{controller.ldapUserRolesLdapConfiguration}" />
</vbox>
2009-12-18 10:50:42 +01:00
<hbox align="center">
2009-12-18 10:50:48 +01:00
<combobox id="userRolesCombo" autodrop="true" />
2009-12-18 10:50:42 +01:00
<button label="${i18n:_('Add role')}"
2012-02-17 16:03:36 +01:00
onClick="controller.addSelectedRole()" disabled="@{controller.ldapUserRolesLdapConfiguration}"/>
2009-12-18 10:50:42 +01:00
</hbox>
2012-04-09 11:09:47 +02:00
<grid id="listing" model="@{controller.roles}"
rowRenderer="@{controller.rolesRenderer}">
2009-12-18 10:50:40 +01:00
<columns sizable="true">
<column label="${i18n:_('Role name')}" />
2009-12-18 10:50:41 +01:00
<column label="${i18n:_('Actions')}" />
2009-12-18 10:50:40 +01:00
</columns>
</grid>
2011-10-10 18:12:31 +02:00
</groupbox>
2009-12-18 10:50:45 +01:00
<!-- Associated Profiles -->
2011-10-10 18:12:31 +02:00
<groupbox closable="false">
<caption label="${i18n:_('Association with profiles')}" />
2012-02-17 16:03:36 +01:00
<vbox>
<label value="${i18n:_('Profiles of LDAP users cannot be managed because LDAP roles are being used.')}" visible="@{controller.ldapUserRolesLdapConfiguration}" />
</vbox>
2009-12-18 10:50:47 +01:00
<hbox align="center">
<autocomplete id="profileAutocomplete"
autodrop="true" constraint=""
finder="ProfileFinder" />
<button label="${i18n:_('Add profile')}"
2012-02-17 16:03:36 +01:00
onClick="controller.addSelectedProfile()" disabled="@{controller.ldapUserRolesLdapConfiguration}"/>
2009-12-18 10:50:47 +01:00
</hbox>
2009-12-18 10:50:45 +01:00
<grid id="profilesListing" model="@{controller.profiles}">
<columns sizable="true">
<column label="${i18n:_('Profile name')}" />
2009-12-18 10:50:46 +01:00
<column label="${i18n:_('Actions')}" />
2009-12-18 10:50:45 +01:00
</columns>
<rows>
<row self="@{each='profile'}" value="@{profile}">
<label value="@{profile.profileName}" />
2009-12-18 10:50:46 +01:00
<hbox>
<button sclass="icono" image="/common/img/ico_borrar1.png"
hoverImage="/common/img/ico_borrar.png"
tooltiptext="${i18n:_('Delete')}"
2012-02-17 16:03:38 +01:00
onClick="controller.removeProfile(self.parent.parent.value);" disabled="@{controller.ldapUserRolesLdapConfiguration}">
2009-12-18 10:50:46 +01:00
</button>
</hbox>
2009-12-18 10:50:45 +01:00
</row>
</rows>
</grid>
2011-10-10 18:12:31 +02:00
</groupbox>
2009-12-18 10:50:39 +01:00
</vbox>
</tabpanel>
</tabpanels>
</tabbox>
<button onClick="controller.saveAndExit();"
label="${i18n:_('Save')}" sclass="save-button global-action" />
<button onClick="controller.saveAndContinue();"
label="${i18n:_('Save & Continue')}" sclass="saveandcontinue-button global-action" />
2011-07-19 08:19:03 +02:00
<button onClick="controller.cancelForm();"
2009-12-18 10:50:39 +01:00
label="${i18n:_('Cancel')}" sclass="cancel-button global-action" />
</window>