Update pages.html
Browse files- pages.html +21 -1
pages.html
CHANGED
@@ -508,12 +508,20 @@ editor.Components.addType('custom-form', {
|
|
508 |
script: function(props) {
|
509 |
const form = this.querySelector('#contactForm');
|
510 |
const avpInput = form.querySelector('input[name="avp_v"]');
|
|
|
|
|
511 |
if (avpInput) {
|
512 |
avpInput.value = props.avp;
|
513 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
},
|
515 |
// Свойства, которые будут передаваться в скрипт
|
516 |
-
'script-props': ['avp'],
|
517 |
// Настройки для изменения URL отправки
|
518 |
traits: [
|
519 |
{
|
@@ -521,6 +529,18 @@ editor.Components.addType('custom-form', {
|
|
521 |
name: 'avp',
|
522 |
label: 'AVP',
|
523 |
changeProp: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
}
|
525 |
]
|
526 |
}
|
|
|
508 |
script: function(props) {
|
509 |
const form = this.querySelector('#contactForm');
|
510 |
const avpInput = form.querySelector('input[name="avp_v"]');
|
511 |
+
const grupInput = form.querySelector('input[name="grup_v"]');
|
512 |
+
const red_urlInput = form.querySelector('input[name="red_url_v"]');
|
513 |
if (avpInput) {
|
514 |
avpInput.value = props.avp;
|
515 |
}
|
516 |
+
if (grupInput) {
|
517 |
+
grupInput.value = props.grup;
|
518 |
+
}
|
519 |
+
if (red_urlInput) {
|
520 |
+
grupInput.value = props.red_url;
|
521 |
+
}
|
522 |
},
|
523 |
// Свойства, которые будут передаваться в скрипт
|
524 |
+
'script-props': ['avp', 'grup'],
|
525 |
// Настройки для изменения URL отправки
|
526 |
traits: [
|
527 |
{
|
|
|
529 |
name: 'avp',
|
530 |
label: 'AVP',
|
531 |
changeProp: true
|
532 |
+
},
|
533 |
+
{
|
534 |
+
type: 'text',
|
535 |
+
name: 'grup',
|
536 |
+
label: 'GRUP',
|
537 |
+
changeProp: true
|
538 |
+
},
|
539 |
+
{
|
540 |
+
type: 'text',
|
541 |
+
name: 'red_url',
|
542 |
+
label: 'RED_URL',
|
543 |
+
changeProp: true
|
544 |
}
|
545 |
]
|
546 |
}
|