clickable text
<%= f.text_field :title %>
<% if f.object.any_clickable_kind? %>
action type
<%= select_tag 'content_element[clickable_kind]',
options_from_collection_for_select(f.object.clickable_kinds, :gid, :name, f.object.clickable_kind.gid), revealer(dom_id(f.object, :clickable_kind), highlander: true) %>
>
>
URL
<%= f.text_field :body %>
<% f.object.custom_clickable_kinds.each do |custom_option_list| %>
>
<%= custom_option_list.name %>
<%= f.select :custom_option_id, options_from_collection_for_select(custom_option_list.custom_options, :id, :display, f.object.custom_option_id) %>
<% end %>
<% elsif f.object.url_clickable_kind? %>
URL
<%= f.text_field :body %>
<% else %>
<%= hidden_field_tag 'content_element[clickable_kind]', f.object.custom_option_list.gid %>
<%= f.object.custom_option_list.name %>
<%= f.select :custom_option_id, options_from_collection_for_select(f.object.custom_options, :id, :display, f.object.custom_option_id) %>
<% end %>
Style
<%= f.select :style_id, options_from_collection_for_select(f.object.style_options, :id, :display_name, f.object.style_id) %>