diff --git a/modules/ContactForm/Providers/ContactFormServiceProvider.php b/modules/ContactForm/Providers/ContactFormServiceProvider.php index 6bb4e7c4..d6c77bc0 100644 --- a/modules/ContactForm/Providers/ContactFormServiceProvider.php +++ b/modules/ContactForm/Providers/ContactFormServiceProvider.php @@ -1,12 +1,9 @@ app->make('registerWidget'); $registrator->register(Address::class, null, ContactForm::getModuleId()); + $registrator->register(Form::class, null, ContactForm::getModuleId()); } } diff --git a/modules/ContactForm/Resources/lang/en/admin/widgets.php b/modules/ContactForm/Resources/lang/en/admin/widgets.php index 3e09aa89..3d387a0d 100644 --- a/modules/ContactForm/Resources/lang/en/admin/widgets.php +++ b/modules/ContactForm/Resources/lang/en/admin/widgets.php @@ -9,7 +9,7 @@ return [ 'form' => [ 'name' => 'Contact form', 'description' => 'Display small contact form anywhere on website.', - 'new' => 'New contact block widget' + 'new' => 'New contact form widget' ], 'noContactForms' => 'You have not created any contact form. Try to create one before creating this widget.', 'selectContactForm' => 'Select contact form' diff --git a/modules/ContactForm/Resources/views/admin/widgets/form/edit.blade.php b/modules/ContactForm/Resources/views/admin/widgets/form/edit.blade.php new file mode 100644 index 00000000..b3b0b98c --- /dev/null +++ b/modules/ContactForm/Resources/views/admin/widgets/form/edit.blade.php @@ -0,0 +1,19 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('contactform::admin/widgets.address.edit')) +@section('pageDescription', $widget->description) + +@section('content') + + @if(!count($forms)) +