Files
AtomicOld/design/default/html/feedback.tpl
2026-02-15 18:29:53 +03:00

41 lines
1.4 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{* Страница с формой обратной связи *}
<h1>{$page->name|escape}</h1>
{$page->body}
<h2>Обратная связь</h2>
{if $message_sent}
{$name|escape}, ваше сообщение отправлено.
{else}
<form class="form feedback_form" method="post">
{if $error}
<div class="message_error">
{if $error=='captcha'}
Неверно введена капча
{elseif $error=='empty_name'}
Введите имя
{elseif $error=='empty_email'}
Введите email
{elseif $error=='empty_text'}
Введите сообщение
{/if}
</div>
{/if}
<label>Имя</label>
<input data-format=".+" data-notice="Введите имя" value="{$name|escape}" name="name" maxlength="255" type="text"/>
<label>Email</label>
<input data-format="email" data-notice="Введите email" value="{$email|escape}" name="email" maxlength="255" type="text"/>
<label>Сообщение</label>
<textarea data-format=".+" data-notice="Введите сообщение" value="{$message|escape}" name="message">{$message|escape}</textarea>
<input class="button" type="submit" name="feedback" value="Отправить" />
<div class="captcha"><img src="captcha/image.php?{math equation='rand(10,10000)'}"/></div>
<input class="input_captcha" id="comment_captcha" type="text" name="captcha_code" value="" data-format="\d\d\d\d" data-notice="Введите капчу"/>
</form>
{/if}