2014-12-17 23:12:05 +01:00
|
|
|
<hr role="presentation" id="comments"/>
|
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}
|
|
|
|
<h3>{_("Comments of polled people")}</h3>
|
|
|
|
{foreach $comments as $comment}
|
|
|
|
<div class="comment">
|
|
|
|
{if $admin}
|
2014-12-30 01:41:25 +01:00
|
|
|
<button type="submit" name="delete_comment" value="{$comment->id}" class="btn btn-link" title="{_('Remove the comment')}"><span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{_('Remove')}</span></button>
|
2014-12-19 00:13:21 +01:00
|
|
|
{/if}
|
2014-12-30 01:41:25 +01:00
|
|
|
<b>{$comment->name}</b>
|
2014-12-19 00:13:21 +01:00
|
|
|
<span class="comment">{nl2br($comment->comment)}</span>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
2014-12-17 23:12:05 +01:00
|
|
|
|
2014-12-19 00:13:21 +01:00
|
|
|
{* Add comment form *}
|
|
|
|
{if $active}
|
|
|
|
<div class="hidden-print alert alert-info">
|
|
|
|
<div class="col-md-6 col-md-offset-3">
|
|
|
|
<fieldset id="add-comment"><legend>{_("Add a comment to the poll")}</legend>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name" class="control-label">{_("Your name")}</label>
|
|
|
|
<input type="text" name="name" id="name" class="form-control" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="comment" class="control-label">{_("Your comment")}</label>
|
|
|
|
<textarea name="comment" id="comment" class="form-control" rows="2" cols="40"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
|
|
<input type="submit" name="add_comment" value="{_("Send the comment")}" class="btn btn-success">
|
|
|
|
</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>
|