From d515126a5b13bac4fac525f2264e19f341dfd33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristia=CC=81n=20Feldsam?= Date: Mon, 29 Apr 2019 20:43:42 +0200 Subject: [PATCH] Recurring quotes list and Invoices list - show recurring invoices dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristián Feldsam --- resources/views/list.blade.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php index 519bf3f6e344..129a91519d19 100644 --- a/resources/views/list.blade.php +++ b/resources/views/list.blade.php @@ -147,6 +147,27 @@ }); }); + @elseif (($entityType == ENTITY_RECURRING_QUOTE || $entityType == ENTITY_INVOICE) && ! isset($clientId)) + + @if (Auth::user()->can('createEntity', ENTITY_RECURRING_INVOICE)) + {!! DropdownButton::normal(trans('texts.recurring_invoices')) + ->withAttributes(['class'=>'recurringDropdown']) + ->withContents([ + ['label' => trans('texts.new_recurring_invoice'), 'url' => url('/recurring_invoices/create')], + ] + )->split() !!} + @else + {!! DropdownButton::normal(trans('texts.recurring_invoices')) + ->withAttributes(['class'=>'recurringDropdown']) + ->split() !!} + @endif + @elseif ($entityType == ENTITY_TASK) {!! Button::normal(trans('texts.kanban'))->asLinkTo(url('/tasks/kanban' . (! empty($clientId) ? ('/' . $clientId . (! empty($projectId) ? '/' . $projectId : '')) : '')))->appendIcon(Icon::create('th')) !!} {!! Button::normal(trans('texts.time_tracker'))->asLinkTo('javascript:openTimeTracker()')->appendIcon(Icon::create('time')) !!}