mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
5556c88e44
Changes: 1. Add the ability to display only administrators on the page with a list of subscribers 2. Add the ability to hide the fact that the subscriber is an administrator 3. Fix display of large text in the block with the list of administrators 4. Fix display of the number of administrators
97 lines
4.2 KiB
XML
97 lines
4.2 KiB
XML
{extends "../@layout.xml"}
|
|
{block title}{_edit_group}{/block}
|
|
|
|
{block header}
|
|
<a href="{$club->getURL()}">{$club->getName()}</a> » {_edit_group}
|
|
{/block}
|
|
|
|
{block content}
|
|
<div class="tabs">
|
|
<div id="activetabs" class="tab">
|
|
<a id="act_tab_a" href="javascript:void(0)">
|
|
{_main}
|
|
</a>
|
|
</div>
|
|
<div class="tab">
|
|
<a href="/club{$club->getId()}/followers">
|
|
{_followers}
|
|
</a>
|
|
</div>
|
|
<div class="tab">
|
|
<a href="/club{$club->getId()}/stats">
|
|
{_statistics}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container_gray">
|
|
<h4>{_main_information}</h4>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
<table cellspacing="7" cellpadding="0" width="60%" border="0" align="center">
|
|
<tbody>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_"name"}: </span>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="name" value="{$club->getName()}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_"description"}: </span>
|
|
</td>
|
|
<td>
|
|
<textarea type="text" name="about" style="resize:vertical;">{$club->getDescription()}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_page_address}: </span>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="shortcode" value="{$club->getShortcode()}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_avatar}: </span>
|
|
</td>
|
|
<td>
|
|
<input type="file" name="ava" accept="image/*" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_wall}: </span>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="wall" value="1" {if $club->canPost()}checked{/if}/> {_group_allow_post_for_everyone}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120" valign="top">
|
|
<span class="nobold">{_group_administrators_list}: </span>
|
|
</td>
|
|
<td>
|
|
{var areAllAdminsHidden = $club->getManagersCount(true) == 0}
|
|
<input type="radio" name="administrators_list_display" value="0" n:attr="checked => $club->getAdministratorsListDisplay() == 0, disabled => $areAllAdminsHidden" /> {_group_display_only_creator}<br>
|
|
<input type="radio" name="administrators_list_display" value="1" n:attr="checked => $club->getAdministratorsListDisplay() == 1, disabled => $areAllAdminsHidden" /> {_group_display_all_administrators}<br>
|
|
<input type="radio" name="administrators_list_display" value="2" n:attr="checked => $club->getAdministratorsListDisplay() == 2, disabled => $areAllAdminsHidden" /> {_group_dont_display_administrators_list}<br>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<input type="submit" value="{_'save'}" class="button" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
{/block}
|