<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
xmlns="http://www.w3.org/1999/xhtml"
- xmlns:widgets="http://mxchange.org/jsf/core/widgets"
+ xmlns:core="http://mxchange.org/jsf/core/widgets"
xmlns:links="http://mxchange.org/jsf/core/links"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<ui:define name="content">
<h:form id="form-list-contacts">
<p:dataTable
- id="table-list-contacts"
+ id="contactList"
var="contact"
value="#{contactController.allContacts()}"
tableStyleClass="table table-full"
paginator="true"
rows="10"
summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}"
- emptyMessage="#{msg.ADMIN_CONTACT_LIST_EMPTY}"
+ emptyMessage="#{msg.ADMIN_EMPTY_LIST_CONTACT}"
widgetVar="contactList"
>
<p:column>
<p:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_LIST_ENTRY_CREATED}" />
+ <h:outputText value="#{msg.ENTRY_CREATED_HEADER}" />
</f:facet>
<h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
<p:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_ACTION_LINKS}" />
+ <h:outputText value="#{msg.ADMIN_ACTION_LINKS_HEADER}" />
</f:facet>
<links:outputContactAdminMiniLinks contact="#{contact}" />
</p:dataTable>
</h:form>
- <h:form id="form-admin-add-contact">
+ <h:form>
<p:panelGrid layout="grid" columns="1" styleClass="table table-full">
<f:facet name="header">
<h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
<h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
- <widgets:outputAdminContactDataFormFields />
+ <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
<f:facet name="footer">
<p:commandButton
- styleClass="reset divider-right"
+ styleClass="reset"
type="reset"
value="#{msg.BUTTON_RESET_FORM}"
/>
type="submit"
value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
action="#{adminContactController.addContact()}"
- update=":master:form-list-contacts:table-list-contacts"
+ update=":master:form-list-contacts:contactList"
/>
</f:facet>
</p:panelGrid>