Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

614 B
Raw Blame
<%# Stored values read as labels ("feature_announcement" becomes "Feature Announcement"); locale codes stay as they are. %>
<% options = field.attribute == :locale ? field.selectable_options : field.selectable_options.map { |value| [value.to_s.titleize, value] } %>
<%= render "field", f: f, field: field do %>
  <%# Administrate turns selects inside this class into searchable selectize inputs. %>
  <div class="field-unit--select">
    <%= f.select(
          field.attribute,
          options_for_select(options, field.data),
          include_blank: field.include_blank_option
        ) %>
  </div>
<% end %>