mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 19:31:00 -04:00
Enable iframe feature for self host users
This commit is contained in:
parent
49095c30a1
commit
2f54d1dfa3
@ -34,30 +34,29 @@
|
|||||||
|
|
||||||
{{-- Former::select('recurring_hour')->options($recurringHours) --}}
|
{{-- Former::select('recurring_hour')->options($recurringHours) --}}
|
||||||
|
|
||||||
@if (Utils::isNinja())
|
{!! Former::inline_radios('custom_invoice_link')
|
||||||
{!! Former::inline_radios('custom_invoice_link')
|
->onchange('onCustomLinkChange()')
|
||||||
->onchange('onCustomLinkChange()')
|
->label(trans('texts.invoice_link'))
|
||||||
->label(trans('texts.invoice_link'))
|
->radios([
|
||||||
->radios([
|
trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'],
|
||||||
trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'],
|
trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'],
|
||||||
trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'],
|
])->check($account->iframe_url ? 'website' : 'subdomain') !!}
|
||||||
])->check($account->iframe_url ? 'website' : 'subdomain') !!}
|
{{ Former::setOption('capitalize_translations', false) }}
|
||||||
{{ Former::setOption('capitalize_translations', false) }}
|
|
||||||
|
|
||||||
{!! Former::text('subdomain')
|
{!! Former::text('subdomain')
|
||||||
->placeholder(trans('texts.www'))
|
->placeholder(trans('texts.www'))
|
||||||
->onchange('onSubdomainChange()')
|
->onchange('onSubdomainChange()')
|
||||||
->addGroupClass('subdomain')
|
->addGroupClass('subdomain')
|
||||||
->label(' ')
|
->label(' ')
|
||||||
->help(trans('texts.subdomain_help')) !!}
|
->help(trans('texts.subdomain_help')) !!}
|
||||||
|
|
||||||
|
{!! Former::text('iframe_url')
|
||||||
|
->placeholder('https://www.example.com/invoice')
|
||||||
|
->appendIcon('question-sign')
|
||||||
|
->addGroupClass('iframe_url')
|
||||||
|
->label(' ')
|
||||||
|
->help(trans('texts.subdomain_help')) !!}
|
||||||
|
|
||||||
{!! Former::text('iframe_url')
|
|
||||||
->placeholder('https://www.example.com/invoice')
|
|
||||||
->appendIcon('question-sign')
|
|
||||||
->addGroupClass('iframe_url')
|
|
||||||
->label(' ')
|
|
||||||
->help(trans('texts.subdomain_help')) !!}
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user