mirror of
https://github.com/openvk/openvk
synced 2025-07-07 16:29:50 +03:00
Compare commits
2 commits
1e6ede7236
...
06c3ba54f5
Author | SHA1 | Date | |
---|---|---|---|
|
06c3ba54f5 | ||
|
21c900ac26 |
6 changed files with 18 additions and 6 deletions
|
@ -385,7 +385,7 @@ final class SupportPresenter extends OpenVKPresenter
|
||||||
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
|
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
|
||||||
$agent->setIcon($this->postParam("avatar"));
|
$agent->setIcon($this->postParam("avatar"));
|
||||||
$agent->save();
|
$agent->save();
|
||||||
$this->flashFail("succ", "Успех", "Профиль отредактирован.");
|
$this->flashFail("succ", tr("agent_profile_edited"));
|
||||||
} else {
|
} else {
|
||||||
$agent = new SupportAgent;
|
$agent = new SupportAgent;
|
||||||
$agent->setAgent($this->user->identity->getId());
|
$agent->setAgent($this->user->identity->getId());
|
||||||
|
@ -393,7 +393,7 @@ final class SupportPresenter extends OpenVKPresenter
|
||||||
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
|
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
|
||||||
$agent->setIcon($this->postParam("avatar"));
|
$agent->setIcon($this->postParam("avatar"));
|
||||||
$agent->save();
|
$agent->save();
|
||||||
$this->flashFail("succ", "Успех", "Профиль создан. Теперь пользователи видят Ваши псевдоним и аватарку вместо стандартных аватарки и номера.");
|
$this->flashFail("succ", tr("agent_profile_created_1"), tr("agent_profile_created_2"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
<input name="name" type="text" value="{$agent->getCanonicalName()}" placeholder="{_helpdesk_agent} #777" />
|
<input name="name" type="text" value="{$agent->getCanonicalName()}" placeholder="{_helpdesk_agent} #777" />
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<label for="number">{_helpdesk_show_number}?</label>
|
<label for="number">{_helpdesk_show_number}?</label>
|
||||||
{$agent->isShowNumber()}
|
|
||||||
<select name="number">
|
<select name="number">
|
||||||
<option value="1" n:attr="selected => $agent->isShowNumber() === 1 ? true : false">{_yes}</option>
|
<option value="1" n:attr="selected => $agent->isShowNumber() === 1 ? true : false">{_yes}</option>
|
||||||
<option value="0" n:attr="selected => $agent->isShowNumber() === 0 ? true : false">{_no}</option>
|
<option value="0" n:attr="selected => $agent->isShowNumber() === 0 ? true : false">{_no}</option>
|
||||||
|
@ -71,7 +70,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<h4>Создать</h4>
|
<h4>{_create}</h4>
|
||||||
<br/>
|
<br/>
|
||||||
<form method="post" action="/support/agent{$agent_id}/edit">
|
<form method="post" action="/support/agent{$agent_id}/edit">
|
||||||
<label for="name">{_helpdesk_showing_name}</label>
|
<label for="name">{_helpdesk_showing_name}</label>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<a n:attr="id => ($act === 'closed' ? 'act_tab_a' : 'ki')" href="?act=closed">{_support_closed}</a>
|
<a n:attr="id => ($act === 'closed' ? 'act_tab_a' : 'ki')" href="?act=closed">{_support_closed}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<a href="/support/agent{$thisUser->getId()}">Мой профиль</a>
|
<a href="/support/agent{$thisUser->getId()}">{_agent_profile}</a>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</div>
|
</div>
|
||||||
{if $ticket->getType() === 1}
|
{if $ticket->getType() === 1}
|
||||||
<div class="post-author" style="border-top: none; padding: 14px; margin-top: 14px;">
|
<div class="post-author" style="border-top: none; padding: 14px; margin-top: 14px;">
|
||||||
Если у Вас больше нет вопросов, Вы можете <a onClick="closeTicket()">закрыть этот тикет</a>.
|
{_you_can_close_this_ticket_1} <a onClick="closeTicket()">{_you_can_close_this_ticket_2}</a>.
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="text" style="padding-top: 10px; border-bottom: #ECECEC solid 1px;">
|
<div class="text" style="padding-top: 10px; border-bottom: #ECECEC solid 1px;">
|
||||||
|
|
|
@ -913,6 +913,13 @@
|
||||||
"banned_in_support_1" = "Sorry, <b>$1</b>, but now you can't create tickets.";
|
"banned_in_support_1" = "Sorry, <b>$1</b>, but now you can't create tickets.";
|
||||||
"banned_in_support_2" = "And the reason for this is simple: <b>$1</b>. Unfortunately, this time we had to take away this opportunity from you forever.";
|
"banned_in_support_2" = "And the reason for this is simple: <b>$1</b>. Unfortunately, this time we had to take away this opportunity from you forever.";
|
||||||
|
|
||||||
|
"you_can_close_this_ticket_1" = "If you have no more questions, you can ";
|
||||||
|
"you_can_close_this_ticket_2" = "close this ticket";
|
||||||
|
"agent_profile_created_1" = "Profile created";
|
||||||
|
"agent_profile_created_2" = "Now users see your customized name and avatar instead of the default ones.";
|
||||||
|
"agent_profile_edited" = "Profile edited";
|
||||||
|
"agent_profile" = "My Agent Card";
|
||||||
|
|
||||||
/* Invite */
|
/* Invite */
|
||||||
|
|
||||||
"invite" = "Invite";
|
"invite" = "Invite";
|
||||||
|
|
|
@ -841,6 +841,12 @@
|
||||||
"ticket_changed_comment" = "Изменения вступят силу через несколько секунд.";
|
"ticket_changed_comment" = "Изменения вступят силу через несколько секунд.";
|
||||||
"banned_in_support_1" = "Извините, <b>$1</b>, но теперь вам нельзя создавать обращения.";
|
"banned_in_support_1" = "Извините, <b>$1</b>, но теперь вам нельзя создавать обращения.";
|
||||||
"banned_in_support_2" = "А причина этому проста: <b>$1</b>. К сожалению, на этот раз нам пришлось отобрать у вас эту возможность навсегда.";
|
"banned_in_support_2" = "А причина этому проста: <b>$1</b>. К сожалению, на этот раз нам пришлось отобрать у вас эту возможность навсегда.";
|
||||||
|
"you_can_close_this_ticket_1" = "Если у Вас больше нет вопросов, Вы можете ";
|
||||||
|
"you_can_close_this_ticket_2" = "закрыть этот тикет";
|
||||||
|
"agent_profile_created_1" = "Профиль создан";
|
||||||
|
"agent_profile_created_2" = "Теперь пользователи видят Ваши псевдоним и аватарку вместо стандартных аватарки и номера.";
|
||||||
|
"agent_profile_edited" = "Профиль отредактирован";
|
||||||
|
"agent_profile" = "Карточка агента";
|
||||||
|
|
||||||
/* Invite */
|
/* Invite */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue