From e955cc6e02d6e1c6ad81affe6b611c138a455961 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 20 Jun 2013 15:24:10 -0700 Subject: [PATCH] disable category edit from tag form if locked --- app/views/tags/edit.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index 6af820a27..6ae686874 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -3,7 +3,9 @@

Tag: <%= @tag.name %>

<%= simple_form_for(@tag) do |f| %> - <%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %> + <% unless @tag.is_locked? %> + <%= 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"]] %>