<% # encoding: utf-8 %>

		<tr id="<%= "plugin_file_#{form_file.id}" if !form_file.new_record? %>" class='list_item'>
			<td>
				<div class="control-group">
					<div class="controls">
					<%= f.file_field :file %>
					<%= form_file.file.file ? ( link_to t(:view), form_file.file.url, {:class => 'btn', :target => '_blank', :title => t(:view)} ) : '' %>
					</div>
				</div>
			</td>	
			<td>	
			
				<div class="tab-content">

					<%= f.text_field :title %>
					
				</div>
				
			</td>
			
			<td>
			<span class="action">
			<% if form_file.new_record? %>
			  <a class="delete"><i class="icon-remove"></i></a>
			<% else %>	
			  <%= f.hidden_field :id %>
			  <a class="remove_existing_record"><i class="icon-remove"></i></a>
			  <%= f.hidden_field :should_destroy, :value => nil, :class => 'should_destroy' %>
			<% end %>
			</span>
			
			</td>
		</tr>
		
