<% # encoding: utf-8 %> <% content_for :page_specific_css do %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <% end %>
<%= f.label :text, column.title, :class => "control-label" %>

<%= hidden_field_tag 'column_entry_file_field_count', file_field.column_entry_files.count %> <%= t(:add) %>


<% if file_field && !file_field.column_entry_files.blank? %>
<% file_field.column_entry_files.desc(:sort_number).each_with_index do |column_entry_file, i| %> <%= f.fields_for :column_entry_files, column_entry_file do |f| %> <%= render :partial => 'form_file', :locals => {:f => f, :i => i,:form_file => column_entry_file} %> <% end %> <% end %>
<% end %>
<%=t("universal_table.drag_file_to_here")%>
<% if !file_field.new_record? %> <%= f.hidden_field :id %> <% else %> <%= f.hidden_field :table_column_id, :value => column.id %> <% end %> <% content_for :page_specific_javascript do %> <% end %>