openvk/Web/Presenters/templates/Report/View.xml
n1rwana 8fb393ca9b
Обновление репортов (#715)
* Репорты живы

* 2
2022-09-17 00:06:37 +03:00

41 lines
2 KiB
XML

{extends "../@layout.xml"}
{block title}{$report->getReason()}{/block}
{block header}
<a href="/admin/support/reports">{_list_of_reports}</a>
»
{_report_number}{$report->getId()}
{/block}
{block content}
<p><b>{_comment}: </b>{$report->getReason()}</p>
{if $report->getContentType() == "post"}
{include "../components/post/oldpost.xml", post => $report->getContentObject()}
{elseif $report->getContentType() == "photo"}
{include "../components/photo.xml", photo => $report->getContentObject()}
{elseif $report->getContentType() == "video"}
{include "../components/video.xml", video => $report->getContentObject()}
{elseif $report->getContentType() == "group"}
{include "../components/group.xml", group => $report->getContentObject()}
{else}
Error
{/if}
<center>
<form n:if="$report->getContentType() != 'group'" action="/admin/reportAction{$report->getId()}" method="post">
{include "../components/post/oldpost.xml", post => $report->getContentObject(), forceNoPinLink => TRUE, forceNoDeleteLink => TRUE, forceNoShareLink => TRUE, forceNoLike => TRUE}
<center>
<form action="/admin/support/reportAction{$report->getId()}" method="post">
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" name="ban" value="{_ban_user_action}" class="button">
<input type="submit" name="delete" value="{_delete}" class="button">
<input type="submit" name="ignore" value="{_ignore_report}" class="button">
</form>
<form n:if="$report->getContentType() == 'group'" action="/admin/reportAction{$report->getId()}" method="post">
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" name="banClubOwner" value="Заблокировать создателя" class="button">
<input type="submit" name="banClub" value="Заблокировать группу" class="button">
<input type="submit" name="ignore" value="{_ignore_report}" class="button">
</form>
</center>
{/block}