diff --git a/djangocms_forms/forms.py b/djangocms_forms/forms.py index 7e7a388..bcde47e 100644 --- a/djangocms_forms/forms.py +++ b/djangocms_forms/forms.py @@ -323,6 +323,9 @@ class FormBuilder(forms.Form): if data['name'] == 'phone' and data['value'] in ['4955331826', '123456']: return + if data['name'] == 'message' and data['value']: + return + # Some contacts if not send or len(contacts) == 0: return diff --git a/zsite/static/less/consultation.less b/zsite/static/less/consultation.less index 18791fc..a62b5c4 100644 --- a/zsite/static/less/consultation.less +++ b/zsite/static/less/consultation.less @@ -1,7 +1,7 @@ .modal-consultation, .consultation-form { @media (min-width: 0) { - img { + img { display: none; } @@ -14,10 +14,10 @@ } } @media (min-width: @screen-tablet) { - img { + img { display: block; float: left; - width: 30%; + width: 30%; margin-top: 60px; } @@ -34,7 +34,7 @@ margin-top: 18px; } - + .help-text { margin-top: 10px; margin-bottom: 5px; @@ -52,6 +52,11 @@ } .modal-consultation { + + .form_message { + display: none; + } + .tabs-list { margin-left: -5px; margin-bottom: 5px; @@ -90,11 +95,11 @@ } } - - + + } -.consultation-person { +.consultation-person { .consultation-person-description { font-size: 12px; @@ -105,7 +110,7 @@ display: block; } } - + .btn-consultation { margin-bottom: 10px; margin-right: -13px; diff --git a/zsite/templates/form_template/consultation.html b/zsite/templates/form_template/consultation.html index e60a175..c103644 100644 --- a/zsite/templates/form_template/consultation.html +++ b/zsite/templates/form_template/consultation.html @@ -22,7 +22,7 @@