source: RedSur/app/assets/templates/poll_tpl.jst.hbs

profile_fields
Last change on this file was a5c4926, checked in by aosorio <aosorio@…>, 8 years ago

Agregadas nuevas estructuras del profile para el registro de entes de apoyo

  • Property mode set to 100644
File size: 1.4 KB
Line 
1{{#if poll}}
2  <div class="poll_form">
3    <div class="poll_head">
4      <strong>{{poll.question}}</strong>
5      <div class="poll_statistic pull-right">
6        {{t "poll.count" count=poll.participation_count}}
7      </div>
8    </div>
9    <div class="poll-content">
10      {{#if show_form}}
11        <form action="/posts/{{poll.post_id}}/poll_participations" method="POST">
12      {{/if}}
13      {{#poll.poll_answers}}
14        <div class="result-row">
15          <input type="radio" name="vote" value="{{id}}"/>
16          <label>{{answer}}</label>
17          <div class="poll-result pull-right">
18            <span class="percentage"></span>
19            ({{t "poll.answer_count" count=vote_count}})
20          </div>
21          <div class="poll_progress_bar_wrapper progress">
22            <div class="poll_progress_bar bar" data-answerid="{{id}}" style="height: 100%"></div>
23          </div>
24        </div>
25      {{/poll.poll_answers}}
26      {{#if show_form}}
27          <div class="toggle-result-wrapper">
28            <a class="toggle_result" href="#">{{t "poll.show_result"}}</a>
29          </div>
30          <input type="submit" class="submit pull-right btn btn-default" value="{{t "poll.vote"}}"/>
31          <div class="clearfix"></div>
32        </form>
33      {{/if}}
34
35      {{#if is_reshare }}
36        <div class="poll_footer">
37          {{{t "poll.go_to_original_post" original_post_link=original_post_link}}}
38        </div>
39      {{/if}}
40    </div>
41  </div>
42{{/if}}
Note: See TracBrowser for help on using the repository browser.