FIX: fix template path name for contact form
This commit is contained in:
@@ -61,9 +61,7 @@ class ContactFormServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
$sourcePath = __DIR__ . '/../Resources/views';
|
$sourcePath = __DIR__ . '/../Resources/views';
|
||||||
|
|
||||||
$this->publishes([
|
$this->publishes([$sourcePath => $viewPath]);
|
||||||
$sourcePath => $viewPath
|
|
||||||
]);
|
|
||||||
|
|
||||||
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
||||||
return $path . '/modules/contactform';
|
return $path . '/modules/contactform';
|
||||||
@@ -80,7 +78,7 @@ class ContactFormServiceProvider extends ServiceProvider
|
|||||||
$registrator->setModuleId(call_user_func([config('contactform.handler'), 'getModuleId']));
|
$registrator->setModuleId(call_user_func([config('contactform.handler'), 'getModuleId']));
|
||||||
|
|
||||||
// register path with current template name
|
// register path with current template name
|
||||||
$registrator->register(config('app.theme'), 'contactform::admin.templatePath');
|
$registrator->register(config('app.theme'), 'contactform::admin/adminMenu.templatePath');
|
||||||
} catch (InvalidArgumentException $e) {
|
} catch (InvalidArgumentException $e) {
|
||||||
// ignore this exception
|
// ignore this exception
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'contactForm' => 'Contact form',
|
'contactForm' => 'Contact form',
|
||||||
'new' => 'New',
|
'new' => 'New',
|
||||||
'overview' => 'All contact forms',
|
'overview' => 'All contact forms',
|
||||||
'sentMessages' => 'Messages'
|
'sentMessages' => 'Messages',
|
||||||
|
'templatePath' => 'Contact form'
|
||||||
];
|
];
|
||||||
Reference in New Issue
Block a user