Skip to content
Snippets Groups Projects
Commit 49af37aa authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

modified database, scripts, and web pages

parent 8045923c
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
<h:form id="viewUserInfoListForm"> <h:form id="viewUserInfoListForm">
<c:set var="entityController" value="#{userInfoController}"/> <ui:param name="entityController" value="#{userInfoController}"/>
<ui:include src="../common/commonListActionButtons.xhtml"/> <ui:include src="../common/commonListActionButtons.xhtml"/>
<h:panelGroup> <h:panelGroup>
......
...@@ -3,15 +3,14 @@ ...@@ -3,15 +3,14 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml" <ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<c:set var="userInfoObject" value="#{userInfoController.selected}"/> <ui:param name="userInfoObject" value="#{userInfoController.selected}"/>
<p:panelGrid columns="2" styleClass="createEntityDetails"> <p:panelGrid columns="2" styleClass="createEntityDetails">
<h:outputLabel for="username" value="Username" styleClass="entityDataEmphasizedLabel"/> <h:outputLabel for="username" value="Username" styleClass="entityDataEmphasizedLabel"/>
<h:inputText id="username" value="#{userInfoObject.username}" title="Username" required="true" styleClass="entityDataEmphasizedText"/> <h:inputText id="username" value="#{userInfoObject.username}" title="Username" styleClass="entityDataEmphasizedText"/>
<h:outputLabel for="lastName" value="Last Name" styleClass="entityDataLabel"/> <h:outputLabel for="lastName" value="Last Name" styleClass="entityDataLabel"/>
<h:inputText id="lastName" value="#{userInfoObject.lastName}" title="Last Name" required="true" styleClass="entityDataText"/> <h:inputText id="lastName" value="#{userInfoObject.lastName}" title="Last Name" required="true" styleClass="entityDataText"/>
......
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml" <ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<c:set var="userInfoObject" value="#{userInfoController.selected}"/> <ui:param name="userInfoObject" value="#{userInfoController.selected}"/>
<c:set var="isFieldWriteable" value="#{loginController.loggedIn}"/> <ui:param name="isFieldWriteable" value="#{loginController.loggedIn}"/>
<p:panelGrid columns="2" styleClass="editEntityDetails"> <p:panelGrid columns="2" styleClass="editEntityDetails">
......
...@@ -52,11 +52,10 @@ ...@@ -52,11 +52,10 @@
<h:outputText value="#{userInfoObject.description}"/> <h:outputText value="#{userInfoObject.description}"/>
</p:column> </p:column>
<c:set var="isEntityWriteable" value="#{loginController.isUserWriteable(userInfoObject)}"/>
<p:column headerText="Actions" width="70"> <p:column headerText="Actions" width="70">
<div class="actionLink"> <div class="actionLink">
<p:commandLink action="#{userInfoController.prepareView(userInfoObject)}" styleClass="ui-icon ui-icon-info" title="View"/> <p:commandLink action="#{userInfoController.prepareView(userInfoObject)}" styleClass="ui-icon ui-icon-info" title="View"/>
<p:commandLink action="#{userInfoController.prepareEdit(userInfoObject)}" rendered="#{isEntityWriteable}" styleClass="ui-icon ui-icon-pencil" title="Edit"/> <p:commandLink action="#{userInfoController.prepareEdit(userInfoObject)}" rendered="#{loginController.isUserWriteable(userInfoObject)}" styleClass="ui-icon ui-icon-pencil" title="Edit"/>
<p:commandLink oncomplete="PF('userInfoDestroyDialogWidget').show()" rendered="#{loginController.loggedIn}" styleClass="ui-icon ui-icon-trash" title="Delete" update="@form"> <p:commandLink oncomplete="PF('userInfoDestroyDialogWidget').show()" rendered="#{loginController.loggedIn}" styleClass="ui-icon ui-icon-trash" title="Delete" update="@form">
<f:setPropertyActionListener value="#{userInfoObject}" target="#{userInfoController.current}"/> <f:setPropertyActionListener value="#{userInfoObject}" target="#{userInfoController.current}"/>
</p:commandLink> </p:commandLink>
......
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml" <ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<c:set var="userInfoObject" value="#{userInfoController.selected}"/> <ui:param name="userInfoObject" value="#{userInfoController.selected}"/>
<p:panelGrid columns="2" styleClass="viewEntityDetails"> <p:panelGrid columns="2" styleClass="viewEntityDetails">
......
...@@ -17,12 +17,11 @@ ...@@ -17,12 +17,11 @@
</div> </div>
<ui:include src="userInfoViewPanelGrid.xhtml"/> <ui:include src="userInfoViewPanelGrid.xhtml"/>
<p/> <p/>
<c:set var="userInfoObject" value="#{userInfoController.selected}"/> <ui:param name="userInfoObject" value="#{userInfoController.selected}"/>
<c:set var="isEntityWriteable" value="#{loginController.isUserWriteable(userInfoObject)}"/>
<div class="actionButton"> <div class="actionButton">
<p:commandButton action="#{userInfoController.prepareEdit(userInfoObject)}" rendered="#{isEntityWriteable}" value="Edit" alt="Edit" icon="ui-icon-pencil"/> <p:commandButton action="#{userInfoController.prepareEdit(userInfoObject)}" rendered="#{loginController.isUserWriteable(userInfoObject)}" value="Edit" alt="Edit" icon="ui-icon-pencil"/>
<p:commandButton onclick="PF('userInfoDestroyDialogWidget').show();" rendered="#{loginController.loggedIn}" value="Delete" alt="Delete" icon="ui-icon-trash"> <p:commandButton onclick="PF('userInfoDestroyDialogWidget').show();" rendered="#{loginController.loggedIn}" value="Delete" alt="Delete" icon="ui-icon-trash">
<f:setPropertyActionListener value="#{userInfoObject}" target="#{userInfoController.current}"/> <f:setPropertyActionListener value="#{userInfoObject}" target="#{userInfoController.current}"/>
</p:commandButton> </p:commandButton>
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
</div> </div>
<ui:include src="userInfoDestroyDialog.xhtml"/> <ui:include src="userInfoDestroyDialog.xhtml"/>
</div> </div>
</h:form> </h:form>
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" <ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.org/ui" xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<p:confirmDialog id="systemRoleRemoveDialog" message="Remove #{userSystemRoleController.getSystemRoleName()} Role for user #{userSystemRoleController.systemRoleTable.current.username}?" <p:confirmDialog id="systemRoleRemoveDialog" message="Remove #{userSystemRoleController.getSystemRoleName()} Role for user #{userSystemRoleController.systemRoleTable.current.username}?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment