2015-01-04 02:00:02 +01:00
|
|
|
<hr role="presentation" id="comments" class="hidden-print"/>
|
2014-12-19 00:13:21 +01:00
|
|
|
<form action="#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>
|
|
|
|
<span class="comment">{nl2br($comment->comment|html)}</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-03-30 15:19:56 +02:00
|
|
|
<label for="name" class="control-label">{__('Generic', 'Your name')}</label>
|
2014-12-19 00:13:21 +01:00
|
|
|
<input type="text" name="name" id="name" class="form-control" />
|
|
|
|
</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>
|