Sha256: 1f335d63ba7ae2ba9b0ad20c3c7d10f81204b9b43b5da15a6d4ad535f4e2d664
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
<%= field_wrapper **field_wrapper_args do %> <% content_classes = 'trix-content py-2 max-w-4xl' content_classes << ' hidden' unless @field.always_show button_classes = 'font-bold inline-block pt-3' %> <%= content_tag :div, data: { controller: "trix-body", trix_body_always_show_value: @field.always_show } do %> <div class="<%= content_classes %>" data-trix-body-target="content"> <%= sanitize @field.value.to_s %> </div> <% unless @field.always_show %> <div class="hidden" data-trix-body-target="moreContentButton"> <%= link_to t('avo.more_content'), 'javascript:void(0);', class: button_classes, data: { action: 'click->trix-body#toggleContent' } %> </div> <div class="hidden" data-trix-body-target="lessContentButton"> <%= link_to t('avo.less_content'), 'javascript:void(0);', class: button_classes, data: { action: 'click->trix-body#toggleContent' } %> </div> <% end %> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-3.15.1 | app/components/avo/fields/trix_field/show_component.html.erb |
avo-3.15.0 | app/components/avo/fields/trix_field/show_component.html.erb |