mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Improved 'return to app' button logic
This commit is contained in:
parent
1dc692d578
commit
0f95799f33
@ -25,10 +25,7 @@
|
||||
@include('partials.checkout_com_payment')
|
||||
@else
|
||||
<div class="pull-right" style="text-align:right">
|
||||
@if (Session::get('trackEventAction') === '/buy_pro_plan')
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
{!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
|
||||
@elseif ($invoice->is_quote)
|
||||
@if ($invoice->is_quote)
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@if ($showApprove)
|
||||
{!! Button::success(trans('texts.approve'))->asLinkTo(URL::to('/approve/' . $invitation->invitation_key))->large() !!}
|
||||
@ -40,8 +37,11 @@
|
||||
@else
|
||||
<a href='{!! $paymentURL !!}' class="btn btn-success btn-lg">{{ trans('texts.pay_now') }}</a>
|
||||
@endif
|
||||
@else
|
||||
@else
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@if ($account->isNinjaAccount())
|
||||
{!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
|
Loading…
Reference in New Issue
Block a user