From 0c9cdb977d3494f245037ae71c3ad5d32aee387a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 30 Sep 2017 01:08:56 +0200 Subject: [PATCH] Don't cherry-pick: - added first custom project-specific JSF tag for outputting "mini-links" for receipts - added almost (except optional fields) all receipt fields to administrative list - added missing i18n strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../localization/project_de_DE.properties | 3 + .../localization/project_en_US.properties | 2 + web/WEB-INF/project-links.jsf.taglib.xml | 23 ++++ .../financial/receipt/admin_receipt_links.tpl | 33 ++++++ .../receipts/admin_receipt_list.xhtml | 108 ++++++++++++++++++ 5 files changed, 169 insertions(+) create mode 100644 web/WEB-INF/resources/tags/admin/links/mini/financial/receipt/admin_receipt_links.tpl diff --git a/src/java/org/mxchange/localization/project_de_DE.properties b/src/java/org/mxchange/localization/project_de_DE.properties index 3ee7f47d..b6d57db4 100644 --- a/src/java/org/mxchange/localization/project_de_DE.properties +++ b/src/java/org/mxchange/localization/project_de_DE.properties @@ -61,3 +61,6 @@ ENTER_FINANCIAL_RECEIPT_REGISTER_NUMBER=Kassennummer eingeben: ENTER_FINANCIAL_RECEIPT_BARCODE_NUMBER=Barcode-Nummer eingeben: ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND=Sonstige Daten des Kassenbons eingeben: ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND_TITLE=Geben Sie hier weitere Daten an, die Sie auf dem Kassenbon finden koennen. +ADMIN_LINK_SHOW_RECEIPT_OWNER_USER_TITLE=Zeigt zugewiesenen Benutzer des Kassenbons an. +#@TODO Please fix German umlauts! +ADMIN_ASSIGNED_RECEIPT_SELLER=Zugewiesener Verkaeufer: diff --git a/src/java/org/mxchange/localization/project_en_US.properties b/src/java/org/mxchange/localization/project_en_US.properties index 30c46e15..b262f733 100644 --- a/src/java/org/mxchange/localization/project_en_US.properties +++ b/src/java/org/mxchange/localization/project_en_US.properties @@ -49,3 +49,5 @@ ENTER_FINANCIAL_RECEIPT_REGISTER_NUMBER=Enter cash register number: ENTER_FINANCIAL_RECEIPT_BARCODE_NUMBER=Enter bar code number: ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND=Enter other data of receipt: ADMIN_FINANCIAL_RECEIPT_OTHER_LEGEND_TITLE=Enter other additional data you can find on the receipt. +ADMIN_LINK_SHOW_RECEIPT_OWNER_USER_TITLE=Shows assigned user of receipt. +ADMIN_ASSIGNED_RECEIPT_SELLER=Assigned seller: diff --git a/web/WEB-INF/project-links.jsf.taglib.xml b/web/WEB-INF/project-links.jsf.taglib.xml index 68bbe317..b84b0793 100644 --- a/web/WEB-INF/project-links.jsf.taglib.xml +++ b/web/WEB-INF/project-links.jsf.taglib.xml @@ -20,4 +20,27 @@ along with this program. If not, see . xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibrary_2_2.xsd"> http://mxchange.org/jsf/jfinancials/links + + outputReceiptAdminMiniLinks + This tag renders a full h:panelGroup for administrative "mini-links" for receipt data. + resources/tags/admin/links/mini/financial/receipt/admin_receipt_links.tpl + + receipt + The receipt instance that provides the data for this tag. + true + org.mxchange.jfinancials.model.receipt.BillableReceipt + + + renderShowLink + Whether this tag is used to show mobile data (default true). + false + java.lang.Boolean + + + rendered + Whether this tag is being rendered by JSF engine (default: true). + false + java.lang.Boolean + + diff --git a/web/WEB-INF/resources/tags/admin/links/mini/financial/receipt/admin_receipt_links.tpl b/web/WEB-INF/resources/tags/admin/links/mini/financial/receipt/admin_receipt_links.tpl new file mode 100644 index 00000000..993f6ba2 --- /dev/null +++ b/web/WEB-INF/resources/tags/admin/links/mini/financial/receipt/admin_receipt_links.tpl @@ -0,0 +1,33 @@ + + + + + + + diff --git a/web/admin/financials/receipts/admin_receipt_list.xhtml b/web/admin/financials/receipts/admin_receipt_list.xhtml index 5eb3796a..952a3191 100644 --- a/web/admin/financials/receipts/admin_receipt_list.xhtml +++ b/web/admin/financials/receipts/admin_receipt_list.xhtml @@ -1,6 +1,9 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.5