mirror of
https://github.com/openvk/openvk
synced 2025-07-07 16:29:50 +03:00
+
This commit is contained in:
parent
1d52381654
commit
fe72b98c1c
4 changed files with 7 additions and 2 deletions
|
@ -4,6 +4,7 @@ use openvk\Web\Models\Entities\{Club, Photo};
|
||||||
use openvk\Web\Models\Entities\Notifications\ClubModeratorNotification;
|
use openvk\Web\Models\Entities\Notifications\ClubModeratorNotification;
|
||||||
use openvk\Web\Models\Repositories\{Clubs, Users, Albums, Managers};
|
use openvk\Web\Models\Repositories\{Clubs, Users, Albums, Managers};
|
||||||
use Chandler\Security\Authenticator;
|
use Chandler\Security\Authenticator;
|
||||||
|
|
||||||
final class GroupPresenter extends OpenVKPresenter
|
final class GroupPresenter extends OpenVKPresenter
|
||||||
{
|
{
|
||||||
private $clubs;
|
private $clubs;
|
||||||
|
|
|
@ -127,8 +127,8 @@
|
||||||
function changeOwner(club, newOwner) {
|
function changeOwner(club, newOwner) {
|
||||||
let action = "/groups/" + club + "/setNewOwner/" + newOwner;
|
let action = "/groups/" + club + "/setNewOwner/" + newOwner;
|
||||||
|
|
||||||
MessageBox("Передача прав владельца", `
|
MessageBox(tr("group_changeowner_modal_title"), `
|
||||||
Внимание! Вы передаёте права владельца пользователю {$user->getFullName()}. После передачи Вы получите роль администратора в сообществе.
|
tr("group_changeowner_modal_text", {$user->getFullName()})
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<form id="transfer-owner-permissions-form" method="post">
|
<form id="transfer-owner-permissions-form" method="post">
|
||||||
<label for="password">Пароль</label>
|
<label for="password">Пароль</label>
|
||||||
|
|
|
@ -241,6 +241,8 @@
|
||||||
"group_display_all_administrators" = "Display all administrators";
|
"group_display_all_administrators" = "Display all administrators";
|
||||||
"group_dont_display_administrators_list" = "Display nothing";
|
"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>.";
|
"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";
|
"participants_zero" = "No participants";
|
||||||
|
|
|
@ -251,6 +251,8 @@
|
||||||
"group_display_all_administrators" = "Отображать всех администраторов";
|
"group_display_all_administrators" = "Отображать всех администраторов";
|
||||||
"group_dont_display_administrators_list" = "Ничего не отображать";
|
"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>.";
|
"group_owner_setted" = "Новый владелец ($1) успешно назначен в сообщество $2. Вам выданы права администратора в сообществе. Если Вы хотите вернуть роль владельца, обратитесь в <a href='/support?act=new'>техническую поддержку сайта</a>.";
|
||||||
|
|
||||||
"participants_zero" = "Ни одного участника";
|
"participants_zero" = "Ни одного участника";
|
||||||
|
|
Loading…
Reference in a new issue