<%= form_for(document) do |f| %>
<%= f.hidden_field :owner_id %>
<% document.errors.full_messages.each do |msg| %>
-
<%= msg %>
<% end %>
<%= f.label :file, t('document.info.file') %>
<%= f.file_field :file %>
<%= f.label :title, t('document.info.title') %>
<%= f.text_field :title %>
<%= f.label :description, t('document.info.description') %>
<%= f.text_area :description %>
<%= f.submit :class => "btn" %>
<% end %>
<%= javascript_tag do %>
$(function() {
SocialStream.Document.edit();
});
<% end %>