From 22df08c29f6e4566d418e2a80a8279303406a733 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 29 Jun 2018 00:58:19 +0200 Subject: build: switch to meson buildsystem We build the project with 'meson' now instead of using custom configure script + GNU Makefiles. To build the project, go to the project root directory and use the following commands: Building: meson build cd build ninja Update Language Files: ninja shopsystem-pot ninja shopsystem-update-po Install: DESTDIR=./tmp ninja install --- data/templates/products/bestbefore.html | 8 +++++ data/templates/products/entry.html | 64 +++++++++++++++++++++++++++++++++ data/templates/products/index.html | 24 +++++++++++++ data/templates/products/new.html | 22 ++++++++++++ data/templates/products/newprice.html | 18 ++++++++++ data/templates/products/restock.html | 22 ++++++++++++ 6 files changed, 158 insertions(+) create mode 100644 data/templates/products/bestbefore.html create mode 100644 data/templates/products/entry.html create mode 100644 data/templates/products/index.html create mode 100644 data/templates/products/new.html create mode 100644 data/templates/products/newprice.html create mode 100644 data/templates/products/restock.html (limited to 'data/templates/products') diff --git a/data/templates/products/bestbefore.html b/data/templates/products/bestbefore.html new file mode 100644 index 0000000..dbc7f47 --- /dev/null +++ b/data/templates/products/bestbefore.html @@ -0,0 +1,8 @@ + + + + + + {{{DATA}}} + +
EANNameAmountBest Before Date
diff --git a/data/templates/products/entry.html b/data/templates/products/entry.html new file mode 100644 index 0000000..05c1dce --- /dev/null +++ b/data/templates/products/entry.html @@ -0,0 +1,64 @@ +

Product Information

+

+ + + + + + +
EAN{{{EAN}}}
Name{{{NAME}}}
Category{{{CATEGORY}}}
Amount{{{AMOUNT}}}
State
+

+ +

Price History

+ + + {{{PRICES}}} +
Valid SinceMemberpriceGuestprice
+ +
+
+ + + +
+
+ +

Restock

+ + + {{{RESTOCKS}}} +
DateAmountUnit PriceSupplierBest before Date
+ +
+
+ + + + + +
+
+ + diff --git a/data/templates/products/index.html b/data/templates/products/index.html new file mode 100644 index 0000000..d80adbd --- /dev/null +++ b/data/templates/products/index.html @@ -0,0 +1,24 @@ +product list with best before dates + + + + + + + {{{DATA}}} + +
EANNameCategoryAmountMemberpriceGuestprice
+ +
+
+ New Product + + + + + + +
+
diff --git a/data/templates/products/new.html b/data/templates/products/new.html new file mode 100644 index 0000000..e38bd7b --- /dev/null +++ b/data/templates/products/new.html @@ -0,0 +1,22 @@ +

Add new product: {{{NAME}}}

+ +
+

Successfully created new item:

+ + + + + + +
Name{{{NAME}}}
EAN{{{EAN}}}
Memberprice{{{MEMBERPRICE}}}
Guestprice{{{GUESTPRICE}}}
+
+ +
+

Error

+ Creating new product failed. Please make sure you + have sufficient permissions and gave valid values + for name, EAN, memberprice and guestprice. +
+ +Go to {{{NAME}}}
+Back to product list diff --git a/data/templates/products/newprice.html b/data/templates/products/newprice.html new file mode 100644 index 0000000..c46d439 --- /dev/null +++ b/data/templates/products/newprice.html @@ -0,0 +1,18 @@ +

Restock: {{{NAME}}}

+ +
+ Successfully added new prices to {{{NAME}}}. New prices valid from now on: + +
+ +
+

Error

+ Adding new price for {{{NAME}}} failed. Please make sure you + have sufficient permissions and gave valid prices for members and + guests. +
+ +Back to {{{NAME}}} diff --git a/data/templates/products/restock.html b/data/templates/products/restock.html new file mode 100644 index 0000000..70926c5 --- /dev/null +++ b/data/templates/products/restock.html @@ -0,0 +1,22 @@ +

Restock: {{{NAME}}}

+ +
+

Successfully restocked:

+ + + + + + + +
Name{{{NAME}}}
Amount{{{AMOUNT}}}
Price{{{PRICE}}}
Supplier{{{SUPPLIER}}}
Best Before Date{{{BESTBEFORE}}}
+
+ +
+

Error

+ Restocking {{{NAME}}} failed. Please make sure you + have sufficient permissions and gave valid values + for amount and price. +
+ +Back to {{{NAME}}} -- cgit v1.2.3