From f51dd9458c9da4903e2a85ca2fb8daf2e7b5a2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Sun, 29 Oct 2017 21:45:01 +0100 Subject: [PATCH] FEATURE: change default email template --- .../ContactForm/Resources/lang/cs/sent.php | 9 ++++ .../views/admin/emailDetail.blade.php | 21 ++++++++++ .../Resources/views/admin/sent.blade.php | 42 +++++++++++++++++++ .../views/visitor/emails/default.blade.php | 3 -- 4 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 modules/ContactForm/Resources/lang/cs/sent.php create mode 100644 modules/ContactForm/Resources/views/admin/emailDetail.blade.php create mode 100644 modules/ContactForm/Resources/views/admin/sent.blade.php diff --git a/modules/ContactForm/Resources/lang/cs/sent.php b/modules/ContactForm/Resources/lang/cs/sent.php new file mode 100644 index 00000000..fdadd87d --- /dev/null +++ b/modules/ContactForm/Resources/lang/cs/sent.php @@ -0,0 +1,9 @@ + 'Od', + 'to' => 'Komu', + 'subject' => 'Předmět', + 'createdAt' => 'Odesláno', + 'overview' => 'Přehled přijatých e-mailů', + 'detail' => 'Detail e-mailu' +]; \ No newline at end of file diff --git a/modules/ContactForm/Resources/views/admin/emailDetail.blade.php b/modules/ContactForm/Resources/views/admin/emailDetail.blade.php new file mode 100644 index 00000000..2ae0e338 --- /dev/null +++ b/modules/ContactForm/Resources/views/admin/emailDetail.blade.php @@ -0,0 +1,21 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('contactform::sent.detail')) + +@section('headerButtons') + + @endsection + +@section('content') +
+
+

{{$email->subject}}

+ +

+ {{$email->message}} +

+
+ +
+@endsection \ No newline at end of file diff --git a/modules/ContactForm/Resources/views/admin/sent.blade.php b/modules/ContactForm/Resources/views/admin/sent.blade.php new file mode 100644 index 00000000..3e0e2b2d --- /dev/null +++ b/modules/ContactForm/Resources/views/admin/sent.blade.php @@ -0,0 +1,42 @@ +@extends('admin.layoutWithNavigation') + +@section('pageHeading', @trans('contactform::sent.overview')) + +@section('content') + @if (count($emails)) +
+
+ + + + + + + + + @foreach($emails as $email) + is_new) class="bold" @endif > + + + + + + + @endforeach +
@lang('contactform::sent.from')@lang('contactform::sent.to')@lang('contactform::sent.createdAt')@lang('contactform::sent.subject')
{{$email->from}}{{$email->to}}@date($email->created_at){{$email->subject}} + + + +
+
+ +
+ + @else +
+ @lang('contactform::sent.noEntries') +
+ @endif +@stop \ No newline at end of file diff --git a/modules/ContactForm/Resources/views/visitor/emails/default.blade.php b/modules/ContactForm/Resources/views/visitor/emails/default.blade.php index 31ff49bd..41ec64cc 100644 --- a/modules/ContactForm/Resources/views/visitor/emails/default.blade.php +++ b/modules/ContactForm/Resources/views/visitor/emails/default.blade.php @@ -1,4 +1 @@ -

-Ahoj {{$data->name}} -

{{$data->message}} \ No newline at end of file