Groups: Add a button to manage a group from the admin panel to the group page

This commit is contained in:
Maxim Leshchenko 2021-12-26 20:52:35 +02:00
parent 9d89a67a91
commit 83aec24393
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
3 changed files with 5 additions and 0 deletions

View file

@ -98,6 +98,9 @@
{if $club->canBeModifiedBy($thisUser)} {if $club->canBeModifiedBy($thisUser)}
<a href="/club{$club->getId()}/edit" id="profile_link">{_"edit_group"}</a> <a href="/club{$club->getId()}/edit" id="profile_link">{_"edit_group"}</a>
{/if} {/if}
{if $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
<a href="/admin/clubs/id{$club->getId()}" id="profile_link">{_"manage_group_action"}</a>
{/if}
{if $club->getSubscriptionStatus($thisUser) == false} {if $club->getSubscriptionStatus($thisUser) == false}
<form action="/setSub/club" method="post"> <form action="/setSub/club" method="post">
<input type="hidden" name="act" value="add" /> <input type="hidden" name="act" value="add" />

View file

@ -745,6 +745,7 @@
"login_as" = "Login as $1"; "login_as" = "Login as $1";
"manage_user_action" = "Manage user"; "manage_user_action" = "Manage user";
"manage_group_action" = "Manage group";
"ban_user_action" = "Ban user"; "ban_user_action" = "Ban user";
"warn_user_action" = "Warn user"; "warn_user_action" = "Warn user";

View file

@ -780,6 +780,7 @@
"login_as" = "Войти как $1"; "login_as" = "Войти как $1";
"manage_user_action" = "Управление пользователем"; "manage_user_action" = "Управление пользователем";
"manage_group_action" = "Управление группой";
"ban_user_action" = "Заблокировать пользователя"; "ban_user_action" = "Заблокировать пользователя";
"warn_user_action" = "Предупредить пользователя"; "warn_user_action" = "Предупредить пользователя";