date.chapril.org-framadate/tpl/part/comments.tpl

33 lines
1.5 KiB
Smarty
Raw Normal View History

<hr role="presentation" id="comments" class="hidden-print"/>
{* Comment list *}
{include 'part/comments_list.tpl'}
{* 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">
<input type="hidden" name="poll" value="{$poll_id}"/>
{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">
<div class="col-md-6 col-md-offset-3">
<fieldset id="add-comment"><legend>{__('Comments', 'Add a comment to the poll')}</legend>
<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" />
</div>
<div class="form-group">
<label for="comment" class="control-label">{__('Comments', 'Your comment')}</label>
<textarea name="comment" id="comment" class="form-control" rows="2" cols="40"></textarea>
</div>
<div class="pull-right">
<input type="submit" id="add_comment" name="add_comment" value="{__('Comments', 'Send the comment')}" class="btn btn-success">
</div>
</fieldset>
</div>
<div class="clearfix"></div>
</div>
</form>
{/if}