diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-13 22:07:46 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-13 23:35:23 +0100 |
| commit | 5f30a827fc84af1e54f0716a49995e98a044ebd6 (patch) | |
| tree | 27a68fbd5640c445f549e696af8141aeba6e9769 /WebContent/pages/category.xhtml | |
| parent | a14734c965fd7aaf6485bb2bb2a72a68bdb5d14d (diff) | |
| download | JCatalog-5f30a827fc84af1e54f0716a49995e98a044ebd6.tar.gz JCatalog-5f30a827fc84af1e54f0716a49995e98a044ebd6.zip | |
Add editing capabilities
Diffstat (limited to 'WebContent/pages/category.xhtml')
| -rw-r--r-- | WebContent/pages/category.xhtml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/WebContent/pages/category.xhtml b/WebContent/pages/category.xhtml index 4a5ea10..7d6f43a 100644 --- a/WebContent/pages/category.xhtml +++ b/WebContent/pages/category.xhtml @@ -13,7 +13,25 @@ <ui:define name="pageHeader">JCatalog Application</ui:define> <ui:define name="body"> - <h2>Welcome to the JCatalog Demo Application <h:outputText id="category" value="#{CategoryManager.current.name}" /></h2> + <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> |
