Files
danbooru/app/views/favorite_group_orders/edit.html.erb
evazion 1e80540a04 css: refactor CSS to use Tailwind-style utility classes.
Refactor CSS to use standard Tailwind-style utility classes instead of
ad-hoc rules. This eliminates a lot of single-purpose rules for specific
UI elements and standardizes margins to be more consistent throughout
the site.

Utility classes are defined manually on an as-needed basis instead of
importing Tailwind as a whole. Naming conventions mostly follow
Tailwind's conventions, otherwise they follow Bootstrap.

* https://tailwindcss.com/docs/
* https://getbootstrap.com/docs/5.0/utilities/spacing/
2021-02-16 09:28:38 -06:00

23 lines
754 B
Plaintext

<div id="c-favorite-group-orders">
<div id="a-edit">
<h1>Order Favorite Group: <%= @favorite_group.pretty_name %></h1>
<p>Drag and drop the list below to determine ordering.</p>
<%= render "posts/partials/common/inline_blacklist" %>
<ul id="sortable">
<% @favorite_group.posts.limit(1_000).each do |post| %>
<%= tag.li id: "favorite_group[post_ids]_#{post.id}" do -%>
<%= post_preview(post, show_deleted: true).presence || "Hidden: Post ##{post.id}" -%>
<% end -%>
<% end %>
</ul>
<%= edit_form_for(@favorite_group, :format => :js, :html => {:id => "ordering-form"}) do |f| %>
<%= submit_tag "Save" %>
<% end %>
</div>
</div>
<%= render "favorite_groups/secondary_links" %>