Sha256: 8d3e48471244d7f6044bf3a925949a6f14c718a09c2daa402e443a62aa0d29f7

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

<div class="product-image">
	<% unless f.object.new_record? %>
		<div class="control-group">
			<div class="controls">
				<%= image_tag f.object.file_url(:thumb) %>
			</div>
		</div>
	<% end %>
	<div class="control-group">
			<%= f.label t("model.Adminpanel::Image"), :class => "control-label"  %>
		<div class="controls">
			<%= f.file_field :file %>
			<%= f.hidden_field :model, :value => model_name %>
			<%= f.hidden_field :_destroy %>
			<%= 
			content_tag(
				:button, 
				t("action.delete"), 
				:class => "btn btn-danger remove_fields"
			) 
			%>
		</div>
	</div>
</div>

Version data entries

9 entries across 5 versions & 1 rubygems

Version Path
adminpanel-0.1.1 app/views/adminpanel/products/_image_fields.html.erb
adminpanel-0.1.1 app/views/adminpanel/sections/_image_fields.html.erb
adminpanel-0.1.0cl.2 app/views/adminpanel/sections/_image_fields.html.erb
adminpanel-0.1.0cl.2 app/views/adminpanel/products/_image_fields.html.erb
adminpanel-0.1.0cl app/views/adminpanel/sections/_image_fields.html.erb
adminpanel-0.1.0cl app/views/adminpanel/products/_image_fields.html.erb
adminpanel-0.1.0 app/views/adminpanel/sections/_image_fields.html.erb
adminpanel-0.1.0 app/views/adminpanel/products/_image_fields.html.erb
adminpanel-0.0.7 app/views/adminpanel/products/_image_fields.html.erb