TASKPM/navalplanner-webapp/src/main/webapp/common/layout/template.zul
Manuel Rego Casasnovas 973f631619 [i18n] Updating keys.pot files.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-11 20:13:33 +02:00

170 lines
6.7 KiB
Text

<!--
This file is part of NavalPlan
Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
Desenvolvemento Tecnolóxico de Galicia
Copyright (C) 2010-2011 Igalia, S.L.
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"?>
<?link rel="stylesheet" type="text/css" href="/common/css/navalplan.css"?>
<?link rel="stylesheet" type="text/css" href="/common/css/navalplan_zk.css"?>
<?link rel="stylesheet" type="text/css" href="/common/css/perspectives.css"?>
<?component name="customMenu" inline="true" macroURI="_customMenu.zul"?>
<?xel-method prefix="project" name="passwd_control" class="org.navalplanner.business.common.Configuration"
signature="java.lang.Boolean isDefaultPasswordsControl()"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<zk>
<zscript>
<![CDATA[
contextPath = Executions.getCurrent().getContextPath();
templateCtrl = templateController;
idAdminUser = templateController.getIdAdminUser();
idUser = templateController.getIdUser();
idWsreader = templateController.getIdWsreaderUser();
idWswriter = templateController.getIdWswriterUser();
]]>
</zscript>
<div xmlns:n="http://www.zkoss.org/2005/zk/native" apply="${templateCtrl}" height="100%">
<borderlayout height="100%" width="100%" >
<north border="none">
<n:div>
<scripts />
<n:table width="100%" border="0" cellpadding="0" cellspacing="0">
<n:tr>
<n:td width="180" valign="center">
<n:a href="${contextPath}/">
<n:img src="${contextPath}/common/img/${i18n:_('en')}/logo.png" /></n:a></n:td>
<n:td valign="top">
<n:table width="100%" border="0" cellspacing="0" cellpadding="0">
<n:tr>
<n:td>
<customMenu top_id="customMenu" title="${i18n:_('Main menu')}"/>
</n:td>
</n:tr>
</n:table></n:td>
</n:tr>
</n:table>
<n:div class="user-area">
<n:table width="100%" border="0" cellspacing="0" cellpadding="0">
<n:tr>
<n:td class="usuario">
<div if="${templateCtrl.scenariosVisible}">
${i18n:_('scenario')}:
<button onClick="templateCtrl.changeScenario();"
label="${templateCtrl.scenario.name}" />
<window id="changeScenarioWindow" visible="false"
title="${i18n:_('Change scenario')}">
<div id="messagesContainer" />
<grid>
<rows>
<row>
<label value="${i18n:_('Select scenario')}" />
<bandboxSearch
id="scenarioBandboxSearch"
finder="ScenarioBandboxFinder"
model="@{templateCtrl.scenarios}"
selectedElement="@{templateCtrl.scenario}" />
</row>
</rows>
</grid>
<button onClick="templateCtrl.accept();"
label="${i18n:_('Accept')}" />
<button onClick="templateCtrl.cancel();"
label="${i18n:_('Cancel')}" />
</window>
</div>
</n:td>
<n:td class="usuario">${i18n:_('user')}: ${desktop.execution.userPrincipal.name}</n:td>
<n:td><n:a href="${contextPath}/j_spring_security_logout" class="cerrar_sesion">[${i18n:_('Log out')}]</n:a></n:td>
</n:tr>
</n:table>
</n:div>
</n:div>
</north>
<center border="none">
<borderlayout width="auto" height="100%">
<!-- borderlayout class="main-layout" height="2000px" width="2000px"-->
<west class="perspectives-column" width="90px">
<vbox id="registeredItemsInsertionPoint" width="90px"/>
</west>
<center self="@{insert(content)}" class="main-area"/>
</borderlayout>
</center>
<south border="none">
<n:table width="100%">
<n:tr class="footer">
<n:td height="40" align="left" valign="bottom">
<n:img height="40" src="${templateCtrl.companyLogoURL}" if="${templateCtrl.companyLogoURL!=''}" />
</n:td>
<n:td valign="center">
<n:div if="${project:passwd_control()}" id="warningDefaultPasswdadmin"
class="footer-messages-area"
style="display:${templateCtrl.defaultPasswdAdminVisible}">
<div>
<n:span>${i18n:_("The admin's account password remains the default one. This is unsecure")}.</n:span>
<n:a class="command" href="${contextPath}/users/users.zul#edit%3D${idAdminUser}">[${i18n:_('Change the password')}]</n:a>
</div>
</n:div>
<n:div if="${project:passwd_control()}" id="warningDefaultPasswdOthers"
class="footer-messages-area"
style="display:${templateCtrl.defaultPasswdVisible}">
<div>
<n:a href="${contextPath}/users/users.zul#edit%3D${idUser}"
id="warningDefaultPasswduser"
style="display:${templateCtrl.defaultPasswdUserVisible}">[user]</n:a>
<n:a href="${contextPath}/users/users.zul#edit%3D${idWsreader}"
id="warningDefaultPasswdwsreader"
style="display:${templateCtrl.defaultPasswdWsreaderVisible}">[wsreader]</n:a>
<n:a href="${contextPath}/users/users.zul#edit%3D${idWswriter}"
id="warningDefaultPasswdwswriter"
style="display:${templateCtrl.defaultPasswdWswriterVisible}">[wswriter]</n:a>
<n:span class="footer-messages-area">
${i18n:_('default password were not changed')}.
</n:span>
</div>
</n:div>
</n:td>
<n:td height="40" align="right" valign="bottom">
<n:img width="110" height="40" src="${contextPath}/common/img/logos_footer_fundacion.png"/>
<n:img width="253" height="40" src="${contextPath}/common/img/logos_footer_administracion.png"/>
</n:td>
</n:tr>
</n:table>
</south>
</borderlayout>
</div>
</zk>