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

     1  <article class="rowblock post_container poll"aria-level="{{lang "topic.poll_aria"}}">
     2  	<div class="rowitem passive editable_parent post_item poll_item {{.Topic.ClassName}}"style="background-image:url({{.Topic.Avatar}}),url(/s/{{.Header.Theme.Name}}/post-avatar-bg.jpg);background-position:0px {{if le .Topic.ContentLines 5}}-1{{end}}0px;background-repeat:no-repeat,repeat-y;">
     3  		<div class="topic_content user_content">
     4  			{{range .Poll.QuickOptions}}
     5  			<div class="poll_option">
     6  				<input form="poll_{{$.Poll.ID}}_form"id="poll_option_{{.ID}}"name="poll_option_input"type="checkbox"value="{{.ID}}">
     7  				<label class="poll_option_label"for="poll_option_{{.ID}}">
     8  					<div class="sel"></div>
     9  				</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 id="poll_results_{{.Poll.ID}}"class="poll_results auto_hide">
    20  			<div class="topic_content user_content">
    21  				<div class="auto_hide poll_no_results">{{lang "topic.poll_no_results"}}</div>
    22  			</div>
    23  		</div>
    24  	</div>
    25  </article>