<%= theme_form_field(@promotion_attribute, :name, form_style: "top-bottom") %>
<%= theme_form_group("Data Type", required: true, error_class: "", form_style: "top-bottom") do %>
<% options_list = Dhatu::PromotionAttribute::DATA_TYPES %>
<%= f.select("data_type", options_for_select(options_list, :selected => @promotion_attribute.data_type), {:prompt=>true}, {:class => 'form-control', :name => "dhatu/promotion_attribute[data_type]"}) %>
<% end %>
<%= theme_form_field(@promotion_attribute, :display, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
<%= theme_form_field(@promotion_attribute, :mandatory, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
<%= theme_form_field(@promotion_attribute, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, form_style: "top-bottom") %>
<% display = ["text", "integer", "date", "boolean", ""].include?(@promotion_attribute.data_type.to_s) ? 'none' : ''
display = true %>
<% @promotion_attribute.set_string_values %>
<%= theme_form_field(@promotion_attribute, :values_string, "data-role": "tagsinput", label: "Data Values", html_options: {class: "kuppayam-tagsinput"}, form_style: "top-bottom") %>