Orbit/app/views/desktop/journal_pages/_form_file.html.erb

24 lines
788 B
Plaintext
Raw Normal View History

2012-11-29 04:13:56 +00:00
<tr id="<%= "plugin_file_#{form_file.id}" if !form_file.new_record? %>" class="list_item">
2012-11-28 10:12:37 +00:00
<td>
2012-11-29 04:13:56 +00:00
<div>
2012-12-05 08:10:15 +00:00
<%= f.file_field :file, class: "s_grid_2 s_grid" %>
2012-11-28 10:12:37 +00:00
</div>
</td>
<td>
2012-12-05 08:10:15 +00:00
<%= f.text_field :title, :class=>'s_grid_3 s_grid' %>
2012-11-28 15:43:39 +00:00
</td>
2012-11-28 10:12:37 +00:00
2012-11-28 15:43:39 +00:00
<td>
<span class="action">
<% if form_file.new_record? %>
<a class="delete"><i class="icon-remove"></i></a>
2012-11-29 04:13:56 +00:00
<% else %>
2012-11-28 15:43:39 +00:00
<%= 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 %>
2012-12-06 03:43:40 +00:00
<%= form_file.file.file ? ( link_to '', form_file.file.url, {:class => 'icon-eye-open', :target => '_blank', :title => t(:view)} ) : '' %>
2012-11-28 15:43:39 +00:00
</span>
</td>
</tr>