<% 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 :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline %>
<%= f.input :parent_id, label: "Parent", as: :string %> <%= f.input :source %>
<%= f.label :tag_string, "Tags" %> <%= link_to external_link_icon(class: "text-xxs"), "javascript:void(0)", id: "open-edit-dialog", "data-shortcut": "shift+e" %>
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %>
<%= render "related_tags/buttons" %>
<%= f.submit "Submit" %>
<%= render "related_tags/container", media_asset: post.media_asset %> <% end %>