27 lines
1.3 KiB
HTML
27 lines
1.3 KiB
HTML
<form action="<%if in.call_from eq 'glinks'%>/cgi-bin/articles/poll.cgi<%else%><%cgi_root_url%>/cgi-bin/poll/poll.cgi<%endif%>" method="post" name="forum_poll">
|
|
<%if remote%>
|
|
<input type="hidden" name="remote" value="1">
|
|
<%endif%>
|
|
<input type="hidden" name="poll_id" value="<%poll_id%>">
|
|
<input type="hidden" name="poll_type" value="<%poll_type%>">
|
|
<input type="hidden" name="forum_id" value="<%forum_id || $in.forum_id || 0%>">
|
|
<input type="hidden" name="vote" value="true">
|
|
<div class="subtitle"><%poll_question%></div>
|
|
<div class="desc"><%poll_text%></div>
|
|
<div class="answers">
|
|
<%loop poll_answers%>
|
|
<div class="option">
|
|
<input type="radio" id="answer<%poll_answer_id%>" name="poll_answer_id" value="<%poll_answer_id%>" /><label for="answer<%poll_answer_id%>"><%poll_answer_answer%></label>
|
|
</div>
|
|
<%endloop%>
|
|
</div>
|
|
<div class="btn-wrapper">
|
|
<input type="submit" name="pollsub" value="Vote" class="btn" />
|
|
<%~if in.call_from eq 'glinks'%>
|
|
<a href="/cgi-bin/articles/poll.cgi?poll_view=results_view" title="Poll view" class="lnk">View Results</a>
|
|
<%~else%>
|
|
<a href="<%GForum::SEO::url(params => "forum=$forum_id;poll_view=results_view")%>" title="Poll view" class="lnk">View Results</a>
|
|
<%~endif%>
|
|
</div>
|
|
</form>
|