% form_id = "fileupload_#{object.id}" form_id += sub_type.to_s unless sub_type.blank? %> <% index_url = url_for(:controller => "/datafiles", "datafile[owner_type]" => "#{object.class.name.to_s}", "datafile[owner_id]" => "#{object.id.to_s}", "datafile[sub_type]" => sub_type) %> <% #if is_tree_node?(object) # tree_node = object # unless tree_node.blank? # bread_crumb_load_tree_recursive(breadcrumb, tree_node) # end #elsif object.respond_to?(:tree_nodes) # if !object.tree_nodes.blank? && !object.tree_nodes.first.blank? && is_tree_node?(object.tree_nodes.first) # tree_node = object.tree_nodes.first if !object.tree_nodes.blank? && !object.tree_nodes.first.blank? # end #end tree_node = { :resource_type => "#{object.class.name.to_s}", :resource_id => "#{object.id.to_s}"} tree_node[:sub_type] = sub_type unless sub_type.blank? %> <% if !tree_node.blank? %> <% end %> <%= form_for Datafile.new, :html => {:multipart => true, :id => "#{form_id}"} do |f| %> <% if can_upload %>
<% end %>Náhled | Název | Vytvořen | Velikost |
---|