<script lang="coffee">
export default
  props:
    poll: Object
  created: ->
    @poll.customFields.dots_per_person = @poll.customFields.dots_per_person or 8
</script>
<template lang="pug">
.poll-dot-vote-form
  poll-common-form-fields(:poll="poll")
  poll-common-form-options-field(:poll="poll")
  v-subheader(v-t="'poll_dot_vote_form.dots_per_person'")
  help-bubble(helptext="poll_dot_vote_form.dots_per_person_helptext")
  v-text-field(type="number", min="1", v-model="poll.customFields.dots_per_person", single-line)
  validation-errors(:subject="poll", field="dotsPerPerson")
  poll-common-wip-field(:poll="poll")
  poll-common-closing-at-field(:poll="poll")
  poll-common-settings(:poll="poll")
  common-notify-fields(:model="poll")
</template>
