mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
parent
607312dc1c
commit
585616c88f
1 changed files with 15 additions and 6 deletions
|
@ -89,12 +89,21 @@
|
|||
{_add_to_left_menu}
|
||||
{/if}
|
||||
</a>
|
||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||
<input type="hidden" name="act" value="rem" />
|
||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input type="submit" class="profile_link" value="{_leave_community}" />
|
||||
</form>
|
||||
{if $x->getSubscriptionStatus($thisUser) == false}
|
||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||
<input type="hidden" name="act" value="add" />
|
||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input type="submit" class="profile_link" value="{_join_community}" />
|
||||
</form>
|
||||
{else}
|
||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||
<input type="hidden" name="act" value="rem" />
|
||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input type="submit" class="profile_link" value="{_leave_community}" />
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
|
|
Loading…
Reference in a new issue