From 4fae807663c429c64528680441496acadb8cfb45 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 5 Jul 2021 16:12:28 +0200 Subject: [PATCH] Added Products --- Layout/default/Dashboard/Index.php | 3 +- Layout/default/Network/Index.php | 8 +- Layout/default/Pop/Form.php | 4 +- Layout/default/Product/Form.php | 235 ++++++++++++++++++ Layout/default/Product/Index.php | 69 +++++ Layout/default/footer.php | 2 +- Layout/default/menu.php | 7 +- application/Network/NetworkController.php | 2 +- application/Network/NetworkModel.php | 10 + .../NetworkAddressController.php | 38 +++ application/Product/Product.php | 21 ++ application/Product/ProductController.php | 134 ++++++++++ application/Product/ProductModel.php | 142 +++++++++++ application/Productgroup/Productgroup.php | 5 + .../Productgroup/ProductgroupController.php | 30 +++ .../Productgroup/ProductgroupModel.php | 122 +++++++++ application/Producttech/Producttech.php | 5 + application/Producttech/ProducttechModel.php | 129 ++++++++++ ... => 20210629-addresstype-planner-vlan.sql} | 0 .../migrations/20210705-product-tables.sql | 83 +++++++ lib/Layout/Layout.php | 4 + 21 files changed, 1040 insertions(+), 13 deletions(-) create mode 100644 Layout/default/Product/Form.php create mode 100644 Layout/default/Product/Index.php create mode 100644 application/Product/Product.php create mode 100644 application/Product/ProductController.php create mode 100644 application/Product/ProductModel.php create mode 100644 application/Productgroup/Productgroup.php create mode 100644 application/Productgroup/ProductgroupController.php create mode 100644 application/Productgroup/ProductgroupModel.php create mode 100644 application/Producttech/Producttech.php create mode 100644 application/Producttech/ProducttechModel.php rename contrib/migrations/{20210629-01-addresstype-planner-vlan.sql => 20210629-addresstype-planner-vlan.sql} (100%) create mode 100644 contrib/migrations/20210705-product-tables.sql diff --git a/Layout/default/Dashboard/Index.php b/Layout/default/Dashboard/Index.php index 1f71252e1..38cd090f4 100644 --- a/Layout/default/Dashboard/Index.php +++ b/Layout/default/Dashboard/Index.php @@ -10,8 +10,7 @@

Dashboard

diff --git a/Layout/default/Network/Index.php b/Layout/default/Network/Index.php index 19bec65c9..08969831f 100644 --- a/Layout/default/Network/Index.php +++ b/Layout/default/Network/Index.php @@ -133,6 +133,7 @@ + @@ -141,10 +142,11 @@ addresstypes as $address_id => $addresstypes): ?> + @@ -184,7 +186,7 @@
NameNetzeigentümer
getCompanyOrName()?>owner_id == $address_id) ? "checked='checked'" : ""?> disabled="disabled" /> $address_id, 'addresstype' => [$role]]) !== null): ?> - - $address_id])?>" class="text-danger" title="Löschen"> + $network->id, "address_id" => $address_id])?>" onclick="if(!confirm('Berechtigungen wirklich löschen?')) return false;" class="text-danger" title="Löschen">
- 1]) as $address): ?> addresstypes) && array_key_exists($address->id, $network->addresstypes)) continue; ?> diff --git a/Layout/default/Pop/Form.php b/Layout/default/Pop/Form.php index dfd5971e7..f28b12f4e 100644 --- a/Layout/default/Pop/Form.php +++ b/Layout/default/Pop/Form.php @@ -148,10 +148,10 @@ $(this).on('wheel.disableScroll', function (e) { e.preventDefault() }) - }) + }); $('form').on('blur', 'input[type=number]', function (e) { $(this).off('wheel.disableScroll') - }) + }); \ No newline at end of file diff --git a/Layout/default/Product/Form.php b/Layout/default/Product/Form.php new file mode 100644 index 000000000..eeda90436 --- /dev/null +++ b/Layout/default/Product/Form.php @@ -0,0 +1,235 @@ + + +
+
+ + +
+
+
+
+ +
+

Produkte

+
+
+
+ + +
+
+ +
+
+

id) ? "Produkt bearbeiten" : "Neues Produkt"?>

+ +
"> +
+
+ + + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+ +
+ +
+
+ + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + +

Zusatzdaten

+
+
+
+ +
+ +
+
+
+
+ + +
+
+
+ +
+ +
+
+
+
+ +
+ +
+ +
+
+ + + +
+
+
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/Layout/default/Product/Index.php b/Layout/default/Product/Index.php new file mode 100644 index 000000000..dcf08ab7d --- /dev/null +++ b/Layout/default/Product/Index.php @@ -0,0 +1,69 @@ + + +
+
+ + +
+
+
+ +

Produkte

+
+
+
+ + +
+
+ +
+
+
+

Liste aller Produkte

+
+ + + + + + + + + + + + + + + + + + + + + + + +
FremdproduktGruppeNameTechnologieVerkaufspreisVerr. Periode
external == 1) ? "" : ""?>productgroup->name?>name?>producttech->name?>price?>billing_period?>x Jährlich + $product->id])?>"> + $product->id])?>" class="text-danger" onclick="if(!confirm('Berechtigungen wirklich löschen?')) return false;" title="Produkt Löschen"> +
+
+
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/Layout/default/footer.php b/Layout/default/footer.php index e9e847db0..bc40d9049 100644 --- a/Layout/default/footer.php +++ b/Layout/default/footer.php @@ -3,7 +3,7 @@
- the tool © 2021 Xinon GmbH - Made by fronk - Simulor Theme by Coderthemes + the tool © 2021 Xinon GmbH - Made by fronk