mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 11:04:30 -04:00
Show iframe/website feature to self hosters
This commit is contained in:
parent
cd532fd66a
commit
b64134f223
@ -851,6 +851,7 @@ $LANG = array(
|
|||||||
'dark' => 'Dark',
|
'dark' => 'Dark',
|
||||||
'industry_help' => 'Used to provide comparisons against the averages of companies of similar size and industry.',
|
'industry_help' => 'Used to provide comparisons against the averages of companies of similar size and industry.',
|
||||||
'subdomain_help' => 'Set the subdomain or display the invoice on your own website.',
|
'subdomain_help' => 'Set the subdomain or display the invoice on your own website.',
|
||||||
|
'website_help' => 'Display the invoice in an iFrame on your own website',
|
||||||
'invoice_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the invoice number.',
|
'invoice_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the invoice number.',
|
||||||
'quote_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the quote number.',
|
'quote_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the quote number.',
|
||||||
'custom_client_fields_helps' => 'Add a field when creating a client and display the label and value on the PDF.',
|
'custom_client_fields_helps' => 'Add a field when creating a client and display the label and value on the PDF.',
|
||||||
|
@ -51,12 +51,10 @@
|
|||||||
|
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
<ul class="nav nav-tabs" role="tablist" style="border: none">
|
||||||
@if (Utils::isNinja())
|
|
||||||
<li role="presentation" class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="#link" aria-controls="link" role="tab" data-toggle="tab">{{ trans('texts.link') }}</a>
|
<a href="#link" aria-controls="link" role="tab" data-toggle="tab">{{ trans('texts.link') }}</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
<li role="presentation">
|
||||||
<li role="presentation" {{ Utils::isNinja() ? '' : 'class="active"' }}>
|
|
||||||
<a href="#navigation" aria-controls="navigation" role="tab" data-toggle="tab">{{ trans('texts.navigation') }}</a>
|
<a href="#navigation" aria-controls="navigation" role="tab" data-toggle="tab">{{ trans('texts.navigation') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation">
|
<li role="presentation">
|
||||||
@ -66,11 +64,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
@if (Utils::isNinja())
|
|
||||||
<div role="tabpanel" class="tab-pane active" id="link">
|
<div role="tabpanel" class="tab-pane active" id="link">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
@if (! Utils::isReseller())
|
@if (Utils::isNinja() && ! Utils::isReseller())
|
||||||
{!! Former::inline_radios('domain_id')
|
{!! Former::inline_radios('domain_id')
|
||||||
->label(trans('texts.domain'))
|
->label(trans('texts.domain'))
|
||||||
->radios([
|
->radios([
|
||||||
@ -80,6 +77,8 @@
|
|||||||
->help($account->iframe_url ? 'domain_help_website' : 'domain_help') !!}
|
->help($account->iframe_url ? 'domain_help_website' : 'domain_help') !!}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (Utils::isNinja())
|
||||||
|
|
||||||
{!! Former::inline_radios('custom_invoice_link')
|
{!! Former::inline_radios('custom_invoice_link')
|
||||||
->onchange('onCustomLinkChange()')
|
->onchange('onCustomLinkChange()')
|
||||||
->label(trans('texts.customize'))
|
->label(trans('texts.customize'))
|
||||||
@ -95,21 +94,21 @@
|
|||||||
->addGroupClass('subdomain')
|
->addGroupClass('subdomain')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->help(trans('texts.subdomain_help')) !!}
|
->help(trans('texts.subdomain_help')) !!}
|
||||||
|
@endif
|
||||||
|
|
||||||
{!! Former::text('iframe_url')
|
{!! Former::text('iframe_url')
|
||||||
->placeholder('https://www.example.com/invoice')
|
->placeholder('https://www.example.com/invoice')
|
||||||
->appendIcon('question-sign')
|
->appendIcon('question-sign')
|
||||||
->addGroupClass('iframe_url')
|
->addGroupClass('iframe_url')
|
||||||
->label(' ')
|
->label(Utils::isNinja() ? ' ' : trans('texts.website'))
|
||||||
->help(trans('texts.subdomain_help')) !!}
|
->help(trans(Utils::isNinja() ? 'texts.subdomain_help' : 'texts.website_help')) !!}
|
||||||
|
|
||||||
{!! Former::plaintext('preview')
|
{!! Former::plaintext('preview')
|
||||||
->value($account->getSampleLink()) !!}
|
->value($account->getSampleLink()) !!}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
<div role="tabpanel" class="tab-pane" id="navigation">
|
||||||
<div role="tabpanel" class="tab-pane {{ Utils::isNinja() ? '' : 'active' }}" id="navigation">
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
{!! Former::checkbox('enable_client_portal')
|
{!! Former::checkbox('enable_client_portal')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user