Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding admin pages.

  • Loading branch information...
commit 0cf339e69d2c98ff311265799119571c7a9a2c1e 1 parent e17fba5
@rishabhsrao rishabhsrao authored
View
12 src/main/webapp/app/administrator/index.xhtml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE composition>
+<ui:composition template="./WEB-INF/ui/layouts/layout-application.xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:p="http://primefaces.org/ui">
+
+ <ui:include src="module/manage-organizations.xhtml"></ui:include>
+
+</ui:composition>
View
42 src/main/webapp/app/administrator/module/manage-organizations.xhtml
@@ -0,0 +1,42 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE composition>
+<ui:composition template="./WEB-INF/ui/layouts/layout-application.xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:p="http://primefaces.org/ui">
+
+ <ui:define name="layout-application-sidebar">
+
+ </ui:define>
+
+ <ui:define name="layout-application-main">
+ <p:dataTable id="list" value="#{organizationManagedBean.organizations}" var="organization">
+ <p:column headerText="id">
+ <h:outputText value="#{organization.id}" />
+ </p:column>
+
+ <p:column headerText="name">
+ <h:outputText value="#{organization.name}" />
+ </p:column>
+
+ <p:column headerText="code">
+ <h:outputText value="#{organization.code}" />
+ </p:column>
+
+ <p:column headerText="description">
+ <h:outputText value="#{organization.description}" />
+ </p:column>
+
+ <p:column headerText="action">
+ <h:outputText value="#{organization.action}" />
+ </p:column>
+
+ <p:column headerText="status">
+ <h:outputText value="#{organization.status}" />
+ </p:column>
+ </p:dataTable>
+ </ui:define>
+
+</ui:composition>
Please sign in to comment.
Something went wrong with that request. Please try again.