view src/main/webapp/entry/components/login.xhtml @ 210:0aa8975784d9

add deprecation notes to interface.
author casties
date Mon, 02 Sep 2019 13:14:08 +0200
parents b943b16d9b33
children
line wrap: on
line source

<!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:ui="http://java.sun.com/jsf/facelets"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich" xmlns:p="http://java.sun.com/jsf/html">
<body>
	<ui:composition>



		<div style="z-index: 100;" class="rf-pp-shade">
			<button class="rf-pp-btn" tabindex="-1" accesskey="" />
		</div>

		<h:panelGrid columns="1" styleClass="ismi-pp-cntr">

			<div class="ismi-pp-hdr">
				<div class="ismi-pp-hdr-cnt">Login</div>
			</div>

			<h:panelGrid columns="1" styleClass="ismi-pp-main-panel">
					<h:panelGrid columns="2" style="text-align:left;">
						<!-- Currently enter procs login but esc does not proc cancel -->
						<script>
							function handlerKeyPress(event) {
								if (event.keyCode == 13) {
									$('.login').click();
									return false;
								} else if (event.keyCode == 27) {
									$('.cancel').click();
									return false;
								} else {
									return true;
								}
							}
						</script>
						<h:outputText value="Email" />
						<h:inputText value="#{Session.username}" size="40" onkeypress="return handlerKeyPress(event);" />
						<h:outputText value="Password" />
						<h:inputSecret value="#{Session.password}" size="40" onkeypress="return handlerKeyPress(event);" />
					</h:panelGrid>

					<h:panelGrid columns="2">
						<h:commandButton value="Cancel" styleClass="cancel btn btn-default"
							action="#{Session.actionLoginCancel}" />
						<h:commandButton value="Login" styleClass="login btn btn-default"
							actionListener="#{Session.listenerLogin}" />
					</h:panelGrid>
			</h:panelGrid>

		</h:panelGrid>


	</ui:composition>
</body>
</html>