]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 29 Sep 2017 21:42:20 +0000 (23:42 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 29 Sep 2017 21:44:53 +0000 (23:44 +0200)
- cleared receipt backing bean after the receipt has been successfull added
  and event has been triggered
- rewrote more towards PrimeFaces to have (more but not fully) responsive forms
- renamed i18n strings
- tpzo fixed

Signed-off-by: Roland Häder <roland@mxchange.org>
14 files changed:
src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialAdminReceiptWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/financial/model/receipt/FinancialsReceiptWebRequestBean.java
src/java/org/mxchange/localization/project_de_DE.properties
src/java/org/mxchange/localization/project_en_US.properties
web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl
web/WEB-INF/templates/admin/menu/project.tpl
web/WEB-INF/templates/user/financial/receipt/login_form_financial_receipt.tpl
web/admin/fax/admin_fax_show.xhtml
web/admin/financials/receipts/admin_receipt_list.xhtml
web/admin/landline/admin_landline_show.xhtml
web/admin/mobile/admin_mobile_show.xhtml
web/user/financials/login_financials_add_income.xhtml
web/user/financials/login_financials_add_receipt.xhtml
web/user/financials/login_financials_overview.xhtml

index 00af46b6f2c3ec4a74ecaf20d6f8e2c732d90765..0c797f2e85ad47a091b3ec4d0b077191bd3c190d 100644 (file)
@@ -167,6 +167,9 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl
                // Fire event with updated instance
                this.adminAddedReceiptEvent.fire(new ReceiptAddedEvent(updatedReceipt));
 
+               // Clear bean
+               this.clear();
+
                // Return redirect outcome
                return "add_receipt_item?faces-redirect=true"; //NOI18N
        }
@@ -317,6 +320,21 @@ public class FinancialAdminReceiptWebRequestBean extends BaseFinancialsBean impl
                this.receiptUser = receiptUser;
        }
 
+       /**
+        * Clears this bean
+        */
+       private void clear () {
+               // Clear all fields
+               this.setReceiptBarCodeNumber(null);
+               this.setReceiptBranchOffice(null);
+               this.setReceiptIssued(null);
+               this.setReceiptNumber(null);
+               this.setReceiptPaymentType(null);
+               this.setReceiptRegisterNumber(null);
+               this.setReceiptSellerEmployee(null);
+               this.setReceiptUser(null);
+       }
+
        /**
         * Creates a new instance from all available data of this bean.
         * <p>
index 46a90a6dab0591a0a40c6549800ea435a50402a1..b1dc31e35b7a2bdfdb66c4d329c4a9c64e59ece7 100644 (file)
@@ -202,6 +202,9 @@ public class FinancialsReceiptWebRequestBean extends BaseFinancialsBean implemen
                // Fire event with updated instance
                this.addedReceiptEvent.fire(new ReceiptAddedEvent(updatedReceipt));
 
+               // Clear bean
+               this.clear();
+
                // Return redirect outcome
                return "add_receipt_item?faces-redirect=true"; //NOI18N
        }
@@ -475,6 +478,20 @@ public class FinancialsReceiptWebRequestBean extends BaseFinancialsBean implemen
                return this.allReceipts.contains(receipt);
        }
 
+       /**
+        * Clears this bean
+        */
+       private void clear () {
+               // Clear all fields
+               this.setReceiptBarCodeNumber(null);
+               this.setReceiptBranchOffice(null);
+               this.setReceiptIssued(null);
+               this.setReceiptNumber(null);
+               this.setReceiptPaymentType(null);
+               this.setReceiptRegisterNumber(null);
+               this.setReceiptSellerEmployee(null);
+       }
+
        /**
         * Returns a fully created receipt instance (except primary key, of course)
         * <p>
index dd5c15906db15ffb8dfc79fe5f1d9cb7c72bca38..3ee7f47d0ea36855e2a760c4de6f617fafd642a2 100644 (file)
@@ -48,8 +48,8 @@ ADMIN_ADD_FINANCIAL_RECEIPT_TITLE=Neuen Kassenbon hinzufuegen
 BUTTON_ADMIN_ADD_FINANCIAL_RECEIPT=Kassenbon hinzufuegen
 ADMIN_FINANCIAL_RECEIPT_ISSUE_DATE_REQUIRED=Bitte geben Sie das Ausstellungsdatum des Kassenbons ein.
 ADMIN_MENU_FINANCIAL_RECEIPTS_TITLE=Kassenbons
-LINK_ADMIN_LIST_FINANCIAL_RECEIPTS_TITLE=Listet alle registrierten Kassenbos/Rechnungen auf..
-LINK_ADMIN_LIST_FINANCIAL_RECEIPTS=Kassenbons/Rechnungen auflisten
+ADMIN_LINK_LIST_FINANCIAL_RECEIPTS_TITLE=Listet alle registrierten Kassenbons/Rechnungen auf..
+ADMIN_LINK_LIST_FINANCIAL_RECEIPTS=Kassenbons/Rechnungen auflisten
 ADMIN_LIST_FINANCIAL_RECEIPTS_HEADER=Alle Kassenbons/Rechnungen auflisten
 ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND=Grunddaten des Kassenbons
 ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND_TITLE=Geben Sie hier die Grunddaten des neuen Kassenbons einn.
index 839e42227e5b9367d481696bc966a5f8f08ce8f2..30c46e15939eab61936f65476a48da1984e54238 100644 (file)
@@ -36,8 +36,8 @@ ADMIN_ADD_FINANCIAL_RECEIPT_TITLE=Add new receipt
 BUTTON_ADMIN_ADD_FINANCIAL_RECEIPT=Add receipt
 ADMIN_FINANCIAL_RECEIPT_ISSUE_DATE_REQUIRED=Please enter date of issue of receipt.
 ADMIN_MENU_FINANCIAL_RECEIPTS_TITLE=Receipts
-LINK_ADMIN_LIST_FINANCIAL_RECEIPTS_TITLE=Lists all registered receipts.
-LINK_ADMIN_LIST_FINANCIAL_RECEIPTS=List receipts
+ADMIN_LINK_LIST_FINANCIAL_RECEIPTS_TITLE=Lists all registered receipts.
+ADMIN_LINK_LIST_FINANCIAL_RECEIPTS=List receipts
 ADMIN_LIST_FINANCIAL_RECEIPTS_HEADER=List all receipts
 ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND=Basic data of receipt:
 ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND_TITLE=Enter here basic data of the new receipt.
index a9bb9e50beca831a5369da8b4c02acce1b6a0223..abcb5de314a7663b5f2054d7d1d81dd87d3f538a 100644 (file)
@@ -7,12 +7,11 @@
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
 
-       <fieldset class="fieldset">
-               <legend title="#{project.ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND_TITLE}">
-                       <h:outputText value="#{project.ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND}" />
-               </legend>
-
-               <h:panelGrid columns="3" styleClass="table table-full">
+       <p:fieldset legend="#{project.ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND}">
+               <!--
+               @TODO: title="#{project.ADMIN_FINANCIAL_RECEIPT_BASIC_LEGEND_TITLE}"
+               -->
+               <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4, ui-grid-col-8" styleClass="table table-full ui-noborder">
                        <p:outputLabel for="branchOffice" value="#{msg.ADMIN_SELECT_BRANCH_OFFICE}" />
                        <p:selectOneMenu
                                id="branchOffice"
@@ -26,7 +25,6 @@
                                <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
                                <f:selectItems value="#{branchOfficeController.allBranchOffices()}" var="branchOffice" itemValue="#{branchOffice}" itemLabel="#{branchOffice.branchCompany.companyName} #{branchOffice.branchStreet} #{branchOffice.branchHouseNumber}, #{branchOffice.branchCity}" />
                        </p:selectOneMenu>
-                       <p:message for="branchOffice" />
 
                        <p:outputLabel for="receiptIssued" value="#{project.ENTER_FINANCIAL_RECEIPT_ISSUE_DATE}" />
                        <p:calendar
@@ -40,7 +38,6 @@
                                styleClass="input"
                                title="#{project.ADMIN_RECEIPT_DATE_OF_ISSUE_TITLE}"
                                />
-                       <p:message for="receiptIssued" />
 
                        <p:outputLabel for="receiptPaymentType" value="#{msg.ADMIN_SELECT_PAYMENT_TYPE}" />
                        <p:selectOneMenu
@@ -55,7 +52,6 @@
                                <f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
                                <f:selectItems value="#{dataController.paymentTypes}" var="receiptPaymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
                        </p:selectOneMenu>
-                       <p:message for="receiptPaymentType" />
 
                        <p:outputLabel for="receiptSellerEmployee" value="#{msg.ADMIN_SELECT_SELLER_EMPLOYEE}" />
                        <p:selectOneMenu
@@ -68,7 +64,6 @@
                                <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
                                <f:selectItems value="#{companyEmployeeController.allCompanyEmployees()}" var="companyEmployee" itemValue="#{companyEmployee}" itemLabel="#{companyEmployee.employeeNumber} #{beanHelper.renderContact(companyEmployee.employeePersonalData)}" itemDescription="#{companyEmployee.employeeCompany.companyName}, #{beanHelper.renderBranchOffice(companyEmployee.employeeBranchOffice)}" />
                        </p:selectOneMenu>
-                       <p:message for="receiptSellerEmployee" />
 
                        <p:outputLabel for="receiptUser" value="#{project.ADMIN_SELECT_FINANCIAL_RECEIPT_USER_OWNER}" />
                        <p:selectOneMenu
                                <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
                                <f:selectItems value="#{userController.allUsers()}" var="receiptUser" itemValue="#{receiptUser}" itemLabel="#{receiptUser.userContact.contactFirstName} #{receiptUser.userContact.contactFamilyName} (#{receiptUser.userName})" />
                        </p:selectOneMenu>
-                       <p:message for="receiptUser" />
-               </h:panelGrid>
-       </fieldset>
-
-       <fieldset class="fieldset">
-               <legend title="#{project.ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND_TITLE}">
-                       <h:outputText value="#{project.ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND}" />
-               </legend>
+               </p:panelGrid>
+       </p:fieldset>
 
-               <h:panelGrid columns="3" styleClass="table table-full">
+       <p:fieldset legend="#{project.ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND}">
+               <!--
+               @TODO: title="#{project.ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND_TITLE}">
+               -->
+               <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4, ui-grid-col-8" styleClass="table table-full">
                        <p:outputLabel for="receiptNumber" value="#{project.ENTER_FINANCIAL_RECEIPT_NUMBER}" />
                        <p:inputText styleClass="input" id="receiptNumber" size="10" maxlength="20" value="#{adminReceiptController.receiptNumber}" validatorMessage="#{msg.ENTERED_RECEIPT_NUMBER_INVALID}">
                                <f:validateLongRange minimum="1" maximum="9999999999" />
                        </p:inputText>
-                       <p:message for="receiptNumber" />
 
                        <p:outputLabel for="receiptRegisterNumber" value="#{project.ENTER_FINANCIAL_RECEIPT_REGISTER_NUMBER}" />
                        <p:inputText styleClass="input" id="receiptRegisterNumber" size="3" maxlength="10" value="#{adminReceiptController.receiptRegisterNumber}" validatorMessage="#{msg.ENTERED_RECEIPT_REGISTER_NUMBER_INVALID}">
                                <f:validateLongRange minimum="1" maximum="999" />
                        </p:inputText>
-                       <p:message for="receiptRegisterNumber" />
 
                        <p:outputLabel for="receiptBarCodeNumber" value="#{project.ENTER_FINANCIAL_RECEIPT_BARCODE_NUMBER}" />
                        <p:inputText styleClass="input" id="receiptBarCodeNumber" size="24" maxlength="24" value="#{adminReceiptController.receiptBarCodeNumber}" />
-                       <p:message for="receiptBarCodeNumber" />
-               </h:panelGrid>
-       </fieldset>
+               </p:panelGrid>
+       </p:fieldset>
 </ui:composition>
index aa442752288244f073aaae03955c6894a709995c..f0d0098901b5e3de7b5b01b814b893a415bdb731 100644 (file)
@@ -3,7 +3,10 @@
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://xmlns.jcp.org/jsf/core"
        xmlns:h="http://xmlns.jcp.org/jsf/html"
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:p="http://primefaces.org/ui">
 
-       <!-- Put your stuff here //-->
+       <p:submenu label="#{project.ADMIN_MENU_FINANCIAL_RECEIPTS_TITLE}">
+               <p:menuitem title="#{project.ADMIN_LINK_LIST_FINANCIAL_RECEIPTS_TITLE}" outcome="admin_list_receipts" value="#{project.ADMIN_LINK_LIST_FINANCIAL_RECEIPTS}" />
+       </p:submenu>
 </ui:composition>
index 848a92b332eef6c6f7828e8a6d896b03be2e480c..f6c1a3dea534b78ce9c136541c5ee0dd1e4c1b2c 100644 (file)
@@ -12,7 +12,7 @@
                        <h:outputText value="#{project.LOGIN_FINANCIAL_RECEIPT_BASIC_LEGEND}" />
                </legend>
 
-               <h:panelGrid columns="3" styleClass="table table-full">
+               <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4, ui-grid-col-8" styleClass="table table-full">
                        <p:outputLabel for="branchOffice" value="#{project.LOGIN_SELECT_BRANCH_OFFICE}" />
                        <p:selectOneMenu
                                id="branchOffice"
@@ -69,7 +69,7 @@
                                <f:selectItems value="#{companyEmployeeController.allCompanyEmployees()}" var="companyHeadQuarters" itemValue="#{companyEmployee}" itemLabel="#{companyEmployee.foo}" />
                        </p:selectOneMenu>
                        <p:message for="receiptSellerEmployee" />
-               </h:panelGrid>
+               </p:panelGrid>
        </fieldset>
 
        <fieldset class="fieldset">
@@ -77,7 +77,7 @@
                        <h:outputText value="#{project.LOGIN_FINANCIAL_RECEIPT_OTHER_LEGEND}" />
                </legend>
 
-               <h:panelGrid columns="3" styleClass="table table-full">
+               <p:panelGrid layout="grid" columns="2" columnClasses="ui-grid-col-4, ui-grid-col-8" styleClass="table table-full">
                        <p:outputLabel for="receiptNumber" value="#{project.FINANCIAL_RECEIPT_NUMBER}" />
                        <p:inputText styleClass="input" id="receiptNumber" size="10" maxlength="20" value="#{receiptController.receiptNumber}" validatorMessage="#{msg.ENTERED_RECEIPT_NUMBER_INVALID}">
                                <f:validateLongRange minimum="1" maximum="9999999999" />
@@ -93,6 +93,6 @@
                        <p:outputLabel for="receiptBarCodeNumber" value="#{project.FINANCIAL_RECEIPT_BARCODE_NUMBER}" />
                        <p:inputText styleClass="input" id="receiptBarCodeNumber" size="24" maxlength="24" value="#{receiptController.receiptBarCodeNumber}" />
                        <p:message for="receiptBarCodeNumber" />
-               </h:panelGrid>
+               </p:panelGrid>
        </fieldset>
 </ui:composition>
index 70570c4ee5e7cb20522630194a7228ca2ea90b43..1d5407b961c1d2a2f0c0070145dfd55efba09438 100644 (file)
@@ -25,7 +25,7 @@
        <ui:define name="content">
                <widgets:outputAdminFaxPanelGrid faxNumber="#{beanHelper.faxNumber}" />
 
-               <p:dataTable id="contact_fax_link" var="contact" value="#{contactPhoneController.allCurrentFaxNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-medium">
+               <p:dataTable id="contact_fax_link" var="contact" value="#{contactPhoneController.allCurrentFaxNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-full">
                        <f:facet name="header">
                                <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_FAX_NUMBER_LINKS}">
                                        <f:param value="#{beanHelper.faxNumber.phoneId}" />
index e24fff891bb65ce956ab13313d102c0a3882b4c4..5eb3796a8ba7753339f208af64d65a6a195c78fe 100644 (file)
@@ -20,7 +20,6 @@
                                id="table-list-financial-receipt"
                                var="receipt"
                                value="#{receiptController.allReceipts()}"
-                               widgetVar="receiptTable"
                                filteredValue="#{receiptController.filteredReceipts}"
                                tableStyleClass="table table-full"
                                rows="10"
@@ -31,8 +30,9 @@
                                rowsPerPageTemplate="5,10,20,50,100"
                                sortMode="multiple"
                                summary="#{project.TABLE_SUMMARY_ADMIN_LIST_FINANCIAL_RECEIPTS}"
-                               emptyMessage="#{project.ADMIN_FINANCIAL_RECEIPT_LIST_EMPTY}">
-
+                               emptyMessage="#{project.ADMIN_FINANCIAL_RECEIPT_LIST_EMPTY}"
+                               widgetVar="receiptList"
+                               >
                                <f:facet name="header">
                                        <h:outputText value="#{project.ADMIN_LIST_FINANCIAL_RECEIPTS_HEADER}" />
                                        <p:commandButton id="toggler" type="button" value="#{msg.SELECT_SHOWN_COLUMNS}" styleClass="column-selector" />
                        </p:dataTable>
                </h:form>
 
-               <h:form id="form_admin_add_financial_receipt">
-                       <h:panelGrid columns="1" headerClass="table-header" footerClass="table-footer" styleClass="table table-full">
-                               <f:facet name="header">
-                                       <h:outputText value="#{project.ADMIN_ADD_FINANCIAL_RECEIPT_TITLE}" />
-                               </f:facet>
+               <h:form>
+                       <p:panelGrid layout="grid" columns="1" styleClass="table table-full">
+                               <h:panelGroup styleClass="table-header" layout="block">
+                                       <h4>
+                                               <h:outputText value="#{project.ADMIN_ADD_FINANCIAL_RECEIPT_TITLE}" />
+                                       </h4>
+                               </h:panelGroup>
 
-                               <p:column>
-                                       <ui:include src="/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl" />
-                               </p:column>
+                               <ui:include src="/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl" />
 
-                               <f:facet name="footer">
-                                       <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
-                                       <p:commandButton styleClass="submit" type="submit" id="button_add_financial_receipt" value="#{project.BUTTON_ADMIN_ADD_FINANCIAL_RECEIPT}" action="#{adminReceiptController.addReceipt()}" />
-                               </f:facet>
-                       </h:panelGrid>
+                               <p:panelGrid columns="2" styleClass="table-footer" layout="grid">
+                                       <p:commandButton
+                                               styleClass="reset divider-right"
+                                               type="reset"
+                                               value="#{msg.BUTTON_RESET_FORM}"
+                                               />
+
+                                       <p:commandButton
+                                               styleClass="submit"
+                                               type="submit"
+                                               value="#{project.BUTTON_ADMIN_ADD_FINANCIAL_RECEIPT}"
+                                               action="#{adminReceiptController.addReceipt()}"
+                                               update=":master:form-list-financial-receipt:table-list-financial-receipt"
+                                               />
+                               </p:panelGrid>
+                       </p:panelGrid>
                </h:form>
        </ui:define>
 </ui:composition>
index 7fc7f0919d207a4dd4e48ba9f2783c94c3a4c658..052f450b48e2ea9d97e0e684b632801fde1cdba8 100644 (file)
@@ -25,7 +25,7 @@
        <ui:define name="content">
                <widgets:outputAdminLandLinePanelGrid landLineNumber="#{beanHelper.landLineNumber}" />
 
-               <p:dataTable id="contact_landline_link" var="contact" value="#{contactPhoneController.allCurrentLandLineNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-medium">
+               <p:dataTable id="contact_landline_link" var="contact" value="#{contactPhoneController.allCurrentLandLineNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-full">
                        <f:facet name="header">
                                <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_LAND_LINE_NUMBER_LINKS}">
                                        <f:param value="#{beanHelper.landLineNumber.phoneId}" />
index 7ee270396ca943671d0611865ba3c50b34f7ca9f..68e532e17169786e7253e95c5801cf7759b257a7 100644 (file)
@@ -25,7 +25,7 @@
        <ui:define name="content">
                <widgets:outputAdminMobilePanelGrid mobileNumber="#{beanHelper.mobileNumber}" />
 
-               <p:dataTable id="contact_mobile_link" var="contact" value="#{contactPhoneController.allCurrentMobileNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-medium">
+               <p:dataTable id="contact_mobile_link" var="contact" value="#{contactPhoneController.allCurrentMobileNumberContacts()}" summary="#{msg.TABLE_SUMMARY_ADMIN_SHOW_ADMINISTRATIVE_LINKS}" tableStyleClass="table table-full">
                        <f:facet name="header">
                                <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_MOBILE_NUMBER_LINKS}">
                                        <f:param value="#{beanHelper.mobileNumber.phoneId}" />
index 9541a547509264272cd3bdbd18e4e5bc6e8c9c5d..e4a347488f1ed219a41f2db6971d7ac78c5a2922 100644 (file)
@@ -16,7 +16,7 @@
 
        <ui:define name="content">
                <h:form id="form_add_financials_income">
-                       <h:panelGroup styleClass="table table-medium" layout="block">
+                       <h:panelGroup styleClass="table table-full" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{project.LOGIN_FINANCIAL_ADD_INCOME_FORM_TITLE}" />
                                </div>
index fe029289a46084e3ca1da9d8c261ae614fff2c3f..ec59537b5a7ccaf9a667da1e8dcbd27fb9a71dd0 100644 (file)
@@ -16,7 +16,7 @@
 
        <ui:define name="content">
                <h:form id="form_add_financial_receipt">
-                       <h:panelGrid columns="1" headerClass="table-header" footerClass="table-footer" styleClass="table table-full">
+                       <p:panelGrid layout="grid" columns="1" headerClass="table-header" footerClass="table-footer" styleClass="table table-full">
                                <f:facet name="header">
                                        <h:outputText value="#{project.LOGIN_ADD_FINANCIAL_RECEIPT_TITLE}" />
                                </f:facet>
@@ -27,9 +27,9 @@
 
                                <f:facet name="footer">
                                        <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
-                                       <p:commandButton styleClass="submit" type="submit" id="button_add_financial_receipt" value="#{project.BUTTON_LOGIN_ADD_FINANCIAL_RECEIPT}" action="#{receiptController.addReceipt()}" />
+                                       <p:commandButton styleClass="submit" type="submit" id="submit_add_financial_receipt" value="#{project.BUTTON_LOGIN_ADD_FINANCIAL_RECEIPT}" action="#{receiptController.addReceipt()}" />
                                </f:facet>
-                       </h:panelGrid>
+                       </p:panelGrid>
                </h:form>
        </ui:define>
 </ui:composition>
index 592ad41f613777d188cc169eb52408e2c58be3d9..ac4bde5d4f7ee8416383f218cfb90c6beb466837 100644 (file)
@@ -16,7 +16,7 @@
 
        <ui:define name="content">
                <h:panelGroup layout="block" styleClass="para">
-                       <h:panelGrid columns="4">
+                       <p:panelGrid layout="grid" columns="4">
                                <f:facet name="header">
                                        <h:outputText value="#{project.GENERAL_FINANCIAL_OVERVIEW}" />
                                </f:facet>
@@ -38,7 +38,7 @@
 
                                        <h:outputLink id="totalReceipts" styleClass="data_field" target="list_user_financial_income" value="#{financialIncomeController.income.size()}" />
                                </h:column>
-                       </h:panelGrid>
+                       </p:panelGrid>
                </h:panelGroup>
 
                <h:panelGroup layout="block" styleClass="para">