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