FEATURE #1546: add subject for contact form

This commit is contained in:
Michal Kváček
2016-04-06 17:23:46 +02:00
parent b7c70bab7e
commit 2eeb3227d3
5 changed files with 50 additions and 14 deletions
@@ -9,5 +9,7 @@ return [
'phone' => 'Contact phone',
'email' => 'E-mail',
'contactEmail' => 'E-mail, where messages from this form will be delivered',
'contactInformation' => 'Contact information'
'contactInformation' => 'Contact information',
'subject' => 'Subject',
'defaultSubject' => 'New message from contact form'
];
@@ -1,11 +1,12 @@
<?php
return [
'columnPhone' => 'Phone',
'columnAddress' => 'Address',
'columnEmail' => 'E-mail',
'columnContactEmail' => 'Contact E-mail',
'columnCompanyName' => 'Company name',
'columnGpsLat' => 'GPS Latitude',
'columnGpsLng' => 'Gps Longitude',
'columnPhone' => 'Phone',
'columnAddress' => 'Address',
'columnEmail' => 'E-mail',
'columnContactEmail' => 'Contact E-mail',
'columnSubject' => 'Subject',
'columnCompanyName' => 'Company name',
'columnGpsLat' => 'GPS Latitude',
'columnGpsLng' => 'Gps Longitude',
];
@@ -100,6 +100,12 @@
<input type="email" name="contactEmail" value="{{$page->module_settings->contactEmail or \Auth::user()->email}}" />
</label>
<label>
@lang('contactform::admin/content.subject')
<input type="text" name="subject" value="{{$page->module_settings->subject or trans('contactform::admin/content.defaultSubject')}}" />
</label>
<div class="row">
<div class="column large-6">
<label>