This commit is contained in:
n1rwana 2021-12-15 22:14:42 +03:00
parent 1d52381654
commit fe72b98c1c
4 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,7 @@ use openvk\Web\Models\Entities\{Club, Photo};
use openvk\Web\Models\Entities\Notifications\ClubModeratorNotification;
use openvk\Web\Models\Repositories\{Clubs, Users, Albums, Managers};
use Chandler\Security\Authenticator;
final class GroupPresenter extends OpenVKPresenter
{
private $clubs;

View file

@ -127,8 +127,8 @@
function changeOwner(club, newOwner) {
let action = "/groups/" + club + "/setNewOwner/" + newOwner;
MessageBox("Передача прав владельца", `
Внимание! Вы передаёте права владельца пользователю {$user->getFullName()}. После передачи Вы получите роль администратора в сообществе.
MessageBox(tr("group_changeowner_modal_title"), `
tr("group_changeowner_modal_text", {$user->getFullName()})
<br/><br/>
<form id="transfer-owner-permissions-form" method="post">
<label for="password">Пароль</label>

View file

@ -241,6 +241,8 @@
"group_display_all_administrators" = "Display all administrators";
"group_dont_display_administrators_list" = "Display nothing";
"group_changeowner_modal_title" = "Owner's permissions transfer";
"group_changeowner_modal_text" = "Attention! You are transferring owner rights to user $1. This action is irreversible. After the transfer, you will remain an administrator, but you can easily stop being one.";
"group_owner_setted" = "The new owner ($1) has been successfully assigned to the community $2. You have been granted administrator rights in the community. If you want to return the owner role, contact <a href='/support?act=new'>site technical support</a>.";
"participants_zero" = "No participants";

View file

@ -251,6 +251,8 @@
"group_display_all_administrators" = "Отображать всех администраторов";
"group_dont_display_administrators_list" = "Ничего не отображать";
"group_changeowner_modal_title" = "Передача прав владельца";
"group_changeowner_modal_text" = "Внимание! Вы передаёте права владельца пользователю $1. Это действие необратимо. После передави вы останетесь адмиинстратором, но сможете легко перестать им быть.";
"group_owner_setted" = "Новый владелец ($1) успешно назначен в сообщество $2. Вам выданы права администратора в сообществе. Если Вы хотите вернуть роль владельца, обратитесь в <a href='/support?act=new'>техническую поддержку сайта</a>.";
"participants_zero" = "Ни одного участника";