blob: 7d6f43a52691f73aad36e4eaa79b4e2e3c1441a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<ui:composition template="#{UserManager.loggedIn ? '/templates/loggedin.xhtml' : '/templates/common.xhtml'}">
<ui:define name="pageTitle">JCatalog Application</ui:define>
<ui:define name="pageHeader">JCatalog Application</ui:define>
<ui:define name="body">
<div style="width: 500px; padding: 5px; margin: 0px auto; float: left;">
<h:form>
<div class="row">
<label for="name">Name:</label>
<span class="formw"><h:inputText id="name" disabled="#{not UserManager.loggedIn}" value="#{CategoryManager.current.name}" accesskey="n" size="40" /></span>
</div>
<div class="row">
<label for="description">Description:</label>
<span class="formw"><h:inputTextarea rows="20" cols="40" id="description" disabled="#{not UserManager.loggedIn}" value="#{CategoryManager.current.description}" accesskey="d" /></span>
</div>
<div class="row">
<span class="formw">
<h:commandButton action="categories" id="back" value="Back" type="submit" accesskey="b" />
<h:commandButton action="#{CategoryManager.saveCategory}" rendered="#{UserManager.loggedIn}" disabled="#{not UserManager.loggedIn}" id="save" value="Save" 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>
|