Sha256: f28d392ce27a82d7c95fee09335a996087b746d367ed12c0e3a9e874a05c01eb
Contents?: true
Size: 1.15 KB
Versions: 33
Compression:
Stored size: 1.15 KB
Contents
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %> <div data-controller="trix-field" data-trix-field-target="controller" data-resource-name="<%= @resource.model_key %>" data-resource-id="<%= @resource.model.id %>" data-attachments-disabled="<%= @field.attachments_disabled %>" data-attachment-key="<%= @field.attachment_key %>" data-hide-attachment-filename="<%= @field.hide_attachment_filename %>" data-hide-attachment-filesize="<%= @field.hide_attachment_filesize %>" data-hide-attachment-url="<%= @field.hide_attachment_url %>" > <% trix_id = "trix_#{@resource.name.underscore}_#{@field.id}" %> <trix-editor data-trix-field-target="editor" input="<%= trix_id %>" placeholder="<%= @field.placeholder %>"><%== @field.value %></trix-editor> <%= @form.text_area @field.id, id: trix_id, class: helpers.input_classes('w-full hidden', has_error: (@resource.model.present? and @resource.model.errors.include?(@field.id))), placeholder: @field.placeholder, disabled: @field.readonly %> </div> <% end %>
Version data entries
33 entries across 33 versions & 1 rubygems