Add hint for renaming wikis/artists

This commit is contained in:
Toks
2014-06-25 11:32:23 -04:00
parent 224da8a7da
commit 198ab5f2d1
2 changed files with 17 additions and 4 deletions

View File

@@ -2,9 +2,17 @@
<%= error_messages_for("wiki_page") %>
<%= simple_form_for(@wiki_page) do |f| %>
<% if @wiki_page.new_record? || CurrentUser.user.is_builder? %>
<%= f.input :title, :as => :string %>
<% end %>
<div class="input">
<label for="wiki_page_title">Title</label>
<% if @wiki_page.new_record? %>
<%= text_field "wiki_page", "title" %>
<% elsif CurrentUser.user.is_builder? %>
<%= text_field "wiki_page", "title" %>
<span class="hint">Change to rename this wiki page</span>
<% else %>
<p><%= @wiki_page.title %></p>
<% end %>
</div>
<%= f.input :other_names, :as => :text, :label => "Other names (<a href='/wiki_pages/help:translated_tags'>view help</a>)".html_safe, :hint => "Names used for this tag on other sites such as Pixiv. Separate with spaces." %>