Commit 519bcc27 authored by ubrwtpcf's avatar ubrwtpcf

Цвета, настройки отправления

parent 60b4e527
node-modules
node_modules
*.css.map
......@@ -133,8 +133,6 @@
cursor: pointer; }
.radon-callback-webform .close-btn:hover {
background: url("../images/icon-close-pressed.png") no-repeat; }
.radon-callback-webform .js-form-item-fz152-agreement {
display: none; }
.radon-callback-webform .ajax-progress.ajax-progress-throbber {
display: none !important; }
.radon-callback-webform .throbber {
......
{"version":3,"sources":["_colors.scss","callback.scss"],"names":[],"mappings":"AAaE;EACE,oBAbY,EA2Bb;EAfD;IAGI,0BAA0C;IAC1C,iCAhBU,EAsBX;IAVH;MAMM,iCAlBQ;MAmBR,gBAAe;MACf,0BAAyC,EAC1C;EATL;IAYI,0BAA0C;IAC1C,0BAA4C,EAC7C;;AAdH;EACE,oBAZW,EA0BZ;EAfD;IAGI,0BAA0C;IAC1C,iCAfS,EAqBV;IAVH;MAMM,iCAjBO;MAkBP,gBAAe;MACf,0BAAyC,EAC1C;EATL;IAYI,0BAA0C;IAC1C,0BAA4C,EAC7C;;AAdH;EACE,oBAXgB,EAyBjB;EAfD;IAGI,0BAA0C;IAC1C,iCAdc,EAoBf;IAVH;MAMM,iCAhBY;MAiBZ,gBAAe;MACf,0BAAyC,EAC1C;EATL;IAYI,0BAA0C;IAC1C,0BAA4C,EAC7C;;AAdH;EACE,oBAVU,EAwBX;EAfD;IAGI,0BAA0C;IAC1C,iCAbQ,EAmBT;IAVH;MAMM,iCAfM;MAgBN,gBAAe;MACf,0BAAyC,EAC1C;EATL;IAYI,0BAA0C;IAC1C,0BAA4C,EAC7C;;AAdH;EACE,oBATa,EAuBd;EAfD;IAGI,0BAA0C;IAC1C,iCAZW,EAkBZ;IAVH;MAMM,iCAdS;MAeT,gBAAe;MACf,0BAAyC,EAC1C;EATL;IAYI,0BAA0C;IAC1C,0BAA4C,EAC7C;;AAdH;EACE,iBARS,EAsBV;EAfD;IAGI,wBAA0C;IAC1C,8BAXO,EAiBR;IAVH;MAMM,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ACZ,gBAAe;MACf,2BAA0B;MAC1B,oBA1EoB;MA2EpB,2BAA0B;MAC1B,yCAAwC;MACxC,iCAAgC;MAChC,iBAAgB;MAChB,YAAW,EAOZ;MApFL;QA+EQ,WAAU,EACX;MAhFP;QAkFQ,gBAAe,EAChB;EAnFP;IAuFI,gBAAe;IACf,iBAAgB,EACjB;EAzFH;IA2FI,UAAS;IACT,sBAAqB;IACrB,iBAAgB;IAChB,eAAc,EACf;EA/FH;IAiGI,aAAY;IACZ,mBAAkB,EACnB;EAnGH;IAqGI,cAAY,EACb;EAtGH;IAwGI,aAAW;IACX,gBAAe;IACf,mBAAiB;IACjB,gBAAc,EAQf;IAnHH;MA8GM,kBAAiB,EAClB;IA/GL;MAiHM,oBAAkB,EACnB;;AAGL;EAEI,cAAY,EACb;;AAEH;EACE,wwDAAuwD;EACvwD,mCAAkC;EAClC,6BAA4B;EAC5B,gBAAc;EACd,YAAW;EACX,aAAY;EACZ,oBAAmB,EACpB","file":"callback.css","sourcesContent":["$colors: (\n green: #30c51c,\n blue: #198bbe,\n turquoise: #03a6b2,\n red: #c9270f,\n orange: #f3841a,\n black: #000,\n purple: #9e0e83,\n gray: #787878,\n);\n\n\n@each $color, $color_value in $colors {\n .radon-callback-webform.color--#{$color} {\n background: $color_value;\n .webform-button--submit {\n background-color: darken($color_value,10%);\n border-bottom: 1px solid $color_value;\n &:hover {\n border-bottom: 2px solid $color_value;\n margin-top: 9px;\n background-color: darken($color_value,7%);\n }\n }\n &.circle {\n background-color: darken($color_value, 5%);\n border: 3px solid lighten($color_value, 10%);\n }\n }\n}\n","@import \"colors\";\n\n$radon_callback_width: 370px;\n$input-border-radius: 20px;\n\n.radon-callback-webform {\n box-sizing: border-box;\n color: #000;\n width: $radon_callback_width;\n height: 51px;\n bottom: 25px;\n right: 16px;\n position: fixed;\n padding: 0 9px;\n border-radius: 30px;\n box-shadow: 0 0 1.2em rgba(0,0,0,0.4);\n z-index:999;\n -webkit-transition: all .25s ease-out 0s;\n transition: all .25s ease-out 0s;\n &.with-error {\n height:65px;\n width: 390px;\n padding: 0 21px;\n }\n .close-btn {\n background: url('../images/icon-close.png') no-repeat;\n background-size: contain;\n width: 16px;\n height: 16px;\n position: absolute;\n right: -14px;\n top: -5px;\n cursor:pointer;\n &:hover {\n background: url('../images/icon-close-pressed.png') no-repeat;\n }\n }\n .js-form-item-fz152-agreement {\n display: none;\n }\n .ajax-progress.ajax-progress-throbber {\n display:none !important;\n }\n .throbber {\n display: none;\n }\n .form-item {\n padding: 0;\n margin: 10px 0;\n }\n .form-type-tel {\n display: inline-block;\n margin-right: 5px;\n float:left;\n input.form-tel {\n width: 190px;\n border: 1px solid #ccc;\n border-radius: $input-border-radius;\n padding: 6px;\n padding-left: 52px;\n font-size: 13px;\n }\n }\n .form-actions {\n display: inline-block;\n height:51px;\n margin:0;\n padding: 0;\n\n .webform-button--submit {\n background-image: url(\"data:image/svg+xml;base64,CgkJPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIiB2ZXJzaW9uPSIxLjEiIGNsYXNzPSJyYy1yZXNldCI+CgkJCTxwYXRoIGZpbGw9IiNmZmYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQyLjczNDI3OSwgNDEuNDk5NDQ5KSByb3RhdGUoMTIwLjAwMDAwMCkgdHJhbnNsYXRlKC00Mi43MzQyNzksIC00MS40OTk0NDkpIiBkPSJNMjcuOSA1MC4yQzI2LjYgNTAuOSAyNiA1MC45IDI1IDQ5LjcgMjQuNyA0OS40IDI0LjggNDkuMSAyNS4xIDQ4LjkgMjggNDcuMyAyOS44IDQ2LjIgMzIuMyA0NC44IDMyLjUgNDQuNiAzMi44IDQ0LjUgMzMuMSA0NC41IDMzLjMgNDQuNCAzMy42IDQ0LjYgMzMuNyA0NC43IDM0LjEgNDUuNiAzMy42IDQ2LjkgMzIuNyA0Ny40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gNDUuMiA2Mi40IDQ1LjggNjEuOSA0Ni45IDYxLjcgNDcuNSA2MS42IDQ3LjggNjEuMiA0OCA2MC45IDQ3LjlaIiBjbGFzcz0icmMtcmVzZXQiPjwvcGF0aD4KCQk8L3N2Zz4KCQ==\");\n background-position: -3px -4px;\n background-repeat: no-repeat;\n background-size: 35px;\n border: none;\n font-size: 12px;\n padding: 8px 40px 8px 52px;\n border-radius: $input-border-radius;\n text-transform: capitalize;\n -webkit-transition: all .01s ease-out 0s;\n transition: all .01s ease-out 0s;\n margin-top: 10px;\n color: #fff;\n &:focus {\n outline: 0;\n }\n &:hover {\n margin-top: 9px;\n }\n }\n }\n .webform-confirmation {\n margin-top: 6px;\n margin-left: 5px;\n }\n .webform-confirmation__message, .webform-confirmation__back {\n margin: 0;\n display: inline-block;\n font-size: 0.9em;\n padding: 9px 0;\n }\n .webform-confirmation__message {\n color: white;\n margin-right: 10px;\n }\n .messages {\n display:none;\n }\n .form-item--error-message {\n color:white;\n font-size: 15px;\n position:absolute;\n margin-top:3px;\n &:before {\n //display:none;\n margin-right: 3px;\n }\n strong {\n font-weight:normal;\n }\n }\n}\n.radon-callback-webform.hide-elements {\n input, div {\n display:none;\n }\n}\n.radon-callback-webform.circle {\n background-image: url(\"data:image/svg+xml;base64,CgkJPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIiB2ZXJzaW9uPSIxLjEiIGNsYXNzPSJyYy1yZXNldCI+CgkJCTxwYXRoIGZpbGw9IiNmZmYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQyLjczNDI3OSwgNDEuNDk5NDQ5KSByb3RhdGUoMTIwLjAwMDAwMCkgdHJhbnNsYXRlKC00Mi43MzQyNzksIC00MS40OTk0NDkpIiBkPSJNMjcuOSA1MC4yQzI2LjYgNTAuOSAyNiA1MC45IDI1IDQ5LjcgMjQuNyA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i40IDI4LjcgMzUuNCAzMC43IDM0LjYgMzIuNyAzMy45IDM1LjkgMzIuNiAzOS4zIDMyLjMgNDIuNyAzMi40IDQ2LjIgMzIuMyA0OS41IDMyLjYgNTIuOCAzMy45IDU0LjggMzQuNiA1Ni44IDM1LjQgNTguNyAzNi40IDYxLjkgMzggNjMuMiA0MS43IDYyLjUgNDUuMiA2Mi40IDQ1LjggNjEuOSA0Ni45IDYxLjcgNDcuNSA2MS42IDQ3LjggNjEuMiA0OCA2MC45IDQ3LjlaIiBjbGFzcz0icmMtcmVzZXQiPjwvcGF0aD4KCQk8L3N2Zz4KCQ==\");\n background-position: center center;\n background-repeat: no-repeat;\n cursor:pointer;\n width: 72px;\n height: 72px;\n border-radius: 72px;\n}\n"]}
\ No newline at end of file
......@@ -35,9 +35,6 @@ $input-border-radius: 20px;
background: url('../images/icon-close-pressed.png') no-repeat;
}
}
.js-form-item-fz152-agreement {
display: none;
}
.ajax-progress.ajax-progress-throbber {
display:none !important;
}
......
......@@ -9,11 +9,11 @@ id: callback
title: Callback
description: 'Форма обратного звонка'
category: ''
elements: "'#attributes':\n class:\n - 'circle hide-elements'\ntelefon:\n '#type': tel\n '#title': Телефон\n '#title_display': invisible\n '#placeholder': '+7 999 99 99 999'\n '#autocomplete': 'off'\n '#required': true\n '#required_error': 'Нужно указать телефон'\n '#international': true\n '#international_initial_country': RU\nactions:\n '#type': webform_actions\n '#title': Заказать\n '#submit__label': Заказать\n"
elements: "'#attributes':\n class:\n - 'circle hide-elements color--green'\ntelefon:\n '#type': tel\n '#title': Телефон\n '#title_display': invisible\n '#placeholder': '+7 999 99 99 999'\n '#autocomplete': 'off'\n '#international': true\n '#international_initial_country': RU\nactions:\n '#type': webform_actions\n '#title': Заказать\n '#submit__label': Заказать\n"
css: ''
javascript: ''
settings:
ajax: true
ajax: false
page: true
page_submit_path: ''
page_confirm_path: ''
......@@ -49,7 +49,8 @@ settings:
preview_title: ''
preview_message: ''
preview_attributes: { }
preview_excluded_elements: { }
preview_excluded_elements:
telefon: telefon
draft: none
draft_multiple: false
draft_auto_save: false
......@@ -74,6 +75,8 @@ settings:
results_disabled: false
results_disabled_ignore: false
token_update: false
form_reset: false
preview_exclude_empty: false
access:
create:
roles:
......@@ -107,6 +110,7 @@ handlers:
label: Email
handler_id: email
status: true
conditions: { }
weight: 0
settings:
states:
......@@ -119,9 +123,9 @@ handlers:
bcc_options: { }
from_mail: '[site:robotstandardmail]'
from_options: { }
from_name: default
subject: default
body: default
from_name: Webform
subject: 'Заполнена форма обратного звонка'
body: "<p>Отправлено [webform_submission:created]</p>\n\n<p>Данные:<br />\n[webform_submission:values]</p>"
excluded_elements: { }
ignore_access: false
html: true
......@@ -129,3 +133,6 @@ handlers:
debug: false
reply_to: ''
return_path: ''
exclude_empty: true
sender_mail: ''
sender_name: ''
......@@ -6,4 +6,4 @@ package: Custom
dependencies:
- radon_custom_tokens
- webform
version: 8.x-1.0-beta2
version: 8.x-1.0-rc1
......@@ -33,10 +33,11 @@ function radon_callback_page_attachments(array &$attachments) {
*/
function radon_callback_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
if (strpos($form_id, 'webform_submission_callback') === 0) {
$form['close-btn'] = [
'#type' => 'markup',
'#markup' => '<div class="close-btn"></div>',
];
$form['#attributes']['class'][] = 'radon-callback-webform';
}
}
\ No newline at end of file
unset($form['fz152_agreement']);
$form['close-btn'] = [
'#type' => 'markup',
'#markup' => '<div class="close-btn"></div>',
];
$form['#attributes']['class'][] = 'radon-callback-webform';
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment