2009-10-01 18:46:46 +02:00
|
|
|
<!--
|
2011-10-28 08:17:54 +02:00
|
|
|
This file is part of LibrePlan
|
2009-10-01 18:46:46 +02:00
|
|
|
|
2010-07-19 09:36:44 +02:00
|
|
|
Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
2010-07-19 09:47:20 +02:00
|
|
|
Desenvolvemento Tecnolóxico de Galicia
|
2011-01-19 18:00:09 +01:00
|
|
|
Copyright (C) 2010-2011 Igalia, S.L.
|
2009-10-01 18:46:46 +02: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/>.
|
|
|
|
|
-->
|
2011-10-28 08:17:54 +02:00
|
|
|
<?page title="${i18n:_('LibrePlan: User access')}" ?>
|
2009-09-25 17:34:06 +02:00
|
|
|
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n"?>
|
2012-05-08 12:30:18 +02:00
|
|
|
<?link rel="shortcut icon" href="/common/img/favicon.ico" type="image/x-icon"?>
|
2009-12-03 14:30:48 +01:00
|
|
|
<?link rel="stylesheet" type="text/css" href="/common/css/login.css"?>
|
2009-07-10 13:42:29 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
<?xel-method prefix="project" name="version" class="org.libreplan.business.common.VersionInformation"
|
2010-12-15 12:04:40 +01:00
|
|
|
signature="java.lang.String getVersion()"?>
|
|
|
|
|
|
2011-05-30 10:39:53 +02:00
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
|
|
2009-07-10 13:42:29 +02:00
|
|
|
<div xmlns:n="http://www.zkoss.org/2005/zk/native">
|
2009-12-03 14:30:48 +01:00
|
|
|
|
2010-02-05 12:03:33 +01:00
|
|
|
<zscript>
|
|
|
|
|
<![CDATA[
|
2011-05-30 10:39:53 +02:00
|
|
|
controller = loginController;
|
2010-02-05 12:03:33 +01:00
|
|
|
contextPath = Executions.getCurrent().getContextPath();
|
2011-07-07 15:07:30 +02:00
|
|
|
loginError = Executions.getCurrent().getParameter("login_error");
|
2016-05-12 17:41:35 +03:00
|
|
|
logoLoginLink = contextPath + "/common/img/" + org.libreplan.web.I18nHelper._("en") + "/logo_login.png";
|
2010-02-05 12:03:33 +01:00
|
|
|
]]>
|
|
|
|
|
</zscript>
|
|
|
|
|
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td background="${contextPath}/common/img/flechitas.gif"/>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2011-10-28 08:17:54 +02:00
|
|
|
<n:td height="100" align="left" valign="middle"><n:img src="${contextPath}/common/img/logo_login.png" alt="LibrePlan" /></n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td width="20" class="identificacion"> </n:td>
|
|
|
|
|
<n:td class="identificacion">${i18n:_('Access to the system')}</n:td>
|
|
|
|
|
<n:td align="right" valign="bottom">
|
2009-12-09 18:44:08 +01:00
|
|
|
<div tooltiptext="${i18n:_('Help on authentication (opens a new window)')}">
|
2010-12-22 23:34:26 +01:00
|
|
|
<n:a href="${contextPath}/help/${i18n:_('en')}/index.html" target="_blank" class="ayuda">${i18n:_('Help')}</n:a>
|
2009-12-03 14:30:48 +01:00
|
|
|
</div>
|
|
|
|
|
</n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
2009-11-19 14:53:59 +01:00
|
|
|
|
2010-02-05 12:03:33 +01:00
|
|
|
<n:form action="${contextPath}/j_spring_security_check" method="POST">
|
2009-11-19 14:53:59 +01:00
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
|
|
|
|
|
class="fondo_identificacion">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td width="20" height="165" valign="top"/>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td valign="top" class="authentication"><n:table border="0" cellpadding="0" cellspacing="0">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td/>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2009-08-19 10:35:30 +02:00
|
|
|
<n:td class="usuario_clave">${i18n:_('User')}</n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td><label> </label>
|
|
|
|
|
<div align="center">
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:input name="j_username" type="text" class="campotexto" id="textfield" size="30"
|
|
|
|
|
value="${controller.loginValue}" autofocus="autofocus"/>
|
2009-12-03 14:30:48 +01:00
|
|
|
</div></n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2009-08-19 10:35:30 +02:00
|
|
|
<n:td class="usuario_clave">${i18n:_('Password')}</n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td><div align="center">
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:input name="j_password" type="password" class="campotexto" id="textfield2" size="30"
|
|
|
|
|
value="${controller.loginValue}"/>
|
2009-12-03 14:30:48 +01:00
|
|
|
</div></n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td/>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td>
|
|
|
|
|
<n:div align="left">
|
2009-12-09 18:44:08 +01:00
|
|
|
<n:input name="button" type="submit" class="entrar" id="button" value="${i18n:_('Log in')}" />
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:div></n:td>
|
|
|
|
|
</n:tr>
|
|
|
|
|
</n:table></n:td>
|
2009-12-03 14:30:48 +01:00
|
|
|
<n:td width="450" height="165" valign="top">
|
2011-07-07 15:07:30 +02:00
|
|
|
<html if="${loginError == 'true' and SPRING_SECURITY_LAST_EXCEPTION.class.name == 'org.springframework.security.DisabledException'}">
|
2010-01-13 14:06:42 +01:00
|
|
|
<![CDATA[
|
|
|
|
|
<div class="login_ERROR">${i18n:_('User disabled')}</div>
|
|
|
|
|
]]>
|
|
|
|
|
</html>
|
2011-07-07 15:07:30 +02:00
|
|
|
<html if="${loginError == 'true' and SPRING_SECURITY_LAST_EXCEPTION.class.name == 'org.springframework.security.BadCredentialsException'}">
|
2010-01-13 14:06:42 +01:00
|
|
|
<![CDATA[
|
|
|
|
|
<div class="login_ERROR">${i18n:_('Incorrect authentication')}</div>
|
2009-12-03 14:30:48 +01:00
|
|
|
]]>
|
|
|
|
|
</html>
|
|
|
|
|
</n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
|
2009-11-19 14:53:59 +01:00
|
|
|
</n:form>
|
|
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
|
|
|
|
|
class="tabla_inferior">
|
2009-07-10 13:42:29 +02:00
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td height="10" background="${contextPath}/common/img/linea_pie_login.gif"/>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2011-01-12 19:11:58 +01:00
|
|
|
<n:td><n:span class="supported-browsers" id="supported-browsers-box">${i18n:_('Supported Chrome, Firefox, Safari and Epiphany browsers')}</n:span>
|
2010-12-15 12:04:40 +01:00
|
|
|
<n:div style="float:right;color:green;font-size:10px;">v${project:version()}</n:div></n:td>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
<n:tr>
|
2016-09-12 21:14:57 +02:00
|
|
|
<n:td height="100"><div align="right"><n:a href="http://www.libreplan-enterprise.com"><n:img src="${contextPath}/common/img/login-banner.png" width="750" height="40" /></n:a></div></n:td>
|
2009-12-03 14:30:48 +01:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
|
|
|
|
<n:table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
|
|
|
<n:tr>
|
2016-05-12 17:41:35 +03:00
|
|
|
<n:td background="${contextPath}/common/img/flechitas.gif"/>
|
2009-07-10 13:42:29 +02:00
|
|
|
</n:tr>
|
|
|
|
|
</n:table>
|
2011-01-12 19:11:58 +01:00
|
|
|
|
|
|
|
|
<n:script language="javascript">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
function checkbrowser() {
|
|
|
|
|
|
|
|
|
|
if ( (navigator.appName =="Microsoft Internet Explorer") || (navigator.appName =="Opera") ) {
|
|
|
|
|
document.getElementById("supported-browsers-box").setAttribute("class", "supported-browsers not-supported");
|
|
|
|
|
alertString = "${i18n:_('The browser you are using')}";
|
|
|
|
|
alertString += " ("+navigator.appName+") ";
|
2011-10-28 08:17:54 +02:00
|
|
|
alertString += "${i18n:_('is not supported for its use with LibrePlan.')}";
|
2011-01-12 19:11:58 +01:00
|
|
|
alertString += "${i18n:_('Please use some of the compatible browsers: Chrome, Firefox, Safari or Epiphany.')}";
|
|
|
|
|
window.alert(alertString);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.onload = checkbrowser();
|
|
|
|
|
]]>
|
|
|
|
|
</n:script>
|
2011-05-11 18:25:01 +02:00
|
|
|
</div>
|