[AvoidPosting] Minor UI tweaks (#750)

This commit is contained in:
Cinder 2024-09-07 14:28:29 -07:00 committed by GitHub
parent 4834f2cd11
commit db1dc385d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View File

@ -1,16 +1,18 @@
<%= form_search(path: avoid_postings_path, always_display: true) do |f| %>
<%= f.user :creator %>
<% if CurrentUser.is_admin? %>
<%= f.input :ip_addr, label: "Creator IP Address" %>
<% end %>
<%= f.input :any_name_matches, label: "Name", hint: "Use * for wildcard", autocomplete: "artist" %>
<%= f.input :artist_name, label: "Artist Name", hide_unless_value: true %>
<%= f.input :artist_id, label: "Artist ID", hide_unless_value: true %>
<%= f.input :any_name_matches, label: "Artist", hint: "Use * for wildcard", autocomplete: "artist" %>
<%= f.input :any_other_name_matches, label: "Other Names", hide_unless_value: true %>
<%= f.input :group_name, label: "Group Name", hide_unless_value: true %>
<%= f.input :artist_name, label: "Artist Name", hide_unless_value: true %>
<%= f.input :artist_id, label: "Artist ID", hide_unless_value: true %>
<% if CurrentUser.is_admin? %>
<%= f.user :creator %>
<%= f.input :ip_addr, label: "Creator IP" %>
<br />
<% end %>
<%= f.input :details, label: "Details" %>
<% if CurrentUser.is_staff? %>
<%= f.input :staff_notes %>
<%= f.input :staff_notes, label: "Staff Notes" %>
<% end %>
<%= f.input :is_active, label: "Active?", collection: [%w[Yes true], %w[No false], %w[Any any]] %>
<%= f.input :order, collection: [["Artist Name", "artist_name"], %w[Created created_at], %w[Updated updated_at]], include_blank: true %>

View File

@ -4,7 +4,7 @@
<h2>Before uploading, read
the <%= link_to "how to upload guide", wiki_page_path(id: "howto:upload") %>.</h2>
<p>Make sure you're not posting something on
the <%= link_to "Avoid Posting List", avoid_postings_path %><br>
the <%= link_to "Avoid Posting List", avoid_posting_static_path %><br>
Review the <%= link_to "Uploading Guidelines", help_page_path(id: "uploading_guidelines") %>
<br>
Unsure what to tag your post