Sha256: b35246aa118790828c61a4d753aecbd8826b103874b384c33afd13439aba4766
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
<% row = cell(:elements, :row).new block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12') code = cell(:elements, :code).new form = cell(:inputs, :form).new(url: '#', method: 'get') %> <!-- PRESENTATION --> <%=raw row.open %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: 'Cells Inputs: Media') %> <p>A Media input is an extension of core inputs used to select a media object from the media library.</p> <%=raw block.close %> <%=raw row.close %> <!-- / PRESENTATION --> <hr> <%=raw cell(:elements, :title).new(label: 'Normal Media input', size: 3) %> <%=raw row.open %> <%=raw block.open %> <%=raw form.open %> <%=raw row.open %> <%=raw cell('LatoMedia', :inputs, :media).new(name: 'sample', label: 'Select a media', class: 'xs-12 sm-6 md-6', value: @media.id) %> <%=raw cell('LatoMedia', :inputs, :media).new(name: 'sample', label: 'Select a media', class: 'xs-12 sm-6 md-6') %> <%=raw row.close %> <%=raw form.close %> <%=raw block.close %> <%=raw row.close %> <!-- CODE SECTION --> <%=raw row.open %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: 'Code', size: 6) %> <%=raw code.open %> <%= erb_open_tag %>=raw cell('LatoMedia', :inputs, :media).new(name: 'sample', label: 'Select a media', class: 'xs-12 sm-6 md-6', value: @media.id) <%= erb_close_tag %> <%= erb_open_tag %>=raw cell('LatoMedia', :inputs, :media).new(name: 'sample', label: 'Select a media', class: 'xs-12 sm-6 md-6') <%= erb_close_tag %> <%=raw code.close %> <%=raw block.close %> <%=raw row.close %> <!-- / CODE SECTION -->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lato_media-2.1.2 | app/views/lato_media/doc/cells/inputs_media.html.erb |
lato_media-2.1 | app/views/lato_media/doc/cells/inputs_media.html.erb |