]> git.mxchange.org Git - addressbook-war.git/commitdiff
added table container + used table_footer
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 08:06:10 +0000 (10:06 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 08:06:10 +0000 (10:06 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/login/login_own_addressbooks.xhtml

index d65d7c34de49cb038b9d8ea1a620acd07123b28e..9f7c6b4aedacdfd810cb8aba7666f5b66c75e016 100644 (file)
                </ui:define>
 
                <ui:define name="content">
-                       <div class="table_header">
-                               #{msg.TABLE_HEADER_LIST_OWN_ADDRESSBOOKS}
-                       </div>
+                       <div class="table">
+                               <div class="table_header">
+                                       #{msg.TABLE_HEADER_LIST_OWN_ADDRESSBOOKS}
+                               </div>
 
-                       <div class="para">
-                               <h:dataTable id="table_own_addressbooks" var="addressbook" value="#{addressbookController.allAddressbooks()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_LIST_OWN_ADDRESSBOOKS}" rendered="#{addressbookController.hasCreatedAddressbooks()}">
-                                       <h:column>
-                                               <f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet>
+                               <div class="para">
+                                       <h:dataTable id="table_own_addressbooks" var="addressbook" value="#{addressbookController.allAddressbooks()}" styleClass="table" summary="#{msg.TABLE_SUMMARY_LIST_OWN_ADDRESSBOOKS}" rendered="#{addressbookController.hasCreatedAddressbooks()}">
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.ADDRESSBOOK_ID}</f:facet>
 
-                                               <h:outputText id="addressbookId" value="#{addressbook.addressbookId}" title="#{msg.ADDRESSBOOK_ID_TITLE}" />
-                                       </h:column>
+                                                       <h:outputText id="addressbookId" value="#{addressbook.addressbookId}" title="#{msg.ADDRESSBOOK_ID_TITLE}" />
+                                               </h:column>
 
-                                       <h:column>
-                                               <f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet>
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.ADDRESSBOOK_NAME}</f:facet>
 
-                                               <h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}">
-                                                       <f:param name="addressbook_id" value="#{addressbook.addressbookId}" />
-                                                       <h:outputText id="addressbookName" value="#{addressbook.addressbookName}" title="#{msg.ADDRESSBOOK_NAME_TITLE}" />
-                                               </h:link>
-                                       </h:column>
+                                                       <h:link outcome="login_show_addressbook" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_TITLE}">
+                                                               <f:param name="addressbook_id" value="#{addressbook.addressbookId}" />
+                                                               <h:outputText id="addressbookName" value="#{addressbook.addressbookName}" title="#{msg.ADDRESSBOOK_NAME_TITLE}" />
+                                                       </h:link>
+                                               </h:column>
 
-                                       <h:column>
-                                               <f:facet name="header">#{msg.ADDRESSBOOK_TOTAL_ENTRIES}</f:facet>
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.ADDRESSBOOK_TOTAL_ENTRIES}</f:facet>
 
-                                               <h:link outcome="login_show_addressbook_entries" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_ENTRIES_TITLE}">
-                                                       <f:param name="addressbook_id" value="#{addressbook.addressbookId}" />
-                                                       <h:outputText id="addressbookEntries" value="#{addressbookController.allEntriesSize(addressbook)}" title="#{msg.ADDRESSBOOK_TOTAL_ENTRIES_TITLE}" />
-                                               </h:link>
-                                       </h:column>
+                                                       <h:link outcome="login_show_addressbook_entries" title="#{msg.LINK_LOGIN_SHOW_ADDRESS_BOOK_ENTRIES_TITLE}">
+                                                               <f:param name="addressbook_id" value="#{addressbook.addressbookId}" />
+                                                               <h:outputText id="addressbookEntries" value="#{addressbookController.allEntriesSize(addressbook)}" title="#{msg.ADDRESSBOOK_TOTAL_ENTRIES_TITLE}" />
+                                                       </h:link>
+                                               </h:column>
 
-                                       <h:column>
-                                               <f:facet name="header">#{msg.ADDRESSBOOK_CREATED}</f:facet>
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.ADDRESSBOOK_CREATED}</f:facet>
 
-                                               <h:outputFormat id="addressbookCreated" value="#{addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}">
-                                                       <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
-                                               </h:outputFormat>
-                                       </h:column>
-                               </h:dataTable>
-                       </div>
+                                                       <h:outputFormat id="addressbookCreated" value="#{addressbook.addressbookCreated.time}" title="#{msg.ADDRESSBOOK_CREATED_TITLE}">
+                                                               <f:convertDateTime for="addressbookCreated" type="both" timeStyle="short" dateStyle="medium" />
+                                                       </h:outputFormat>
+                                               </h:column>
+                                       </h:dataTable>
+                               </div>
 
-                       <div class="para">
-                               <h:link id="add_first_addressbook" outcome="login_add_addressbook" value="#{msg.LINK_LOGIN_ADD_FIRST_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_ADD_FIRST_ADDRESSBOOK_TITLE}" rendered="#{addressbookController.hasCreatedAddressbooks() == false}" />
-                               <h:link id="add_additional_addressbook" outcome="login_add_addressbook" value="#{msg.LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK_TITLE}" rendered="#{addressbookController.hasCreatedAddressbooks()}" />
+                               <div class="table_footer">
+                                       <h:link id="add_first_addressbook" outcome="login_add_addressbook" value="#{msg.LINK_LOGIN_ADD_FIRST_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_ADD_FIRST_ADDRESSBOOK_TITLE}" rendered="#{addressbookController.hasCreatedAddressbooks() == false}" />
+                                       <h:link id="add_additional_addressbook" outcome="login_add_addressbook" value="#{msg.LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK}" title="#{msg.LINK_LOGIN_ADD_ADDITIONAL_ADDRESSBOOK_TITLE}" rendered="#{addressbookController.hasCreatedAddressbooks()}" />
+                               </div>
                        </div>
                </ui:define>
        </ui:composition>