diaspora/app/assets/templates/poll_creator_tpl.jst.hbs
op48 66fcfcfcbc Ignoring validation for last poll answer input
last input field is only deleted if there are more than three input fields and the last one is empty

poll is validated only if the last input is empty, and the first three have been filled

Removed duplicate remove last answer.

Dont need to check that the last value is populated as we are ignoring last value

Fixing poll step

Placeholder text edited

Fixed translations for poll answer placeholder text

Removed numbers on publisher option

Removed numbers in placeholder for poll answers
2014-08-13 13:40:14 +01:00

20 lines
690 B
Handlebars

<div class="poll-question control-group">
<div class="controls">
<input class="span12" placeholder="{{t 'publisher.question' }}" type="text" name="poll_question">
</div>
</div>
<div class="poll-answers">
<div class="poll-answer control-group">
<div class="controls">
<input type="text" name="poll_answers[]" placeholder="{{t 'publisher.option' }}">
<div class="remove-answer icons-deletelabel"></div>
</div>
</div>
<div class="poll-answer control-group">
<div class="controls">
<input type="text" name="poll_answers[]" placeholder="{{t 'publisher.option' }}">
<div class="remove-answer icons-deletelabel"></div>
</div>
</div>
</div>