diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index b910886..71cccd3 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -402,10 +402,29 @@ _________________________________________________________ --> = Html::submitButton( 'Надіслати', [ - 'class' => 'send-form btn btn-lg btn-template-primary', + 'class' => 'send-form btn btn-lg btn-template-primary button-consultation', + 'onclick' => "ga('send', 'event', 'button-consultation.cec', 'send')", ] ) ?>
++ = Html::submitButton( + 'Надіслати', + [ + 'class' => 'send-form btn btn-lg btn-template-primary button-сalculate', + 'onclick' => "ga('send', 'event', 'button-сalculate the cost.cec', 'send')", + ] + ) ?> +
++ = Html::submitButton( + 'Надіслати', + [ + 'class' => 'send-form btn btn-lg btn-template-primary button-order', + 'onclick' => "ga('send', 'event', 'button-order station.cec', 'send')", + ] + ) ?> +
diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index c88395c..f1d3e73 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -292,8 +292,8 @@ $this->registerJs($js, View::POS_END); @@ -345,7 +345,7 @@ $this->registerJs($js, View::POS_END); @@ -385,7 +385,7 @@ $this->registerJs($js, View::POS_END);Або звернутись до нас та
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 373d0ad..479ed80 100644 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -189,4 +189,10 @@ a.sqre_btn { } .panel-heading.active a:before{ content: "\f107"; +} + + +/* send form buttons */ +.send-form.btn{ + display:none; } \ No newline at end of file diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index db2d837..c734bce 100644 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -261,8 +261,9 @@ $( $(this).parent().parent().toggleClass("active"); }); - $(".panel-heading:before").on('click',function(){ - alert('1'); - }); + + $(".init-button-consultation").on('click', function(){$(".button-consultation").show();$(".button-сalculate").hide();$(".button-order").hide();}); + $(".init-button-сalculate").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").show();$(".button-order").hide();}); + $(".init-button-order").on('click', function(){$(".button-consultation").hide();$(".button-сalculate").hide();$(".button-order").show();}); } ); \ No newline at end of file -- libgit2 0.21.4