comments.tpl 1.56 KB
Newer Older
1
<hr role="presentation" id="comments" class="hidden-print"/>
2

Antonin's avatar
Antonin committed
3
4
{* Comment list *}
{include 'part/comments_list.tpl'}
5

6
7
{* Add comment form *}
{if $active && !$expired && $accessGranted}
Olivier Perez's avatar
Olivier Perez committed
8
    <form action="{'action/add_comment.php'|resource}" method="POST" id="comment_form">
Antonin's avatar
Antonin committed
9

10
        <input type="hidden" name="poll" value="{$poll_id}"/>
11
12
13
        {if !empty($admin_poll_id)}
            <input type="hidden" name="poll_admin" value="{$admin_poll_id}"/>
        {/if}
Olivier PEREZ's avatar
Olivier PEREZ committed
14
        <div class="hidden-print jumbotron">
15
            <div class="col-md-6 col-md-offset-3">
16
                <fieldset id="add-comment"><legend>{__('Comments', 'Add a comment to the poll')}</legend>
17
                    <div class="form-group">
18
                        <label for="comment_name" class="control-label">{__('Generic', 'Your name')}</label>
19
                        <input type="text" name="name" id="comment_name" class="form-control" maxlength="60" />
20
21
                    </div>
                    <div class="form-group">
22
                        <label for="comment" class="control-label">{__('Comments', 'Your comment')}</label>
23
24
25
                        <textarea name="comment" id="comment" class="form-control" rows="2" cols="40"></textarea>
                    </div>
                    <div class="pull-right">
26
                        <input type="submit" id="add_comment" name="add_comment" value="{__('Comments', 'Send the comment')}" class="btn btn-success">
27
28
29
30
                    </div>
                </fieldset>
            </div>
            <div class="clearfix"></div>
31
        </div>
32
    </form>
33
{/if}