Skip to content
Snippets Groups Projects
Forked from DM / dm-docs
261 commits behind, 832 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
userExperimentRoleAddDialog.xhtml 2.57 KiB
<?xml version="1.0" encoding="UTF-8" ?>
<!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"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <p:dialog id="userExperimentRoleAddDialog" 
              widgetVar="userExperimentRoleAddDialogWidget" 
              header="Select Experiment" 
              styleClass="dialog">
        <div class="dialog">
            <ui:include src="experimentSelectDataTable.xhtml"/>
            <f:facet name="footer" class="dialog">
                <div class="actionButton" align="center">
                    <p:commandButton value="Add PI Role" alt="Add PI Role" 
                                     action="#{userInfoController.addUserExperimentRolePi()}"
                                     onclick="PF('experimentSelectDataTableWidget').filter()"
                                     oncomplete="PF('userExperimentRoleAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-arrowreturnthick-1-w"
                                     styleClass="dialog">
                    </p:commandButton>
                    <p:commandButton value="Add User Role" alt="Add User Role" 
                                     action="#{userInfoController.addUserExperimentRoleUser()}"
                                     onclick="PF('experimentSelectDataTableWidget').filter()"
                                     oncomplete="PF('userExperimentRoleAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-arrowreturnthick-1-w"
                                     styleClass="dialog">
                    </p:commandButton>   
                    <p:commandButton value="Cancel" alt="Cancel" 
                                     onclick="PF('userExperimentRoleAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-close"
                                     styleClass="dialog">
                    </p:commandButton> 
                </div>
            </f:facet>
        </div>
    </p:dialog>
</ui:composition>