tag view improvements

This commit is contained in:
Toks
2013-06-20 18:38:16 -04:00
parent 1f5d5ee587
commit 05eaa6f38b

View File

@@ -3,12 +3,14 @@
<h1>Tag: <%= @tag.name %></h1>
<%= simple_form_for(@tag) do |f| %>
<% unless @tag.is_locked? %>
<% if @tag.is_locked? %>
This tag is category locked.
<% else %>
<%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %>
<% end %>
<% if CurrentUser.user.is_janitor? %>
<%= f.input :is_locked, :collection => [["No", "false"], ["Yes", "true"]] %>
<%= f.input :is_locked, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
<% end %>
<%= f.button :submit, "Submit" %>