%# - - - - - - - - - - - - %>
<%# CHOICES %>
<%# - - - - - - - - - - - - %>
<%= t(:choices).capitalize %>
<%# - - - - - - - - - - - - %>
<%# DEFAULT CHOICE %>
<%# - - - - - - - - - - - - %>
<% if ff.object.choices.find_all{|c| c.persisted? }.any? %>
<%= t(:default_choice).capitalize %>
<%= ff.input :default_choice_id, as: :select, collection: ff.object.choices.find_all{|c| c.persisted? }, label_method: :label, include_blank: false, selected: ff.object.default_choice.id, hint: t(:default_choice_description).capitalize %>
<% end %>
<%# - - - - - - - - - - - - %>
<%# ALLOW NULL %>
<%# - - - - - - - - - - - - %>
<%= t(:allow_null).capitalize %>
<%= ff.input :allow_null, as: :boolean, boolean_style: :inline, input_html: { class: "form-item--input" }, checked_value: true, unchecked_value: false, selected: ff.object.allow_null, default: false %>