_review_form.php 3.58 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
if(isset($valid) && $valid){
    echo '<div class="reviews_form_success">' . __('Отзыв отправлен') . '!</div>';
}else{
    $culture = $sf_user->getCulture();
    ?>
    <form action="<?php echo url_for('@review'); ?>" method="post" onsubmit="review.submit($(this)); return false;">
        <?php
        echo $review_form->renderGlobalErrors();
        echo $review_form->renderHiddenFields();
        ?>
        <table class="reviews_form__table to_div" cellspacing="0" cellpadding="0" width="100%">
            <tbody valign="top" align="left">
            <tr>
                <td class="reviews_form__title" colspan="3" align="center"><?php echo __('Оставьте свой отзыв');?></td>
            </tr>
            <tr>
                <td width="50%" height="1">
                    <div class="callback_form__inp_wrap">
                        <input name="review[name]" type="text" class="form_type_1__input validate_it" placeholder="Имя" onkeyup="form_validator.check($(this))" data-check-rule="noempty" autocomplete="off" required>
                    </div>
                </td>
                <td rowspan="2" colspan="2">
                    <textarea rows="6" cols="70" required="1" style="resize:vertical;min-height:100px;" class="reviews_form_txa_msg validate_it" onkeyup="form_validator.check($(this))" data-check-rule="noempty" placeholder="Текст отзыва" autocomplete="off" name="review[body]" id="review_body"></textarea>
                    <div class="mobile_hide">
                        <?php echo $review_form['file']->render() . $review_form['file']->renderError(); ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="callback_form__inp_wrap">
                        <input name="review[phone]" type="text" class="form_type_1__input validate_it" placeholder="Телефон" onkeyup="form_validator.check($(this))" data-check-rule="phone" autocomplete="off" required>
                    </div>
                    <div class="mobile">
                        <?php echo $review_form['file']->render() . $review_form['file']->renderError(); ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="middle">
                    <i class="br20"></i>
                    <div class="callback_form__checkbox">
                        <label class="checkbox">
                            <input type="checkbox" name="review[is_agree]" class="not_custom validater validate_it" onchange="form_validator.check($(this))" data-check-rule="checked" autocomplete="off" required >
                            <span class="checkbox_span"></span>
                            <span class="checkbox_text"><?php echo __('Я принимаю условия')?> <a href="<?php echo '/' . $culture . '/terms-of-use/' ?>" target="_blank"><?php echo __('пользовательского соглашения') ?></a><?php echo __(' и ') ?> <a href="<?php echo '/' . $culture . '/privacy-policy/' ?>" target="_blank"><?php echo __('политики конфиденциальности') ?></a></span>
                        </label>
                    </div>
                </td>
                <td width="1" valign="middle" class="align_center">
                    <i class="br20"></i>
                    <input type="submit" class="btn_all green_btn send btn_disabled" value="<?php echo __('Отправить');?>" disabled>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <?php
}
?>