<%= form_for(prepare_for_form(@attachment || Attachment.new), :html => { :multipart => true}) do |f|%>
<%= f.file_field :uploaded_data, :id=>"upload_field", :class=>"file_1", :size=>"15"%>
<%=t('tag.new')%> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_upload_doc icon",:style=>"cursor:pointer")%>
<%= select(:attachment, :_tags, @space.tags.map{|u| u.name}, {}, {:multiple=>"multiple"})%>
<%= check_box_tag "add_post", "with_post", attachment.post_title.present? || attachment.post_text.present?%> <%=t('attachment.upload_with_post')%>
>
<%= f.label :post_title, t('title') %>
<%= f.text_field :post_title%>
<%= f.label :post_text, t('text') %>
<%= f.text_area :post_text, :rows => 5, :cols=>25%>