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> <%= 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