<% unless CurrentUser.user.is_builder? %>

Before editing, read the <%= link_to "how to tag guide", wiki_page_path(:id => "howto:tag") %>.

<% end %> <%= form_for(post, :html => {:class => "simple_form", :id => "form"}) do |f| %> <%= hidden_field_tag :tags_query, params[:tags] %> <%= hidden_field_tag :pool_id, params[:pool_id] %> <%= f.hidden_field :old_tag_string, :value => post.tag_string %> <%= f.hidden_field :old_parent_id, :value => post.parent_id %> <%= f.hidden_field :old_source, :value => post.source %> <%= f.hidden_field :old_rating, :value => post.rating %>
<% if post.is_rating_locked? %> This post is rating locked. <% else %> <%= f.label :blank, "Rating" %>
<%= f.radio_button :rating, :e %> <%= f.label :rating_e, "Explicit" %> <%= f.radio_button :rating, :q %> <%= f.label :rating_q, "Questionable" %> <%= f.radio_button :rating, :s %> <%= f.label :rating_s, "Safe" %>
<% end %>
<% if CurrentUser.is_builder? %>
<%= f.label :blank, "Lock" %>
<%= f.check_box :is_note_locked %> <%= f.label :is_note_locked, "Notes" %> <%= f.check_box :is_rating_locked %> <%= f.label :is_rating_locked, "Rating" %> <% if CurrentUser.is_admin? %> <%= f.check_box :is_status_locked %> <%= f.label :is_status_locked, "Status" %> <% end %>
<% end %>
<%= f.label :parent_id, "Parent" %> <%= f.text_field :parent_id, :size => 5 %>
<%= f.label :source %> <%= f.text_field :source %> <%= button_tag "Similar", :id => "similar-button", :type => "button" %> <%= button_tag "Artist", :id => "find-artist-button", :type => "button" %>
<%= f.label :tag_string, "Tags" %> <%= f.text_area :tag_string, :size => "50x5", :value => post.presenter.categorized_tag_string + " " %>
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %> <%= button_tag "Artists", :id => "related-artists-button", :type => "button" %> <%= button_tag "Characters", :id => "related-characters-button", :type => "button" %> <%= button_tag "Copyrights", :id => "related-copyrights-button", :type => "button" %>
<%= submit_tag "Submit" %>
<% end %>