Sha256: 2ea91d856b294bb946234dd2c9f8c4ab830a0ded6368ccc0477f42a534e4a7cc

Contents?: true

Size: 300 Bytes

Versions: 23

Compression:

Stored size: 300 Bytes

Contents

<%= form.input field %>
<% if item.send(field).present? && item.send(field).content_type =~ /^image\// %>
  <div class="form-group file-preview">
    <div class="col-sm-offset-2 col-sm-10">
      <%= image_tag item.send(field).url(item.send(field).styles.keys.first) %>
    </div>
  </div>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.5.1 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.5.0 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.6 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.5 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.4 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.3 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.2 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.1 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.4.0 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.3.4 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.3.3 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.3.2 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.3.1 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.3.0 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.2.2 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.2.1 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.2.0 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.1.5 app/views/brightcontent/base/form_fields/_file.html.erb
brightcontent-core-2.1.4 app/views/brightcontent/base/form_fields/_file.html.erb