diff --git a/app/views/admin/tags/edit.html.erb b/app/views/admin/tags/edit.html.erb index 286a604a2..c6f565a8c 100644 --- a/app/views/admin/tags/edit.html.erb +++ b/app/views/admin/tags/edit.html.erb @@ -13,6 +13,13 @@

Moderators

+ <%= form_with url: admin_tag_moderator_path(@tag.id), model: [:admin, @tag], method: :post, local: true do |f| %> +
+ <%= 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" %> +
+ <% end %> <% if @tag_moderators.exists? %>
<% end %> - <%= form_with url: admin_tag_moderator_path(@tag.id), model: [:admin, @tag], method: :post, local: true do |f| %> -
- <%= 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" %> -
- <% end %>