diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index 75adc36..8b801b7 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -499,6 +499,7 @@ body.n_scroll{ } .label_consultation_form{ + color: #000000; padding-left: 20px; padding-bottom: 15px; } diff --git a/static/aerbimJS.js b/static/aerbimJS.js index 3e65330..affe7df 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -231,4 +231,28 @@ function autoPlaySlider () { // if (autoplayInterval){ // clearInterval(autoplayInterval) // } -// } \ No newline at end of file +// } + +// form consultation +function sendFormConsultation (el){ + let form = el.form + let formData = new FormData(form) + $.ajax({ + headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, + url: '/get_content_for_section/', + type: "POST", + // async: true, + cache: false, + processData: false, + // contentType: false, + // enctype: 'json', + contentType: "application/json; charset=utf-8", + data: formData, + success: function(data){ + + }, + error: function (data){ + alert(data.errors) + } + }); +} \ No newline at end of file diff --git a/templates/forms/f_consultation.html b/templates/forms/f_consultation.html index 8ff4ea3..12b774a 100644 --- a/templates/forms/f_consultation.html +++ b/templates/forms/f_consultation.html @@ -4,7 +4,7 @@
-
+
@@ -16,10 +16,10 @@
- - - - + + + +