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
20 lines
690 B
Handlebars
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>
|
|
|