2016-08-19 16:02:18 -05:00
|
|
|
<strong>Checkbox Options</strong>
|
|
|
|
|
|
|
|
<ul data-id="input_option_list">
|
|
|
|
<% question.input_options.each do | option | %>
|
|
|
|
<li>
|
2016-08-19 16:42:06 -05:00
|
|
|
<%= text_field_tag 'question[multi_choice][]', option, { disabled: (disable ||= false), data: { last: option } } %>
|
2016-08-19 16:02:18 -05:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<% unless (disable ||= false) %>
|
2017-03-20 10:57:50 -05:00
|
|
|
<div> Add option </div>
|
|
|
|
<div>
|
|
|
|
<%= text_field_tag 'question[multi_choice][]', nil, { disabled: (disable ||= false), data: { last: nil } } %>
|
2016-08-19 16:02:18 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|