Updated admin Group editing page

• Updated:
- admin Group editing page to include list of admin mods, ability to delete group, ability to make (me/admin) admin of the group
This commit is contained in:
mgabdev
2020-12-30 12:16:47 -05:00
parent 381a5bacc6
commit 2e1f12a33a
4 changed files with 76 additions and 37 deletions

View File

@@ -6,12 +6,4 @@
- if group.is_featured?
%span Y
%td
= table_link_to '', 'Edit', admin_group_path(group)
-# %td
-# - if not group.is_featured?
-# = table_link_to 'power-off', t('admin.groups.enable_featured'), enable_featured_admin_group_path(group, page: params[:page], **@filter_params), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
-# - else
-# = table_link_to 'power-off', t('admin.groups.disable_featured'), disable_featured_admin_group_path(group, page: params[:page], **@filter_params), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
-# %td
-# = table_link_to 'times', t('admin.groups.delete'), admin_group_path(group, page: params[:page], **@filter_params), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
= table_link_to '', 'Edit', admin_group_path(group)