Skip to content
Snippets Groups Projects
Forked from DM / dm-docs
261 commits behind, 821 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
experimentUserAddDialog.xhtml 2.51 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="experimentUserAddDialog" 
              widgetVar="experimentUserAddDialogWidget" 
              header="Select User" 
              styleClass="dialog">
        <div class="dialog">
            <ui:include src="userSelectDataTable.xhtml"/>
            <f:facet name="footer" class="dialog">
                <div class="actionButton" align="center">
                    <p:commandButton value="Add PI" alt="Add PI" 
                                     action="#{experimentController.addUserExperimentRolePi()}"
                                     onclick="PF('userSelectDataTableWidget').filter()"
                                     oncomplete="PF('experimentUserAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-arrowreturnthick-1-w"
                                     styleClass="dialog">
                    </p:commandButton>
                    <p:commandButton value="Add User" alt="Add User" 
                                     action="#{experimentController.addUserExperimentRoleUser()}"
                                     onclick="PF('userSelectDataTableWidget').filter()"
                                     oncomplete="PF('experimentUserAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-arrowreturnthick-1-w"
                                     styleClass="dialog">
                    </p:commandButton>   
                    <p:commandButton value="Cancel" alt="Cancel" 
                                     onclick="PF('experimentUserAddDialogWidget').hide()"
                                     update="@form"
                                     immediate="true"
                                     icon="ui-icon-close"
                                     styleClass="dialog">
                    </p:commandButton> 
                </div>
            </f:facet>
        </div>
    </p:dialog>
</ui:composition>