2015-01-04 02:00:02 +01:00
|
|
|
<hr role="presentation" id="comments" class="hidden-print"/>
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2015-10-22 22:48:30 +02:00
|
|
|
{* Comment list *}
|
|
|
|
{include 'part/comments_list.tpl'}
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2015-10-28 17:30:42 +01:00
|
|
|
{* Add comment form *}
|
|
|
|
{if $active && !$expired && $accessGranted}
|
2016-05-03 21:11:10 +02:00
|
|
|
<form action="{'action/add_comment.php'|resource}" method="POST" id="comment_form">
|
2015-10-22 22:48:30 +02:00
|
|
|
|
2015-10-28 17:30:42 +01:00
|
|
|
<input type="hidden" name="poll" value="{$poll_id}"/>
|
2016-10-14 09:02:47 +02:00
|
|
|
{if !empty($admin_poll_id)}
|
|
|
|
<input type="hidden" name="poll_admin" value="{$admin_poll_id}"/>
|
|
|
|
{/if}
|
2015-04-11 17:56:49 +02:00
|
|
|
<div class="hidden-print jumbotron">
|
2014-12-19 00:13:21 +01:00
|
|
|
<div class="col-md-6 col-md-offset-3">
|
2015-03-30 15:19:56 +02:00
|
|
|
<fieldset id="add-comment"><legend>{__('Comments', 'Add a comment to the poll')}</legend>
|
2014-12-19 00:13:21 +01:00
|
|
|
<div class="form-group">
|
2015-05-29 12:34:54 +02:00
|
|
|
<label for="comment_name" class="control-label">{__('Generic', 'Your name')}</label>
|
2018-03-29 11:03:17 +02:00
|
|
|
<input type="text" name="name" id="comment_name" class="form-control" maxlength="60" />
|
2014-12-19 00:13:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-03-30 15:19:56 +02:00
|
|
|
<label for="comment" class="control-label">{__('Comments', 'Your comment')}</label>
|
2014-12-19 00:13:21 +01:00
|
|
|
<textarea name="comment" id="comment" class="form-control" rows="2" cols="40"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
2015-10-28 17:30:42 +01:00
|
|
|
<input type="submit" id="add_comment" name="add_comment" value="{__('Comments', 'Send the comment')}" class="btn btn-success">
|
2014-12-19 00:13:21 +01:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
2014-12-17 23:12:05 +01:00
|
|
|
</div>
|
2015-10-28 17:30:42 +01:00
|
|
|
</form>
|
2018-03-29 11:03:17 +02:00
|
|
|
{/if}
|