/artists/new: fix artist name input box sizing.
In production the name input is really big because the artist name column in the production db is `text` rather than `character varying`, and simpleform treats text columns as textbox inputs.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<%= simple_form_for(@artist) do |f| %>
|
||||
<% if @artist.new_record? %>
|
||||
<%= f.input :name, input_html: { data: { autocomplete: "tag" } } %>
|
||||
<%= f.input :name, as: :string, input_html: { data: { autocomplete: "tag" } } %>
|
||||
<% elsif CurrentUser.user.is_builder? %>
|
||||
<%= f.input :name, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this artist entry and its wiki page" %>
|
||||
<%= f.input :name, as: :string, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this artist entry and its wiki page" %>
|
||||
<% else %>
|
||||
<p><%= @artist.name %></p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user