Sha256: c0f3d63fb1d3727347dd51577f7ab123bc8de018b6ed91a8ad8f3bfce10fbc6f

Contents?: true

Size: 880 Bytes

Versions: 4

Compression:

Stored size: 880 Bytes

Contents

<tr id="imageDiv<%= g.options[:child_index] || g.object.id %>">
	<% if !g.object || g.object.new_record? %>
		<td>[<a href="" onclick="insertImage('upload<%= g.options[:child_index] %>');return false;">Insert</a>]</td>
		<td></td>
		<td><%= g.options[:child_index] %></td>
		<td>
			<%= g.file_field(:image, :size => '10') %>
			<%= g.hidden_field :random_id, :value => g.options[:child_index] %>
		</td>
	<% else %>
		<td>[<a href="" onclick="insertImage(<%= g.object.id %>);return false;">Insert</a>]</td>
		<td><img src="<%= g.object.image.url(:thumb) %>" /></td>
		<td><%= g.object.id %></td>
		<td class="imageFileName"><%= g.object.image_file_name %></td>
	<% end %>
	<td>
		[<%= link_to_function('delete', "removeImage(#{g.options[:child_index] || g.object.id})") %>]
		<%= g.hidden_field :_destroy, :id => "image_#{g.options[:child_index] || g.object.id}" %>
	</td>
</tr>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blog_basic-0.1.14 app/views/blog_basic/blog_posts/_image.html.erb
blog_basic-0.1.13 app/views/blog_basic/blog_posts/_image.html.erb
blog_basic-0.1.9 app/views/blog_basic/blog_posts/_image.html.erb
blog_basic-0.1.6 app/views/blog_basic/blog_posts/_image.html.erb