38 lines
897 B
HTML
38 lines
897 B
HTML
<?php
|
|
/**
|
|
* @package Bicycle
|
|
* @author Egor Isaev
|
|
* @description feedback.html
|
|
* @copyright (c) 23/06/2026
|
|
*
|
|
* @var array $errors Ошибки валидации [поле => сообщение]
|
|
*/
|
|
|
|
use System\Classes\CSRF;
|
|
|
|
?>
|
|
|
|
<form method="post" action="/feedback">
|
|
<?= CSRF::field() ?>
|
|
|
|
<p>
|
|
<label>E-mail<br>
|
|
<input type="email" name="email">
|
|
</label>
|
|
<?php if (isset($errors['email'])): ?>
|
|
<span style="color:red"><?= $errors['email'] ?></span>
|
|
<?php endif; ?>
|
|
</p>
|
|
|
|
<p>
|
|
<label>Сообщение<br>
|
|
<textarea name="message" rows="4"></textarea>
|
|
</label>
|
|
<?php if (isset($errors['message'])): ?>
|
|
<span style="color:red"><?= $errors['message'] ?></span>
|
|
<?php endif; ?>
|
|
</p>
|
|
|
|
<button type="submit">Отправить</button>
|
|
</form>
|