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">
|
2018-04-19 15:10:45 +02:00
|
|
|
<fieldset id="add-comment"><legend>{__('Comments', 'Add a comment to the poll')|html}</legend>
|
2014-12-19 00:13:21 +01:00
|
|
|
<div class="form-group">
|
2018-04-19 15:10:45 +02:00
|
|
|
<label for="comment_name" class="control-label">{__('Generic', 'Your name')|html}</label>
|
|
|
|
<input type="text" name="name" id="comment_name" class="form-control" maxlength="60" required>
|
2014-12-19 00:13:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2018-07-06 18:06:35 +02:00
|
|
|
<label for="comment" class="control-label">{__('Comments', 'Comment')|html}</label>
|
2018-04-19 15:10:45 +02:00
|
|
|
<textarea name="comment" id="comment" class="form-control" rows="2" cols="40" required></textarea>
|
2014-12-19 00:13:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
2018-04-19 15:10:45 +02:00
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
id="add_comment"
|
|
|
|
class="btn btn-success"
|
2018-07-06 18:06:35 +02:00
|
|
|
data-text-wait="{__('Comments', 'Enter your name and comment prior to submitting the form')|html}"
|
2018-04-19 15:10:45 +02:00
|
|
|
>
|
2018-07-06 18:06:35 +02:00
|
|
|
{__('Comments', 'Submit comment')|html}
|
2018-04-20 09:17:37 +02:00
|
|
|
</button>
|
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}
|