Sha256: 26888e2327914d7604411d565d37137d0461e411bf01b3351d9be25f347ef2fc

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

<div class="inputs-media inputs__container <%= @args[:class] %>" id="inputs-media-<%= @id %>">

  <% # Label from lato_core cells %>
  <% if @show_label %>
    <label
      class="inputs__label"
      for="<%= @args[:name] %>"
    >
      <%= @args[:label] %>
    </label>
  <% end %>

  <div class="inputs-media__preview">

    <%=raw LatoMedia::Elements::Preview::Cell.new(media: @media, url: '#',
    onclick: "MediaSelector.open('#{@id}', 1, event);") %>

  </div>

  <% # Help from lato_core cells %>
  <% if @show_help %>
    <div
      class="inputs__help"
    >
      <%= @args[:help] %>
    </div>
  <% end %>

  <input
    class="inputs-media__input"
    type="hidden"
    value="<%= @value %>"
    name="<%= @args[:name] %>"
    id="<%= @id %>"
  />
  

  <%= link_to 'load_inputs_media_preview', '/lato/media/media_selector/load_inputs_media', remote: true, class: 'inputs-media__reload' %>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lato_media-2.1 app/cells/lato_media/inputs/media/views/show.html.erb