2020-12-15 19:31:30 -05:00
|
|
|
- content_for :page_title do
|
|
|
|
= @group.title
|
|
|
|
|
|
|
|
-# : todo :
|
|
|
|
-# add/remove admin
|
|
|
|
-# add/remove moderator
|
|
|
|
-# feature/unfeature
|
|
|
|
-# delete
|
|
|
|
-# view accounts
|
|
|
|
-# view removed accounts
|
|
|
|
|
|
|
|
.card.h-card{:style => "height:300px"}
|
|
|
|
.card__img
|
2020-12-21 13:25:05 -05:00
|
|
|
= image_tag full_asset_url(@group.cover_image.url), alt: '', :style => "height:300px"
|
2020-12-15 19:31:30 -05:00
|
|
|
|
|
|
|
.dashboard__counters{ style: 'margin-top: 10px' }
|
|
|
|
%div
|
|
|
|
%div
|
2020-12-21 13:25:05 -05:00
|
|
|
.dashboard__counters__num= number_with_delimiter Status.where(group:@group).count
|
2020-12-15 19:31:30 -05:00
|
|
|
.dashboard__counters__label Status Count
|
|
|
|
%div
|
|
|
|
%div
|
2020-12-21 13:25:05 -05:00
|
|
|
.dashboard__counters__num= number_with_delimiter @group.accounts.count
|
2020-12-15 19:31:30 -05:00
|
|
|
.dashboard__counters__label Member Count
|
|
|
|
%div
|
|
|
|
%div
|
2020-12-21 13:25:05 -05:00
|
|
|
.dashboard__counters__num= number_with_delimiter @group.removed_accounts.count
|
2020-12-15 19:31:30 -05:00
|
|
|
.dashboard__counters__label Removed Members Count
|
|
|
|
%div
|
|
|
|
%div
|
2020-12-21 13:25:05 -05:00
|
|
|
.dashboard__counters__num= number_with_delimiter @group.join_requests.count
|
|
|
|
.dashboard__counters__label Member Requests Count
|
|
|
|
|
|
|
|
= simple_form_for(@group, url: admin_group_path(@group.id), html: { method: :put }) do |f|
|
|
|
|
= render 'shared/error_messages', object: @group
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :title, wrapper: :with_label, label: 'Title'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :description, wrapper: :with_label, label: 'Description'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :slug, wrapper: :with_label, label: 'Slug'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :tags, wrapper: :with_label, label: 'Tags'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :is_nsfw, as: :boolean, wrapper: :with_label, label: 'Is NSFW?'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :is_featured, as: :boolean, wrapper: :with_label, label: 'Is Featured?'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :is_private, as: :boolean, wrapper: :with_label, label: 'Is Private?'
|
|
|
|
|
|
|
|
.fields-group
|
|
|
|
= f.input :is_visible, as: :boolean, wrapper: :with_label, label: 'Is Visible?'
|
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|
|
|
|
|
|
|
|
-# : todo : delete
|
|
|
|
-# : todo : list admins
|
|
|
|
-# : todo : list mods
|
|
|
|
-# : todo : make ME admin
|