% unless CurrentUser.user.is_builder? %>
Before editing, read the <%= link_to "how to tag guide", wiki_page_path(:id => "howto:tag") %>.
<% end %>
<%= render_source_data(nil) %>
<%= edit_form_for(post, html: { id: "form" }) do |f| %>
<%= f.input :q, as: :hidden, input_html: { id: nil, name: "q", value: params[:q] } %>
<%= f.input :old_tag_string, as: :hidden, input_html: { value: post.tag_string } %>
<%= f.input :old_parent_id, as: :hidden, input_html: { value: post.parent_id } %>
<%= f.input :old_source, as: :hidden, input_html: { value: post.source } %>
<%= f.input :old_rating, as: :hidden, input_html: { value: post.rating } %>
<%= f.input :rating, label: "Rating (#{link_to_wiki "?", "howto:rate"})".html_safe, collection: Post::RATINGS.invert.reverse_each.to_h, as: :radio_buttons, boolean_style: :inline %>
<%= f.input :parent_id, label: "Parent", as: :string %>
<%= f.input :source %>
<%= f.submit "Submit" %>
<%= render "related_tags/container", media_asset: post.media_asset %>
<% end %>