publisherVersion.xhtml 4.61 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="publisherVersionId" value="#{publisherVersionView.publisherVersionId}" />
    <f:viewAction action="#{publisherVersionView.loadData}" />
</f:metadata>
</head>
<body>

<form jsf:id="publisherVersion" action="">
    <ul>
        <li>
            <a jsf:outcome="/index">Menu principal</a>
        </li>
        <li>
            <a jsf:outcome="listPublisherVersions">Versions des éditeurs</a>
        </li>
    </ul>

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

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

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

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

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

        <div jsf:rendered="#{not publisherVersionView.newPublisher}">publisherVersionAuthor</div>
        <div jsf:rendered="#{not publisherVersionView.newPublisher}">#{publisherVersionView.publisherVersionAuthor.displayName}</div>
        <div jsf:rendered="#{not publisherVersionView.newPublisher}">publisherVersionDatetime</div>
        <div jsf:rendered="#{not publisherVersionView.newPublisher}">#{publisherVersionView.publisherVersionDatetime}</div>

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