DmitrMakeev commited on
Commit
46acfc0
·
verified ·
1 Parent(s): 80728e2

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. js/rus/rus.js +3 -111
js/rus/rus.js CHANGED
@@ -217,13 +217,15 @@ editor.Blocks.add('avp_grup_v1-settings-block-block', {
217
 
218
 
219
 
 
 
220
 
221
 
222
 
223
  editor.Components.addType('avp_form_v1-settings-block', {
224
  model: {
225
  defaults: {
226
- content: '<div class="containerForm"><div class="header-section"><div class="circle-image-container"><img src="path/to/your/image.jpg" alt="Круглая картинка" class="circle-image"></div><h2>Заголовок формы</h2><p>Подзаголовок формы</p></div><form id="contactForm"><div class="form-group"><label for="name">Имя</label><input type="text" id="name" name="name" required></div><div class="form-group"><label for="email">Почта</label><input type="email" id="email" name="email" required></div><div class="form-group"><label for="phone">Телефон</label><input type="tel" id="phone" name="phone" required></div><div class="form-group"><label for="message">Дополнительная информация</label><textarea id="message" name="message" rows="4" placeholder="Введите ваш текст здесь..."></textarea></div><div class="form-group"><label>Выберите тариф</label><div class="radio-check"><input type="radio" id="option1" name="options" value="БИЗНЕС - 69 970р." required checked> <!-- Выбрана по умолчанию --><label for="option1">БИЗНЕС - 69 970р.</label></div><div class="radio-check"><input type="radio" id="option2" name="options" value="PREMIUM - 89 970р." required><label for="option2">PREMIUM - 89 970р.</label></div><div class="radio-check"><input type="radio" id="option3" name="options" value="VIP - 149 990р." required><label for="option3">VIP - 149 990р.</label></div></div><div class="checkbox-check"><input type="checkbox" id="newsletter_conf" name="newsletter_conf" required><label for="newsletter_conf">Согласие с <a href="#" id="usagePolicyLink">Условиями использования</a> и <a href="#" id="privacyPolicyLink">Политикой конфиденциальности</a></label></div><div class="checkbox-check"><input type="checkbox" id="newsletter_email" name="newsletter_email" required><label for="newsletter_email">Согласие на email рассылку</label></div><button type="submit" class="btn-primary">ПЕРЕЙТИ К ОПЛАТЕ</button></form></div>',
227
  script: function(props) {
228
  window.avp = props.avp;
229
  window.grup = props.grup;
@@ -310,116 +312,6 @@ editor.Blocks.add('avp_form_v1-settings-block-block', {
310
  category: 'Автопилот - ВК', // Добавляем категорию "Автопилот - ВК"
311
  });
312
 
313
- // Создаем блок стилей плеера
314
- editor.CssComposer.addRules(`
315
- .containerForm {
316
- width: 100%;
317
- max-width: 600px;
318
- margin: 0 auto;
319
- padding: 20px;
320
- background-color: #f5faff;
321
- border-radius: 8px;
322
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
323
- }
324
-
325
- .header-section {
326
- text-align: center;
327
- margin-bottom: 20px;
328
- }
329
-
330
- .circle-image {
331
- display: inline-block;
332
- border-radius: 50%;
333
- overflow: hidden;
334
- width: 150px;
335
- height: 150px;
336
- margin-bottom: 10px;
337
- }
338
-
339
- .circle-image img {
340
- width: 100%;
341
- height: 100%;
342
- object-fit: cover;
343
- }
344
-
345
- .form-group {
346
- margin-bottom: 20px;
347
- }
348
-
349
- .form-group label {
350
- display: block;
351
- margin-bottom: 5px;
352
- font-weight: bold;
353
- color: #333;
354
- }
355
-
356
- .form-group input,
357
- .form-group select,
358
- .form-group textarea {
359
- width: 100%;
360
- padding: 10px;
361
- border: 1px solid #ccc;
362
- border-radius: 4px;
363
- font-size: 16px;
364
- }
365
-
366
- .radio-check {
367
- margin-bottom: 15px;
368
- display: flex;
369
- align-items: center;
370
- }
371
-
372
- .checkbox-check {
373
- margin-bottom: 15px;
374
- display: flex;
375
- align-items: center;
376
- }
377
-
378
- .radio-check input[type="radio"],
379
- .checkbox-check input[type="checkbox"] {
380
- margin-right: 10px;
381
- width: 15px; /* Применяем ширину, как в вашем примере */
382
- }
383
-
384
- .radio-check label,
385
- .checkbox-check label {
386
- font-size: 14px;
387
- color: #555;
388
- }
389
-
390
- .btn-primary {
391
- display: inline-flex;
392
- margin: 10px;
393
- text-decoration: none;
394
- position: relative;
395
- font-size: 20px;
396
- line-height: 20px;
397
- padding: 12px 30px;
398
- color: #FFF;
399
- font-weight: bold;
400
- text-transform: uppercase;
401
- font-family: 'Roboto', Тahoma, sans-serif;
402
- background: #337AB7;
403
- cursor: pointer;
404
- border: 2px solid #BFE2FF;
405
- outline: 1px solid;
406
- outline-color: #337AB7;
407
- outline-offset: 0px;
408
- text-shadow: none;
409
- transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
410
- }
411
-
412
- .btn-primary:hover,
413
- .btn-primary:active,
414
- .btn-primary:focus {
415
- box-shadow: inset 0 0 20px #BFE2FF;
416
- outline-color: rgba(255, 255, 255, 0);
417
- outline-offset: 15px;
418
- color: #FFF;
419
- }
420
- `);
421
-
422
-
423
 
424
 
425
 
 
217
 
218
 
219
 
220
+
221
+
222
 
223
 
224
 
225
  editor.Components.addType('avp_form_v1-settings-block', {
226
  model: {
227
  defaults: {
228
+ content: '<div id="set_avp1"></div>',
229
  script: function(props) {
230
  window.avp = props.avp;
231
  window.grup = props.grup;
 
312
  category: 'Автопилот - ВК', // Добавляем категорию "Автопилот - ВК"
313
  });
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
 
316
 
317