17 lines
473 B
Plaintext
17 lines
473 B
Plaintext
<strong>Radio Options</strong>
|
|
|
|
<ul data-id="input_option_list">
|
|
<% question.input_options.each do | option | %>
|
|
<li>
|
|
<%= text_field_tag 'question[multi_choice][]', option, { disabled: (disable ||= false), data: { last: option } } %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<% unless (disable ||= false) %>
|
|
<div>Add option</div>
|
|
<div>
|
|
<%= text_field_tag 'question[multi_choice][]', nil, { disabled: (disable ||= false), data: { last: nil } } %>
|
|
</div>
|
|
<% end %>
|