mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hide cancellation button from recurring invoices
This commit is contained in:
parent
bccdf630ad
commit
f525319202
@ -77,30 +77,32 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(is_null($invoice->subscription_id) || optional($invoice->subscription)->allow_cancellation)
|
{{-- @if(is_null($invoice->subscription_id) || optional($invoice->subscription)->allow_cancellation) --}}
|
||||||
<div class="bg-white shadow sm:rounded-lg mt-4">
|
{{-- INV2-591 --}}
|
||||||
<div class="px-4 py-5 sm:p-6">
|
@if(false)
|
||||||
<div class="sm:flex sm:items-start sm:justify-between">
|
<div class="bg-white shadow sm:rounded-lg mt-4 hidden">
|
||||||
<div>
|
<div class="px-4 py-5 sm:p-6">
|
||||||
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
<div class="sm:flex sm:items-start sm:justify-between">
|
||||||
{{ ctrans('texts.cancellation') }}
|
<div>
|
||||||
</h3>
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
||||||
<div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
|
{{ ctrans('texts.cancellation') }}
|
||||||
<p translate>
|
</h3>
|
||||||
{{ ctrans('texts.about_cancellation') }}
|
<div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
|
||||||
</p>
|
<p translate>
|
||||||
</div>
|
{{ ctrans('texts.about_cancellation') }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-5 sm:mt-0 sm:ml-6 sm:flex-shrink-0 sm:flex sm:items-center">
|
</div>
|
||||||
<div class="inline-flex rounded-md shadow-sm" x-data="{ open: false }">
|
<div class="mt-5 sm:mt-0 sm:ml-6 sm:flex-shrink-0 sm:flex sm:items-center">
|
||||||
<button class="button button-danger" translate @click="open = true">Request Cancellation
|
<div class="inline-flex rounded-md shadow-sm" x-data="{ open: false }">
|
||||||
</button>
|
<button class="button button-danger" translate @click="open = true">Request Cancellation
|
||||||
@include('portal.ninja2020.recurring_invoices.includes.modals.cancellation')
|
</button>
|
||||||
</div>
|
@include('portal.ninja2020.recurring_invoices.includes.modals.cancellation')
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($invoice->subscription && $invoice->subscription->allow_plan_changes)
|
@if($invoice->subscription && $invoice->subscription->allow_plan_changes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user