<%= form_for prepare_for_form(Attachment.new, :version_parent_id => @attachment.id), :html => { :multipart => true} do |f|%>
<%= f.hidden_field :version_parent_id %>
<%= f.file_field :uploaded_data, :id=>"upload_field", :size=>12 %>
<%=t('tag.selected.other')%>
<%=t('attachment.upload_with_post')%><%= check_box_tag "add_post", "with_post", attachment.post_title.present? || attachment.post_text.present?%>
>
<%= f.label :post_title, t('title') %>
<%= f.text_field :post_title,:rows => 1, :cols=>23 %>
<%= f.label :post_text, t('text') %>
<%= f.text_area :post_text, :rows => 5, :cols=>25 %>