hide title in wiki page form if not builder
This commit is contained in:
@@ -4,8 +4,10 @@
|
|||||||
<%= simple_form_for(@wiki_page) do |f| %>
|
<%= simple_form_for(@wiki_page) do |f| %>
|
||||||
<% if @wiki_page.new_record? %>
|
<% if @wiki_page.new_record? %>
|
||||||
<%= f.input :title, error: false, input_html: { data: { autocomplete: "tag" } } %>
|
<%= f.input :title, error: false, input_html: { data: { autocomplete: "tag" } } %>
|
||||||
<% else %>
|
<% elsif CurrentUser.is_builder? %>
|
||||||
<%= f.input :title, error: false, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this wiki page. Move the tag and update any wikis linking to this page first." %>
|
<%= f.input :title, error: false, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this wiki page. Move the tag and update any wikis linking to this page first." %>
|
||||||
|
<% else %>
|
||||||
|
<h1 id="wiki-page-title"><%= @wiki_page.pretty_title %></h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= 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." %>
|
<%= 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." %>
|
||||||
|
|||||||
Reference in New Issue
Block a user