Update pages.html
Browse files- pages.html +4 -5
pages.html
CHANGED
@@ -468,7 +468,7 @@ editor.Blocks.add('custom-form', {
|
|
468 |
label: 'Custom Form',
|
469 |
content: `
|
470 |
<div class="form-container container">
|
471 |
-
<form id="contactForm" class="conForm">
|
472 |
<h4>КЛУБ-ПРАКТИК. 255 техник для психолога - 2024</h4>
|
473 |
<div class="form-group name-field">
|
474 |
<label for="name">Имя</label>
|
@@ -625,11 +625,10 @@ editor.on('component:update', function(component) {
|
|
625 |
link.href = href;
|
626 |
link.target = newWindow ? '_blank' : '_self';
|
627 |
} else if (component.get('type') === 'custom-form') {
|
628 |
-
const avp = component.get('attributes').avp;
|
629 |
-
const grups = component.get('attributes').grups;
|
630 |
-
const redirect = component.get('attributes').redirect;
|
631 |
const form = document.getElementById('contactForm');
|
632 |
-
|
633 |
form.setAttribute('data-avp', avp);
|
634 |
form.setAttribute('data-grups', grups);
|
635 |
form.setAttribute('data-redirect', redirect);
|
|
|
468 |
label: 'Custom Form',
|
469 |
content: `
|
470 |
<div class="form-container container">
|
471 |
+
<form id="contactForm" class="conForm" data-avp="" data-grups="" data-redirect="">
|
472 |
<h4>КЛУБ-ПРАКТИК. 255 техник для психолога - 2024</h4>
|
473 |
<div class="form-group name-field">
|
474 |
<label for="name">Имя</label>
|
|
|
625 |
link.href = href;
|
626 |
link.target = newWindow ? '_blank' : '_self';
|
627 |
} else if (component.get('type') === 'custom-form') {
|
628 |
+
const avp = component.get('attributes').avp || '';
|
629 |
+
const grups = component.get('attributes').grups || '';
|
630 |
+
const redirect = component.get('attributes').redirect || '';
|
631 |
const form = document.getElementById('contactForm');
|
|
|
632 |
form.setAttribute('data-avp', avp);
|
633 |
form.setAttribute('data-grups', grups);
|
634 |
form.setAttribute('data-redirect', redirect);
|