Adjust input boxes to fit the screen better on mobile, and to use consistent sizes throughout the site (no ad-hoc overrides to make certain input boxes a bit bigger in random places). On desktop, this makes most input boxes a bit taller and narrower. On mobile, it makes input boxes the full width of the screen. This most notably affects the tag edit box, the comment and forum post box, the wiki page edit box, and the commentary box.
20 lines
836 B
Plaintext
20 lines
836 B
Plaintext
<%= edit_form_for(@artist) do |f| %>
|
|
<%= f.input :name, as: :string, input_html: { "data-autocomplete": "tag" } %>
|
|
|
|
<%= f.input :other_names_string, label: "Other names", as: :string, hint: "Separate names with spaces, not commas. Use underscores for spaces inside names." %>
|
|
<%= f.input :group_name %>
|
|
<%= f.input :url_string, label: "URLs", as: :text, input_html: { value: params.dig(:artist, :url_string) || @artist.urls.join("\n")}, hint: "You can prefix a URL with - to mark it as dead." %>
|
|
|
|
<% if @artist.wiki_page.present? %>
|
|
<div class="input">
|
|
<label>Wiki (<%= link_to "Edit", edit_wiki_page_path(@artist.wiki_page) %>)</label>
|
|
</div>
|
|
|
|
<div class="prose">
|
|
<%= format_text(@artist.wiki_page.body, disable_mentions: true) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= f.button :submit, "Submit" %>
|
|
<% end %>
|