Sha256: 3f7325e7db38c57cf5fb8dd6378a20226410c8855ee2af9808bf2523a1a33871
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal do %> <% trix_id = "trix_#{@resource.name.underscore}_#{@field.id}" %> <trix-editor input="<%= trix_id %>" value="<%= @field.id %>" placeholder="<%= @field.placeholder %>"></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, rows: @field.meta[:rows] %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avo-0.5.0.beta8 | app/components/avo/edit/fields/trix_field_component.html.erb |