Answer the question
In order to leave comments, you need to log in
How to put Yandex - target on the button?
Good afternoon!
I have a contact form
{$ form_open() }
<div class="body-m">
{ for key, message in messages.messages }
<div class="message-{$ key } rounder">{$ messages.first(key) }</div>
{ endfor }
<div class="links">
{$ form_label('username', lang('feedback::feedback.labels.username'), {'class': 'required'}) }
{$ form_text('username', form_value('username'), {'class': 'txt'} ) }
{$ form_error('username') }
</div>
<div class="links">
{$ form_label('phone', lang('feedback::feedback.labels.phone')) }
{$ form_text('phone', form_value('phone'), {'class': 'txt'} ) }
{$ form_error('phone') }
</div>
<div class="links">
{$ form_label('email', lang('feedback::feedback.labels.email'), {'class': 'required'}) }
{$ form_text('email', form_value('email'), {'class': 'txt'} ) }
{$ form_error('email') }
</div>
<div class="links">
{$ form_label('subject', lang('feedback::feedback.labels.subject'), {'class': 'required'}) }
{$ form_text('subject', form_value('subject'), {'class': 'txt'} ) }
{$ form_error('subject') }
</div>
<div class="links">
{$ form_label('message', lang('feedback::feedback.labels.message'), {'class': 'required'}) }
{$ form_textarea('message', form_value('message'), {'rows' : '2'}) }
{$ form_error('message') }
</div>
<div class="links captcha">
{$ form_label('captcha', lang('cms.labels.captcha'), {'class': 'required'}) }
{$ form_captcha('captcha', {'class': 'txt'}) }
{$ form_error('captcha') }
<div class="hints">{$ lang('cms.hints.captcha') }</div>
</div>
</div>
<div class="footer-m">
{$ form_submit(lang('cms.buttons.send'), {'class': 'btn'}) }
{$ anchor('', lang('cms.buttons.cancel'), {'class': 'btn modal-close'})}
</div>
{$ form_close() }
onclick="yaCounterXXXXXXX.reachGoal('send')"
<input class = "btn" type = "submit" value = "Отправить">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question