From 6b8b59a4073a956fa349c3585f7f650fd41aa551 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 14 Feb 2016 21:13:11 +0200 Subject: [PATCH] Hide subdomain/iframe setting for self hosts --- .../views/accounts/email_settings.blade.php | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/resources/views/accounts/email_settings.blade.php b/resources/views/accounts/email_settings.blade.php index 91f70886a9fa..e6b7e291a04f 100644 --- a/resources/views/accounts/email_settings.blade.php +++ b/resources/views/accounts/email_settings.blade.php @@ -32,29 +32,30 @@ {{-- Former::select('recurring_hour')->options($recurringHours) --}} - {!! Former::inline_radios('custom_invoice_link') - ->onchange('onCustomLinkChange()') - ->label(trans('texts.invoice_link')) - ->radios([ - trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'], - trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'], - ])->check($account->iframe_url ? 'website' : 'subdomain') !!} - {{ Former::setOption('capitalize_translations', false) }} - - {!! Former::text('subdomain') - ->placeholder(trans('texts.www')) - ->onchange('onSubdomainChange()') - ->addGroupClass('subdomain') - ->label(' ') - ->help(trans('texts.subdomain_help')) !!} + @if (Utils::isNinja()) + {!! Former::inline_radios('custom_invoice_link') + ->onchange('onCustomLinkChange()') + ->label(trans('texts.invoice_link')) + ->radios([ + trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'], + trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'], + ])->check($account->iframe_url ? 'website' : 'subdomain') !!} + {{ Former::setOption('capitalize_translations', false) }} + + {!! Former::text('subdomain') + ->placeholder(trans('texts.www')) + ->onchange('onSubdomainChange()') + ->addGroupClass('subdomain') + ->label(' ') + ->help(trans('texts.subdomain_help')) !!} - {!! Former::text('iframe_url') - ->placeholder('http://www.example.com/invoice') - ->appendIcon('question-sign') - ->addGroupClass('iframe_url') - ->label(' ') - ->help(trans('texts.subdomain_help')) !!} - + {!! Former::text('iframe_url') + ->placeholder('http://www.example.com/invoice') + ->appendIcon('question-sign') + ->addGroupClass('iframe_url') + ->label(' ') + ->help(trans('texts.subdomain_help')) !!} + @endif