summaryrefslogtreecommitdiffstats
path: root/WebContent/pages/login.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/pages/login.xhtml')
-rw-r--r--WebContent/pages/login.xhtml41
1 files changed, 41 insertions, 0 deletions
diff --git a/WebContent/pages/login.xhtml b/WebContent/pages/login.xhtml
new file mode 100644
index 0000000..2e94421
--- /dev/null
+++ b/WebContent/pages/login.xhtml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+<ui:composition template="/templates/common.xhtml">
+
+ <ui:define name="pageTitle">JCatalog Login</ui:define>
+
+ <ui:define name="pageHeader">Login</ui:define>
+
+ <ui:define name="body">
+ <div style="width: 500px; padding: 5px; margin: 0px auto; float: left;">
+ <h:form id="loginForm">
+ <h:inputHidden id="action" value="login" />
+ <div class="row">
+ <label for="username"><u>U</u>sername:</label>
+ <span class="formw"><h:inputText id="username" value="#{UserManager.username}" accesskey="u" size="40" /></span>
+ </div>
+ <div class="row">
+ <label for="password"><u>P</u>assword:</label>
+ <span class="formw"><h:inputSecret id="password" value="#{UserManager.password}" accesskey="p" size="32" /></span>
+ </div>
+ <div class="row">
+ <span class="formw">
+ <h:commandButton action="#{UserManager.login}" id="submit" value="Submit" type="submit" accesskey="s" />
+ </span>
+ </div>
+ <div class="spacer" />
+ </h:form>
+ </div>
+ </ui:define>
+
+ <ui:define name="pageFooter">JCatalog Footer</ui:define>
+
+</ui:composition>
+
+</html>