Sha256: e523284d86151eec06bf0a551c7edf59e7f763a8feac353f6276c6cbb914d514

Contents?: true

Size: 722 Bytes

Versions: 5

Compression:

Stored size: 722 Bytes

Contents

<%# HEADING %>
<h5><%= field_setting.name.capitalize %></h5>

<%= ff.input :image, input_html: { class: 'form-item--asset--uploader'} %>

<% if ff.object.image.present? %>
  <%= image_tag ff.object.image.thumb.url, class: 'form-item--asset--image' %>
<% end %>

<% unless field_setting.description.blank? %>
	<small class="text-muted"><%= field_setting.description %></small>
<% end %>

<%= ff.input :image_cache, as: :hidden %>
<%= ff.input :field_setting_id, as: :hidden, input_html: { value: field_setting.id } %>
<%= ff.input :id, as: :hidden, input_html: { value: ff.object.id } %>
<%= ff.input :fieldable_id, as: :hidden %>
<%= ff.input :fieldable_type, as: :hidden %>

<div class="form-item--asset--clearfix"></div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
binda-0.0.7 app/views/binda/fieldable/_form_item_asset.html.erb
binda-0.0.6 app/views/binda/components/_form_item_asset.html.erb
binda-0.0.5 app/views/binda/components/_form_item_asset.html.erb
binda-0.0.3 app/views/binda/components/_form_item_asset.html.erb
binda-0.0.2 app/views/binda/components/_form_item_asset.html.erb