76 lines
4.3 KiB
XML
Executable File
76 lines
4.3 KiB
XML
Executable File
<?xml version='1.0' encoding='UTF-8' ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:f="http://java.sun.com/jsf/core"
|
|
xmlns:p="http://primefaces.org/ui"
|
|
xmlns:pe="http://primefaces.org/ui/extensions">
|
|
<f:view locale="es">
|
|
<h:head>
|
|
<title>Control de Armas</title>
|
|
<link rel="stylesheet" type="text/css" href="#{request.contextPath}/javax.faces.resource/css/maia.css.xhtml?v=2" />
|
|
<h:outputScript name="js/maia.js?v=1"/>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#formLogin\\:server").val(Maia.IPservidor);
|
|
if (typeof parent.logoutHelper == 'function'){parent.logoutHelper();}
|
|
});
|
|
</script>
|
|
<style>
|
|
body.ui-layout-container{background: none !important;}
|
|
</style>
|
|
</h:head>
|
|
<h:body>
|
|
|
|
<p:layout fullPage="true">
|
|
<p:layoutUnit position="center">
|
|
<h:form id="formLogin" styleClass="m-form-login">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid columns="1" styleClass="m-panel-login">
|
|
<h:panelGrid columns="3" styleClass="m-panel-login-content">
|
|
<!--
|
|
<p:outputLabel for="company" value="#{msg_security.company}"/>
|
|
<pe:keyFilter for="company" />
|
|
<p:selectOneMenu id="company" value="#{loginController.request.company}" required="true">
|
|
<f:selectItems value="#{loginController.lcompany}" var="cia" itemLabel="#{cia['name']}" itemValue="#{cia['company']}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="company" />
|
|
-->
|
|
<p:outputLabel value=""/>
|
|
<p:outputLabel value=""/>
|
|
<p:outputLabel value=""/>
|
|
|
|
<p:outputLabel for="a" value="#{msg_security.user}"/>
|
|
<p:inputText id="a" value="#{loginController.mdata['a']}" required="true" autocomplete="off" onkeyup="Maia.forceupper(event, this);" onkeydown="Maia.keyDownUpperLogin(event, this);">
|
|
<pe:keyFilter for="a" />
|
|
<p:focus />
|
|
</p:inputText>
|
|
<p:message for="a" />
|
|
|
|
<p:outputLabel for="b" value="#{msg_security.password}" />
|
|
<p:password id="b" value="#{loginController.mdata['b']}" required="true" autocomplete="off">
|
|
<pe:keyFilter for="b" />
|
|
</p:password>
|
|
<p:message for="b" />
|
|
|
|
<p:commandButton id="loginButton" value="Login"
|
|
actionListener="#{loginController.authenticate()}"
|
|
oncomplete="if(args.validationFailed){}"
|
|
process="@this, formLogin"
|
|
update="formLogin"/>
|
|
<h:inputHidden id="server" value="#{loginController.request.terminalCode}"></h:inputHidden>
|
|
<br/> <br/>
|
|
<p:commandLink id="resetLogin" value="¿Olvidó su clave?" style="font-weight:bold;"
|
|
actionListener="#{loginController.reiniciaClave()}"
|
|
process="@this, formLogin"
|
|
update="formLogin"/>
|
|
</h:panelGrid>
|
|
</h:panelGrid>
|
|
|
|
</h:form>
|
|
</p:layoutUnit>
|
|
</p:layout>
|
|
|
|
</h:body>
|
|
</f:view>
|
|
</html> |