publisherRevision.xhtml 4.63 KB
<?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">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:jsf="http://xmlns.jcp.org/jsf">
<head>
<f:metadata>
    <f:viewParam name="publisherRevisionId" value="#{publisherRevisionView.publisherRevisionId}" />
    <f:viewAction action="#{publisherRevisionView.loadData}" />
</f:metadata>
</head>
<body>

<h:form>
    <ul>
        <li>
            <a jsf:outcome="/index">Menu principal</a>
        </li>
        <li>
            <a jsf:outcome="listPublisherRevisions">Versions des éditeurs</a>
        </li>
    </ul>

    <h:panelGrid columns="2">
        <label for="publisherName">publisherName</label>
        <input type="text" id="publisherName" jsf:value='#{publisherRevisionView.publisherName}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherStreetAddress">publisherStreetAddress</label>
        <input type="text" id="publisherStreetAddress" jsf:value='#{publisherRevisionView.publisherStreetAddress}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherPostalCode">publisherPostalCode</label>
        <input type="text" id="publisherPostalCode" jsf:value='#{publisherRevisionView.publisherPostalCode}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherPostOfficeBoxNumber">publisherPostOfficeBoxNumber</label>
        <input type="text" id="publisherPostOfficeBoxNumber" jsf:value='#{publisherRevisionView.publisherPostOfficeBoxNumber}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherAddressRegion">publisherAddressRegion</label>
        <input type="text" id="publisherAddressRegion" jsf:value='#{publisherRevisionView.publisherAddressRegion}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherAddressLocality">publisherAddressLocality</label>
        <input type="text" id="publisherAddressLocality" jsf:value='#{publisherRevisionView.publisherAddressLocality}' jsf:disabled="#{not publisherRevisionView.editMode}"/>

        <label for="publisherAddressCountry">publisherAddressCountry</label>
        <h:selectOneMenu id="publisherAddressCountry" value="#{publisherRevisionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter" disabled="#{not publisherRevisionView.editMode}">
            <f:selectItems value="#{publisherRevisionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/>
        </h:selectOneMenu>

        <label for="publisherTelephone">publisherTelephone</label>
        <input type="text" id="publisherTelephone" jsf:value='#{publisherRevisionView.publisherTelephone}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherEmail">publisherEmail</label>
        <input type="text" id="publisherEmail" jsf:value='#{publisherRevisionView.publisherEmail}' jsf:disabled="#{not publisherRevisionView.editMode}"/>
        <label for="publisherURL">publisherURL</label>
        <input type="text" id="publisherURL" jsf:value='#{publisherRevisionView.publisherURL}' jsf:disabled="#{not publisherRevisionView.editMode}"/>

        <label for="publisherActive">publisherActive</label>
        <input type="checkbox" id="publisherActive" jsf:disabled="#{not publisherRevisionView.editMode}" jsf:value="#{publisherRevisionView.publisherActive}"/>

        <label for="publisherHistory">publisherHistory</label>
        <textarea id="publisherHistory" rows="" cols="" jsf:disabled="#{not publisherRevisionView.editMode}" jsf:value="#{publisherRevisionView.publisherHistory}"/>

        <div jsf:rendered="#{not publisherRevisionView.newPublisher}">publisherRevisionAuthor</div>
        <div jsf:rendered="#{not publisherRevisionView.newPublisher}">#{publisherRevisionView.publisherRevisionAuthor.displayName}</div>
        <div jsf:rendered="#{not publisherRevisionView.newPublisher}">publisherRevisionDatetime</div>
        <div jsf:rendered="#{not publisherRevisionView.newPublisher}">#{publisherRevisionView.publisherRevisionDatetime}</div>

        <button jsf:rendered="#{not publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.edit}">Edit</button>
        <button jsf:rendered="#{publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.save}">Save</button>
        <button jsf:rendered="#{publisherRevisionView.editMode}" jsf:action="#{publisherRevisionView.cancel}">Cancel</button>
    </h:panelGrid>
</h:form>
</body>
</html>