Skip to content
Snippets Groups Projects
experimentCreatePanelGrid.xhtml 1.93 KiB
Newer Older
Barbara B. Frosik's avatar
Barbara B. Frosik committed
<?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:f="http://java.sun.com/jsf/core"        
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
Barbara B. Frosik's avatar
Barbara B. Frosik committed

    <ui:param name="experimentObject" value="#{experimentController.selected}"/>
Barbara B. Frosik's avatar
Barbara B. Frosik committed
    
Barbara B. Frosik's avatar
Barbara B. Frosik committed
    <p:panelGrid columns="2" styleClass="createEntityDetails">
Barbara B. Frosik's avatar
Barbara B. Frosik committed

        <h:outputLabel for="name" value="Name" styleClass="entityDataEmphasizedLabel"/>
        <h:inputText id="name" value="#{experimentObject.name}" title="Name" required="true" styleClass="entityDataEmphasizedText"/>

        <h:outputLabel for="experimentType" value="Experiment Type" styleClass="entityDataLabel"/>
        <p:selectOneMenu id="experimentType" value="#{experimentObject.experimentType}" styleClass="entityDataText">
            <f:selectItem itemLabel="Select Type" itemValue="" noSelectionOption="true" />
            <f:selectItems value="#{experimentTypeController.getAvailableItems()}" 
                           var="n"
                           itemValue="#{n}"
                           itemLabel="#{n.name}"/>
        </p:selectOneMenu>

        <h:outputLabel for="description" value="Description" styleClass="entityDataLabel"/>
Barbara B. Frosik's avatar
Barbara B. Frosik committed
        <h:inputText id="description" value="#{experimentObject.description}" title="Description" styleClass="entityDataText"/>      
Barbara B. Frosik's avatar
Barbara B. Frosik committed

        <h:outputLabel for="startDate" value="Start Date" styleClass="entityDataLabel"/>
        <p:calendar id="startDate" value="#{experimentObject.startDate}" />
        
        <h:outputLabel for="endDate" value="End Date" styleClass="entityDataLabel"/>
        <p:calendar id="endDate" value="#{experimentObject.endDate}" />
        
    </p:panelGrid>

</ui:composition>