mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 16:40:56 -04:00
Enable iframe feature for self host users
This commit is contained in:
parent
49095c30a1
commit
2f54d1dfa3
@ -10,7 +10,7 @@
|
|||||||
</style>
|
</style>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@parent
|
@parent
|
||||||
@include('accounts.nav', ['selected' => ACCOUNT_EMAIL_SETTINGS, 'advanced' => true])
|
@include('accounts.nav', ['selected' => ACCOUNT_EMAIL_SETTINGS, 'advanced' => true])
|
||||||
|
|
||||||
@ -29,35 +29,34 @@
|
|||||||
<div class="panel-body form-padding-right">
|
<div class="panel-body form-padding-right">
|
||||||
{!! Former::checkbox('pdf_email_attachment')->text(trans('texts.enable')) !!}
|
{!! Former::checkbox('pdf_email_attachment')->text(trans('texts.enable')) !!}
|
||||||
{!! Former::checkbox('document_email_attachment')->text(trans('texts.enable')) !!}
|
{!! Former::checkbox('document_email_attachment')->text(trans('texts.enable')) !!}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{-- 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>
|
||||||
|
|
||||||
@ -66,7 +65,7 @@
|
|||||||
<h3 class="panel-title">{!! trans('texts.email_design') !!}</h3>
|
<h3 class="panel-title">{!! trans('texts.email_design') !!}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body form-padding-right">
|
<div class="panel-body form-padding-right">
|
||||||
|
|
||||||
{!! Former::select('email_design_id')
|
{!! Former::select('email_design_id')
|
||||||
->appendIcon('question-sign')
|
->appendIcon('question-sign')
|
||||||
->addGroupClass('email_design_id')
|
->addGroupClass('email_design_id')
|
||||||
@ -79,7 +78,7 @@
|
|||||||
|
|
||||||
@if (Utils::isNinja())
|
@if (Utils::isNinja())
|
||||||
{!! Former::checkbox('enable_email_markup')
|
{!! Former::checkbox('enable_email_markup')
|
||||||
->text(trans('texts.enable') .
|
->text(trans('texts.enable') .
|
||||||
'<a href="'.EMAIL_MARKUP_URL.'" target="_blank" title="'.trans('texts.learn_more').'">' . Icon::create('question-sign') . '</a> ')
|
'<a href="'.EMAIL_MARKUP_URL.'" target="_blank" title="'.trans('texts.learn_more').'">' . Icon::create('question-sign') . '</a> ')
|
||||||
->help(trans('texts.enable_email_markup_help')) !!}
|
->help(trans('texts.enable_email_markup_help')) !!}
|
||||||
@endif
|
@endif
|
||||||
@ -107,7 +106,7 @@
|
|||||||
<center>
|
<center>
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
var iframe = document.getElementById('invoiceIFrame');
|
var iframe = document.getElementById('invoiceIFrame');
|
||||||
iframe.src = '{{ SITE_URL }}/view/'
|
iframe.src = '{{ SITE_URL }}/view/'
|
||||||
+ window.location.search.substring(1);
|
+ window.location.search.substring(1);
|
||||||
</script></pre>
|
</script></pre>
|
||||||
<p>{{ trans('texts.iframe_url_help2') }}</p>
|
<p>{{ trans('texts.iframe_url_help2') }}</p>
|
||||||
@ -186,7 +185,7 @@
|
|||||||
$('#designHelpModal').modal('show');
|
$('#designHelpModal').modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
onCustomLinkChange();
|
onCustomLinkChange();
|
||||||
|
|
||||||
$('#subdomain').change(function() {
|
$('#subdomain').change(function() {
|
||||||
@ -198,4 +197,4 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@stop
|
@stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user