mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Custom js and css in client portal (#3638)
This commit is contained in:
parent
7454dfbb2f
commit
272109f699
@ -226,6 +226,11 @@ class CompanySettings extends BaseSettings
|
||||
public $all_pages_footer = false;
|
||||
public $pdf_variables = '';
|
||||
|
||||
public $portal_custom_head = '';
|
||||
public $portal_custom_css = '';
|
||||
public $portal_custom_footer = '';
|
||||
public $portal_custom_js = '';
|
||||
|
||||
public static $casts = [
|
||||
'portal_design_id' => 'string',
|
||||
'late_fee_endless_percent' => 'float',
|
||||
@ -385,6 +390,10 @@ class CompanySettings extends BaseSettings
|
||||
'design' => 'string',
|
||||
'website' => 'string',
|
||||
'pdf_variables' => 'object',
|
||||
'portal_custom_head' => 'string',
|
||||
'portal_custom_css' => 'string',
|
||||
'portal_custom_footer' => 'string',
|
||||
'portal_custom_js' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -56,9 +56,14 @@
|
||||
|
||||
<link rel="canonical" href="{{ config('ninja.site_url') }}/{{ request()->path() }}"/>
|
||||
|
||||
<style>
|
||||
{!! $client->getSetting('portal_custom_css') !!}
|
||||
</style>
|
||||
|
||||
{{-- Feel free to push anything to header using @push('header') --}}
|
||||
@stack('head')
|
||||
|
||||
{!! $client->getSetting('portal_custom_head') !!}
|
||||
</head>
|
||||
|
||||
<body class="antialiased">
|
||||
@ -70,6 +75,12 @@
|
||||
<footer>
|
||||
@yield('footer')
|
||||
@stack('footer')
|
||||
|
||||
{!! $client->getSetting('portal_custom_footer') !!}
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
{!! $client->getSetting('portal_custom_js') !!}
|
||||
</script>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user