Add firstname field to home and contact forms
This commit is contained in:
15
.vscode/ftp-kr.sync.cache.json
vendored
15
.vscode/ftp-kr.sync.cache.json
vendored
@@ -36,7 +36,20 @@
|
||||
"modified": false
|
||||
},
|
||||
"templates_user": {
|
||||
"search": {},
|
||||
"search": {
|
||||
"search-form.php": {
|
||||
"type": "-",
|
||||
"size": 914,
|
||||
"lmtime": 1747942992942,
|
||||
"modified": false
|
||||
},
|
||||
"search-results.php": {
|
||||
"type": "-",
|
||||
"size": 3385,
|
||||
"lmtime": 0,
|
||||
"modified": false
|
||||
}
|
||||
},
|
||||
"webinar-promotraffic-form.php": {
|
||||
"type": "-",
|
||||
"size": 18705,
|
||||
|
||||
@@ -31,6 +31,9 @@ if ( \S::get('action') == 'home_page_form_send' )
|
||||
[
|
||||
'name' => 'email',
|
||||
'value' => $_POST['email'],
|
||||
], [
|
||||
'name' => 'firstname',
|
||||
'value' => $_POST['firstname'],
|
||||
],
|
||||
[
|
||||
'name' => 'phone',
|
||||
@@ -129,6 +132,10 @@ if ( \S::get('action') == 'home_page_form_send' )
|
||||
<div class="f-row">
|
||||
<p><strong class="mb-3">Podaj email, aby otrzymać wycenę:</strong></p>
|
||||
|
||||
<div class="tile">
|
||||
<input type="firstname" name="firstname" id="form-firstname" placeholder="" required>
|
||||
<label for="form-email">Imię*</label>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<input type="email" name="email" id="form-email" placeholder="" required>
|
||||
<label for="form-email">Email*</label>
|
||||
|
||||
@@ -29,6 +29,9 @@ if (\S::get('action') == 'pages_form_send') {
|
||||
[
|
||||
'name' => 'email',
|
||||
'value' => $_POST['email'],
|
||||
], [
|
||||
'name' => 'firstname',
|
||||
'value' => $_POST['firstname'],
|
||||
],
|
||||
[
|
||||
'name' => 'phone',
|
||||
@@ -127,6 +130,10 @@ if (\S::get('action') == 'pages_form_send') {
|
||||
<div class="f-row">
|
||||
<p><strong class="mb-3">Podaj email, aby otrzymać wycenę:</strong></p>
|
||||
|
||||
<div class="tile">
|
||||
<input type="firstname" name="firstname" id="form-firstname" placeholder="" required>
|
||||
<label for="form-email">Imię*</label>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<input type="email" name="email" id="form-email" placeholder="" required>
|
||||
<label for="form-email">Email*</label>
|
||||
@@ -176,7 +183,7 @@ if (\S::get('action') == 'pages_form_send') {
|
||||
content: 'Wyrażam zgodę na otrzymywanie innych powiadomień od firmy Zaufane.pl. Aby zapewnić Państwu żądane treści, musimy przechowywać i przetwarzać Państwa dane osobowe. Jeśli wyrażają Państwo zgodę na przechowywanie Państwa danych osobowych w tym celu, prosimy zaznaczyć poniższe pole wyboru.',
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
$('body').on('click', '#info-for-checkbox-2', function (e) {
|
||||
e.preventDefault()
|
||||
$.alert({
|
||||
|
||||
Reference in New Issue
Block a user