|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{% load cms_tags djangocms_forms_tags i18n sekizai_tags staticfiles %} |
|
|
|
{% load cms_tags djangocms_forms_tags i18n sekizai_tags staticfiles %} |
|
|
|
|
|
|
|
|
|
|
|
<div ng-controller="ModalFormCtrl" class="modal-form"> |
|
|
|
<div class="consultation" ng-controller="ModalFormCtrl" class="modal-form"> |
|
|
|
<script type="text/ng-template" id="modalFormTemplate-{{ instance.id }}.html"> |
|
|
|
<script type="text/ng-template" id="modalFormTemplate-{{ instance.id }}.html"> |
|
|
|
<div class="modal-body modal-consultation"> |
|
|
|
<div class="modal-body modal-consultation"> |
|
|
|
<img src="{% with 'imgs/phone.png' as image_static %}{% static image_static %}{% endwith %}"> |
|
|
|
<img src="{% with 'imgs/phone.png' as image_static %}{% static image_static %}{% endwith %}"> |
|
|
|
@ -67,4 +67,19 @@ |
|
|
|
{% addtoblock "js" %} |
|
|
|
{% addtoblock "js" %} |
|
|
|
<script src="{% static 'js/djangocms_forms/libs/jquery.form.min.js' %}"></script> |
|
|
|
<script src="{% static 'js/djangocms_forms/libs/jquery.form.min.js' %}"></script> |
|
|
|
<script src="{% static 'js/djangocms_forms/djangocms_forms.js' %}"></script> |
|
|
|
<script src="{% static 'js/djangocms_forms/djangocms_forms.js' %}"></script> |
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
$(function() { |
|
|
|
|
|
|
|
if(typeof consultation_link == "undefined") { |
|
|
|
|
|
|
|
$( "[href^='#consultation'" ).click(function(e) { |
|
|
|
|
|
|
|
event.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
angular.element($('.consultation')[0]).scope().open({{ instance.id }}); |
|
|
|
|
|
|
|
yaCounter950321.reachGoal('CallbackOpen'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
consultation_link = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
{% endaddtoblock %} |
|
|
|
{% endaddtoblock %} |
|
|
|
|