From 0357b041e1e6ae23ba2e526f7b7d614edbbc4b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 17 Nov 2020 16:56:36 +0100 Subject: [PATCH 1/6] adapt payment & approve views for new terms component --- resources/views/portal/ninja2020/invoices/payment.blade.php | 2 +- resources/views/portal/ninja2020/quotes/approve.blade.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/views/portal/ninja2020/invoices/payment.blade.php b/resources/views/portal/ninja2020/invoices/payment.blade.php index 3295cbd72b..66ecc2a0ec 100644 --- a/resources/views/portal/ninja2020/invoices/payment.blade.php +++ b/resources/views/portal/ninja2020/invoices/payment.blade.php @@ -143,7 +143,7 @@ -@include('portal.ninja2020.invoices.includes.terms') +@include('portal.ninja2020.invoices.includes.terms', ['entities' => $invoices, 'entity_type' => ctrans('texts.invoice')]) @include('portal.ninja2020.invoices.includes.signature') @endsection diff --git a/resources/views/portal/ninja2020/quotes/approve.blade.php b/resources/views/portal/ninja2020/quotes/approve.blade.php index cce15f39fc..5e6c31a81b 100644 --- a/resources/views/portal/ninja2020/quotes/approve.blade.php +++ b/resources/views/portal/ninja2020/quotes/approve.blade.php @@ -2,7 +2,8 @@ @section('meta_title', ctrans('texts.approve')) @push('head') - + + @endpush @@ -14,7 +15,9 @@ @foreach($quotes as $quote) @endforeach + +
@@ -78,6 +81,7 @@
+ @include('portal.ninja2020.invoices.includes.terms', ['entities' => $quotes, 'entity_type' => ctrans('texts.quote')]) @include('portal.ninja2020.invoices.includes.signature') @endsection From d9c430423ad279b0a3ba71f13180e9bfcf24eb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 17 Nov 2020 16:56:44 +0100 Subject: [PATCH 2/6] accept entities in array --- .../invoices/includes/terms.blade.php | 46 ++++++++----------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/resources/views/portal/ninja2020/invoices/includes/terms.blade.php b/resources/views/portal/ninja2020/invoices/includes/terms.blade.php index 3140171c4c..3c28674347 100644 --- a/resources/views/portal/ninja2020/invoices/includes/terms.blade.php +++ b/resources/views/portal/ninja2020/invoices/includes/terms.blade.php @@ -1,46 +1,38 @@ -