Groups: Fix tabs and div block

I have SO many questions...
This commit is contained in:
Ilya Prokopenko 2022-01-31 04:45:56 +03:00
parent 77bda53ad9
commit 42f862eaec
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -2,16 +2,16 @@
{var iterator = $user->getClubs($page, $admin)} {var iterator = $user->getClubs($page, $admin)}
{var count = $user->getClubCount($admin)} {var count = $user->getClubCount($admin)}
{block title}{_"groups"}{/block} {block title}
{_groups}
{/block}
{block header} {block header}
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} {if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
{_my_groups} {_my_groups}
{else} {else}
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_"groups"} <a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_groups}
{/if} {/if}
<div n:if="!is_null($thisUser) && $user->getId() === $thisUser->getId()" style="float:right;">
</div>
{/block} {/block}
{* BEGIN ELEMENTS DESCRIPTION *} {* BEGIN ELEMENTS DESCRIPTION *}
@ -70,19 +70,21 @@
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} {if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
<div class="groups_options"> <div class="groups_options">
<div id="gp_container" style="width: 200px;margin-right: 40px;"> <div id="gp_container" style="width: 200px;margin-right: 40px;">
<h4>{_"open_new_group"}</h4> <h4>{_open_new_group}</h4>
<span>{_"open_group_desc"}</span> <span>{_open_group_desc}</span>
<form action="/groups_create"> <form action="/groups_create">
<button class="button">{_"create_group"}</button></div> <button class="button">{_create_group}</button>
</form> </form>
</div>
<div id="gp_container" style="width: 344px;"> <div id="gp_container" style="width: 344px;">
<h4>{_"search_group"}</h4> <h4>{_search_group}</h4>
<span>{_"search_group_desc"}</span> <span>{_search_group_desc}</span>
<form action="/search"> <form action="/search">
<input name="type" type="hidden" value="groups"> <input name="type" type="hidden" value="groups">
<input name="query" class="header_search_input" value="" style="background: none;width: 155px;padding-left: 3px;"> <input name="query" class="header_search_input" value="" style="background: none;width: 155px;padding-left: 3px;">
<button class="button">{_"search_by_groups"}</button> <button class="button">{_search_by_groups}</button>
</form></div> </form>
</div>
</div> </div>
{/if} {/if}
{/block} {/block}