Changed Add Moderator position for better UX (#19346)
This commit is contained in:
parent
321db95e31
commit
80f5591c1f
1 changed files with 7 additions and 7 deletions
|
|
@ -13,6 +13,13 @@
|
|||
<div class="crayons-card p-6">
|
||||
<h2 class="crayons-subtitle-1">Moderators</h2>
|
||||
<div class="flex flex-col gap-2">
|
||||
<%= form_with url: admin_tag_moderator_path(@tag.id), model: [:admin, @tag], method: :post, local: true do |f| %>
|
||||
<div class="crayons-field w-50 my-4">
|
||||
<%= f.label :user_id, "Add Moderator (ID):", class: "crayons-field__label" %>
|
||||
<%= f.text_field :user_id, class: "crayons-textfield" %>
|
||||
<%= f.submit "Add Moderator", class: "crayons-btn" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if @tag_moderators.exists? %>
|
||||
<ul class="list-none">
|
||||
<% @tag_moderators.each do |user| %>
|
||||
|
|
@ -30,13 +37,6 @@
|
|||
This tag currently has no moderators.
|
||||
</div>
|
||||
<% end %>
|
||||
<%= form_with url: admin_tag_moderator_path(@tag.id), model: [:admin, @tag], method: :post, local: true do |f| %>
|
||||
<div class="crayons-field w-50">
|
||||
<%= f.label :user_id, "Add Moderator (ID):", class: "crayons-field__label" %>
|
||||
<%= f.text_field :user_id, class: "crayons-textfield" %>
|
||||
<%= f.submit "Add Moderator", class: "crayons-btn" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue