</ui:define>
<ui:define name="content">
- <div class="table_big">
- <div class="table_header">
- #{msg.TABLE_HEADER_SHOW_ADDRESSBOOK}
- </div>
+ <ui:fragment rendered="#{addressbookController.isAddressbookLoaded()}">
+ <div class="table_big">
+ <div class="table_header">
+ #{msg.TABLE_HEADER_SHOW_ADDRESSBOOK}
+ </div>
- <div class="para">
- <h:panelGrid headerClass="table_header_column" footerClass="table_footer" class="table" columns="3">
- <h:column>
+ <div class="para">
+ <h:panelGrid headerClass="table_header_column" columns="3">
<f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet>
<h:outputText id="addressbookId" value="#{addressbookController.addressbookId}" />
- </h:column>
- <h:column>
<f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet>
<h:outputText id="addressbookName" value="#{addressbookController.addressbookName}" />
- </h:column>
- <h:column>
<f:facet name="header">#{msg.ADDRESSBOOK_OWNER}</f:facet>
<h:link id="addressbookUser" outcome="user_profile" value="#{addressbookController.addressbookUser.userName}" />
- </h:column>
- <h:column>
<f:facet name="header">#{msg.ADDRESSBOOK_CREATED}</f:facet>
<h:outputFormat id="addressbookCreated" value="#{addressbookController.addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}">
<f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
</h:outputFormat>
- </h:column>
- <h:column>
<f:facet name="header">#{msg.ADDRESSBOOK_STATUS}</f:facet>
<h:outputFormat id="addressbookCreated" value="#{msg[addressbookController.addressbook.addressbookStatus.messageKey]}" title="#{msg.ADDRESSBOOK_STATUS_TITLE}" />
- </h:column>
- </h:panelGrid>
- </div>
+ </h:panelGrid>
+ </div>
- <div class="table_footer">
- <ui:fragment rendered="#{addressbookController.isOwnAddressbook()}">
- <h:link id="startSharing" outcome="login_start_sharing_addressbook" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK_TITLE}" />
- </ui:fragment>
+ <div class="table_footer">
+ <ui:fragment rendered="#{addressbookController.isOwnAddressbook()}">
+ <h:link id="startSharing" outcome="login_start_sharing_addressbook" value="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_START_SHARING_ADDRESSBOOK_TITLE}" />
+ </ui:fragment>
- <ui:fragment rendered="#{addressbookController.isOtherAddressbook()}">
- Bla bla
- </ui:fragment>
+ <ui:fragment rendered="#{addressbookController.isOtherAddressbook()}">
+ Bla bla
+ </ui:fragment>
+ </div>
</div>
- </div>
+ </ui:fragment>
</ui:define>
</ui:composition>
</html>