openvk/Web/Presenters/templates/Topics/Edit.xml

56 lines
2.1 KiB
XML
Raw Normal View History

{extends "../@layout.xml"}
{block title}{_edit_topic} "{$topic->getTitle()}"{/block}
{block header}
<a href="{$club->getURL()}">{$club->getCanonicalName()}</a>
»
<a href="/board{$club->getId()}">{_discussions}</a>
»
{_edit_topic}
{/block}
{block content}
<div class="container_gray">
<b>{$topic->getTitle()}</b>
<br />
<a href="{$topic->getOwner()->getURL()}">{$topic->getOwner()->getCanonicalName()}</a>
</div>
<form method="POST" enctype="multipart/form-data" style="margin-top: 20px;">
<table cellspacing="7" cellpadding="0" width="80%" border="0" align="center">
<tbody>
<tr>
<td width="120" valign="top">
<span class="nobold">{_title}</span>
</td>
<td>
<input type="text" name="title" style="width: 100%;" value="{$topic->getTitle()}" />
</td>
</tr>
<tr>
<td width="120" valign="top">
<span class="nobold">{_topic_settings}</span>
</td>
<td>
2021-12-15 20:00:26 +03:00
{if $topic->getClub()->canBeModifiedBy($thisUser)}
<input type="checkbox" name="pin" n:attr="checked => $topic->isPinned()" /> {_pin_topic}<br />
{/if}
<input type="checkbox" name="close" n:attr="checked => $topic->isClosed()" /> {_close_topic}
</td>
</tr>
<tr>
<td>
<a class="button" href="/topic{$topic->getPrettyId()}/delete?hash={urlencode($csrfToken)}">{_delete_topic}</a>
</td>
<td>
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_save}" class="button" />
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="hash" value="{$csrfToken}" />
</form>
{/block}