2015-01-04 02:00:02 +01:00
|
|
|
<hr role="presentation" id="comments" class="hidden-print"/>
|
2015-12-08 00:16:32 +01:00
|
|
|
<form action="{if $admin}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}#comments" method="POST">
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2014-12-19 00:13:21 +01:00
|
|
|
{* Comment list *}
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2014-12-19 00:13:21 +01:00
|
|
|
{if $comments|count > 0}
|
2015-03-30 15:19:56 +02:00
|
|
|
<h3>{__('Comments', 'Comments of polled people')}</h3>
|
2014-12-19 00:13:21 +01:00
|
|
|
{foreach $comments as $comment}
|
|
|
|
<div class="comment">
|
2015-02-28 19:18:59 +01:00
|
|
|
{if $admin && !$expired}
|
2015-03-30 15:19:56 +02:00
|
|
|
<button type="submit" name="delete_comment" value="{$comment->id|html}" class="btn btn-link" title="{__('Comments', 'Remove the comment')}"><span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{__('Generic', 'Remove')}</span></button>
|
2014-12-19 00:13:21 +01:00
|
|
|
{/if}
|
2015-01-11 14:59:25 +01:00
|
|
|
<b>{$comment->name|html}</b>
|
2015-05-29 18:33:55 +02:00
|
|
|
<span class="comment">{$comment->comment|escape|nl2br}</span>
|
2014-12-19 00:13:21 +01:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2014-12-19 00:13:21 +01:00
|
|
|
{* Add comment form *}
|
2015-02-28 19:18:59 +01:00
|
|
|
{if $active && !$expired}
|
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>
|
|
|
|
<input type="text" name="name" id="comment_name" class="form-control" />
|
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-03-30 15:19:56 +02:00
|
|
|
<input type="submit" 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>
|
2014-12-19 00:13:21 +01:00
|
|
|
{/if}
|
|
|
|
</form>
|