/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:
evazion
2019-08-19 19:49:31 -05:00
parent 0b14146f6a
commit 6e708dec18

View File

@@ -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 %>