]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 19 Sep 2017 21:35:32 +0000 (23:35 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 19 Sep 2017 21:35:32 +0000 (23:35 +0200)
- on an enumeration, you may wish to have i18n keys around, then also you
  should handle them over:

  <f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />

  Sounds convincing, right? :-)

Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/templates/admin/financial/receipt/admin_form_financial_receipt.tpl

index 353ed6ebc89d7fb7ae515e98aa58ec5350c053c0..f1c270547d05e7d3edcc4fbcbb3937b2bd81012a 100644 (file)
@@ -76,6 +76,7 @@
                        <h:panelGroup styleClass="error-container" layout="block">
                                <p:message for="receiptNumber" />
                        </h:panelGroup>
+
                        <h:panelGroup styleClass="table-row" layout="block">
                                <div class="table-left-medium">
                                        <p:outputLabel for="paymentType" value="#{project.LOGIN_FINANCIAL_INCOME_INTERVAL}" />
@@ -91,7 +92,7 @@
                                                requiredMessage="#{project.FIELD_FINANCIAL_RECEIPT_PAYMENT_TYPE_REQUIRED}"
                                                >
                                                <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
-                                               <f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType]}" />
+                                               <f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
                                        </p:selectOneMenu>
                                </div>
                        </h:panelGroup>