mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check for pro plan for client messages
This commit is contained in:
parent
8af971872e
commit
a821032105
@ -5,7 +5,7 @@
|
|||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('head')
|
@section('head')
|
||||||
@if (config('ninja.google_maps_enabled'))
|
@if (config('ninja.google_maps_api_key'))
|
||||||
@include('partials.google_geocode')
|
@include('partials.google_geocode')
|
||||||
@endif
|
@endif
|
||||||
@stop
|
@stop
|
||||||
@ -94,7 +94,7 @@
|
|||||||
{!! Former::text('city') !!}
|
{!! Former::text('city') !!}
|
||||||
{!! Former::text('state') !!}
|
{!! Former::text('state') !!}
|
||||||
{!! Former::text('postal_code')
|
{!! Former::text('postal_code')
|
||||||
->oninput(config('ninja.google_maps_enabled') ? 'lookupPostalCode()' : '') !!}
|
->oninput(config('ninja.google_maps_api_key') ? 'lookupPostalCode()' : '') !!}
|
||||||
{!! Former::select('country_id')->addOption('','')
|
{!! Former::select('country_id')->addOption('','')
|
||||||
->fromQuery($countries, 'name', 'id') !!}
|
->fromQuery($countries, 'name', 'id') !!}
|
||||||
|
|
||||||
@ -112,7 +112,7 @@
|
|||||||
{!! Former::text('shipping_city')->label('city') !!}
|
{!! Former::text('shipping_city')->label('city') !!}
|
||||||
{!! Former::text('shipping_state')->label('state') !!}
|
{!! Former::text('shipping_state')->label('state') !!}
|
||||||
{!! Former::text('shipping_postal_code')
|
{!! Former::text('shipping_postal_code')
|
||||||
->oninput(config('ninja.google_maps_enabled') ? 'lookupPostalCode(true)' : '')
|
->oninput(config('ninja.google_maps_api_key') ? 'lookupPostalCode(true)' : '')
|
||||||
->label('postal_code') !!}
|
->label('postal_code') !!}
|
||||||
{!! Former::select('shipping_country_id')->addOption('','')
|
{!! Former::select('shipping_country_id')->addOption('','')
|
||||||
->fromQuery($countries, 'name', 'id')->label('country_id') !!}
|
->fromQuery($countries, 'name', 'id')->label('country_id') !!}
|
||||||
@ -204,9 +204,11 @@
|
|||||||
<li role="presentation">
|
<li role="presentation">
|
||||||
<a href="#notes" aria-controls="notes" role="tab" data-toggle="tab">{{ trans('texts.notes') }}</a>
|
<a href="#notes" aria-controls="notes" role="tab" data-toggle="tab">{{ trans('texts.notes') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation">
|
@if (Utils::isPro())
|
||||||
<a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">{{ trans('texts.messages') }}</a>
|
<li role="presentation">
|
||||||
</li>
|
<a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">{{ trans('texts.messages') }}</a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
<li role="presentation">
|
<li role="presentation">
|
||||||
<a href="#classify" aria-controls="classify" role="tab" data-toggle="tab">{{ trans('texts.classify') }}</a>
|
<a href="#classify" aria-controls="classify" role="tab" data-toggle="tab">{{ trans('texts.classify') }}</a>
|
||||||
</li>
|
</li>
|
||||||
@ -244,13 +246,15 @@
|
|||||||
{!! Former::textarea('public_notes')->rows(6) !!}
|
{!! Former::textarea('public_notes')->rows(6) !!}
|
||||||
{!! Former::textarea('private_notes')->rows(6) !!}
|
{!! Former::textarea('private_notes')->rows(6) !!}
|
||||||
</div>
|
</div>
|
||||||
<div role="tabpanel" class="tab-pane" id="messages">
|
@if (Utils::isPro())
|
||||||
@foreach (App\Models\Account::$customMessageTypes as $type)
|
<div role="tabpanel" class="tab-pane" id="messages">
|
||||||
{!! Former::textarea('custom_messages[' . $type . ']')
|
@foreach (App\Models\Account::$customMessageTypes as $type)
|
||||||
->placeholder($account->customMessage($type))
|
{!! Former::textarea('custom_messages[' . $type . ']')
|
||||||
->label($type) !!}
|
->placeholder($account->customMessage($type))
|
||||||
@endforeach
|
->label($type) !!}
|
||||||
</div>
|
@endforeach
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
<div role="tabpanel" class="tab-pane" id="classify">
|
<div role="tabpanel" class="tab-pane" id="classify">
|
||||||
{!! Former::select('size_id')->addOption('','')
|
{!! Former::select('size_id')->addOption('','')
|
||||||
->fromQuery($sizes, 'name', 'id') !!}
|
->fromQuery($sizes, 'name', 'id') !!}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user