diff --git a/Layout/default/Order/Form.php b/Layout/default/Order/Form.php index 7eafbfdca..e66240ece 100644 --- a/Layout/default/Order/Form.php +++ b/Layout/default/Order/Form.php @@ -345,7 +345,7 @@
-
+
-
+
- +
- +
+
+ + +
+ product->attributes) && $product->product->attributes[TT_ATTRIB_TERMINATION_REQUIRED_NAME] == 1): ?> +
+ +
+ + +
+
+ + +
-
- - +
+ +
+
@@ -402,8 +423,8 @@
-
- +
+
-
+
@@ -427,6 +448,24 @@
+
+ + +
+ +
+ +
@@ -437,8 +476,8 @@
- - + +
@@ -456,7 +495,7 @@
id): ?> - Verfügbar nach speichern. + Verfügbar nach speichern. files) && count($order->files)): ?> @@ -564,6 +603,13 @@ placeholder: "" }); + $('.select2').each(function(){ + $(this).select2({ + allowClear: true, + placeholder: "" + }); + }); + $('#owner_id').change(function() { var val = $('#owner_id').val(); @@ -620,6 +666,20 @@ $('#billing_period-' + id).val(p.billing_period); $('#price-' + id).val(p.price); $('#price_setup-' + id).val(p.price_setup); + + console.log(p.attributes); + + if(typeof p.attributes === 'object' && "termination_required" in p.attributes && p.attributes.termination_required == 1) { + console.log("termination_required"); + $('#termination_id-new-line').show(); + console.log($('#termination_id-new').val()); + $('#termination_id-new').select2({ + allowClear: true, + placeholder: "" + }); + } else { + $('#termination_id-new-line').hide(); + } }, 'json'); diff --git a/Layout/default/footer.php b/Layout/default/footer.php index fb5bd4d97..66ede0840 100644 --- a/Layout/default/footer.php +++ b/Layout/default/footer.php @@ -21,7 +21,7 @@ - + \ No newline at end of file diff --git a/Layout/default/scripts.php b/Layout/default/scripts.php deleted file mode 100644 index 55ac4647f..000000000 --- a/Layout/default/scripts.php +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Layout/default/topbar.php b/Layout/default/topbar.php index 497537ea2..533d69723 100644 --- a/Layout/default/topbar.php +++ b/Layout/default/topbar.php @@ -151,7 +151,7 @@