github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/topic_alt_poll.html (about)

     1  <form id="poll_{{.Poll.ID}}_form" action="/poll/vote/{{.Poll.ID}}?s={{.CurrentUser.Session}}"method="post"></form>
     2  	<article class="rowitem passive deletable_block editable_parent post_item poll_item top_post hide_on_edit">
     3  		{{/**{{template "topic_alt_userinfo.html" .Topic }}**/}}
     4  		<div id="poll_voter_{{.Poll.ID}}" class="content_container poll_voter">
     5  			<div class="topic_content user_content">
     6  				{{range .Poll.QuickOptions}}
     7  				<div class="poll_option">
     8  					<input form="poll_{{$.Poll.ID}}_form" id="poll_option_{{.ID}}" name="poll_option_input" type="checkbox" value="{{.ID}}">
     9  					<label class="poll_option_label"for="poll_option_{{.ID}}"><div class="sel"></div></label>
    10  					<span id="poll_option_text_{{.ID}}"class="poll_option_text">{{.Value}}</span>
    11  				</div>
    12  				{{end}}
    13  				<div class="poll_buttons">
    14  					<button form="poll_{{.Poll.ID}}_form" class="poll_vote_button">{{lang "topic.poll_vote"}}</button>
    15  					<button class="poll_results_button"data-poll-id="{{.Poll.ID}}">{{lang "topic.poll_results"}}</button>
    16  					<a href="#"><button class="poll_cancel_button">{{lang "topic.poll_cancel"}}</button></a>
    17  				</div>
    18  			</div>
    19  		</div>
    20  		<div id="poll_results_{{.Poll.ID}}" class="content_container poll_results auto_hide">
    21  			<div class="topic_content user_content">
    22  				<div class="auto_hide poll_no_results">{{lang "topic.poll_no_results"}}</div>
    23  			</div>
    24  		</div>
    25  	</article>