<% # formstrap/media/item # # ==== Required parameters # * +form+ - Form object # * +url+ - URL for the media modal # # ==== Optional parameters # * +sort+ - Allow sorting by dragging items. `active_storage_attachments` must have a position column. # * +width+ - Width of the thumbnail # * +height+ - Height of the thumbnail # media_item = Formstrap::MediaItemView.new(local_assigns) %>
" data-media-target="item"> <%= form.hidden_field(:id) %> <%= form.hidden_field(:blob_id) %> <%= form.hidden_field(:position, value: media_item.position_value) if media_item.sort %> <%= form.hidden_field(:_destroy) %> <%= render "formstrap/shared/thumbnail", media_item.thumbnail_options %>
<%= bootstrap_icon("pencil") %>
<%= bootstrap_icon("x") %>