<script class="poll-results-template" type="text/html">
    <h3 class="poll-header">{{display_name}}</h3>
    <div class="poll-question">{{{question}}}</div>
    <div class="poll-results-wrapper" role="radiogroup" tabindex="0">
        <h4 class="poll-header">{{i18n "Results" }}</h4>
        <ul class="poll-answers-results poll-results {{~#if any_img}} has-images{{/if}}">
        {{#each tally}}
            <li class="poll-result">
                <div class="poll-result-input-container">
                  <input id="answer-{{key}}-{{../block_id}}" type="radio" disabled {{#if choice}}checked{{/if}} />
                </div>
                {{~#if ../any_img~}}
                    <div class="poll-image result-image">
                        <label for="answer-{{key}}-{{../block_id}}" class="poll-image-label">
                            {{#if img}}
                              <img src="{{img}}" alt="{{img_alt}}"/>
                            {{/if}}
                        </label>
                    </div><div class="percentage-gauge-background"></div>
                {{~/if~}}
                <div class="percentage-gauge-container">
                  <div class="percentage-gauge" style="width:{{percent}}%;"></div>
                  <label class="poll-answer-label" for="answer-{{key}}-{{../block_id}}">{{{answer}}}</label>
                </div>
                <div class="poll-percent-container">
                    <span class="poll-percent-display{{#if first}} poll-top-choice{{/if}}">{{percent}}%</span>
                </div>
            </li>
        {{/each}}
        </ul>
        <input class="input-main" type="button" name="poll-submit" value="Submit" disabled>
        <div class="poll-footnote">
          {{interpolate (i18n_ngettext "Results gathered from {total} respondent." "Results gathered from {total} respondents." total) total=total}}
        </div>
        {{#if feedback}}
            <hr />
            <h3 class="poll-header">{{i18n "Feedback" }}</h3>
            <div class="poll-feedback">
                {{{feedback}}}
            </div>
        {{/if}}
    </div>
</script>
