Sha256: 475573eac08a6a507ef70b468a1a8977574a9a99ff2fa306fe82a9a12cc34a41

Contents?: true

Size: 912 Bytes

Versions: 106

Compression:

Stored size: 912 Bytes

Contents

<%
stimulus_controller = 'fields--emoji-picker'

form ||= current_fields_form
options ||= {}
other_options ||= {}
value = form.object.send(method)
%>

<%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %>
  <% content_for :field do %>
    <div data-controller="<%= stimulus_controller %>">
      <%= tag.button data: {action: "#{stimulus_controller}#toggle", "#{stimulus_controller}_target": "button"}, class: "button-alternative" do %>
        <span data-<%= stimulus_controller %>-target="display">
          <% if value.present? %>
            <%= value %>
          <% else %>
            <i class="ti ti-face-smile"></i>
          <% end %>
        </span>
      &nbsp;
      <%= t('fields.choose_emoji') %>
      <% end %>
      <%= form.hidden_field method, data: {"#{stimulus_controller}-target": "input"} %>
    </div>

  <% end %>
<% end %>

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
bullet_train-themes-1.7.11 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.10 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.9 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.3 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.2 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.1 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.7.0 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.38 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.37 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.36 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.35 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.34 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.33 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.32 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.31 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.30 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.29 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.28 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.27 app/views/themes/base/fields/_emoji_field.html.erb
bullet_train-themes-1.6.26 app/views/themes/base/fields/_emoji_field.html.erb