Skip to content

Instantly share code, notes, and snippets.

@eguneys
Created September 17, 2014 09:50
Show Gist options
  • Save eguneys/b46c4bce03a532b48397 to your computer and use it in GitHub Desktop.
Save eguneys/b46c4bce03a532b48397 to your computer and use it in GitHub Desktop.
voting app front end with ember
.container
.row
.col-md-12
h3 Sample Vote Application
.lead
{{question}}?
div class="poll-choices {{resultsHidden::hidden}}"
each choices
.row
.col-md-6
button.btn.btn-info.pull-right click="vote id"
h4: {{text}}
.col-md-6
p: {{description}}
.row
.col-md-12.text-center
button.btn.btn-link click="showResults": Show results
i.fa.fa-arrow-right
div class="poll-results {{resultsHidden:hidden}}"
.row
.col-md-8.col-md-offset-2.text-center
each pollChoices
.progress
progress-bar text=text percent=vote-percent
.row
.col-md-12.text-center
h4: Total Voted: {{totalVotes}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment