openvk/Web/Presenters/templates/Admin/User.xml

99 lines
3.7 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "@layout.xml"}
{block title}
Редактировать {$user->getCanonicalName()}
{/block}
{block heading}
{$user->getCanonicalName()}
{/block}
{block content}
<div class="aui-tabs horizontal-tabs">
2021-09-11 17:39:14 +03:00
<form class="aui" method="POST">
2020-06-07 19:04:43 +03:00
<div class="field-group">
<label for="avatar">
Аватарка
</label>
<span id="avatar" class="aui-avatar aui-avatar-project aui-avatar-xlarge">
<span class="aui-avatar-inner">
2021-09-14 02:59:57 +03:00
<img src="{$user->getAvatarUrl()}" style="object-fit: cover;"></img>
2020-06-07 19:04:43 +03:00
</span>
</span>
</div>
<div class="field-group">
<label for="id">
ID
</label>
<input class="text medium-field" type="number" id="id" disabled value="{$user->getId()}" />
</div>
<div class="field-group">
<label for="guid">
GUID
</label>
<input class="text medium-field" id="guid" disabled value="{$user->getChandlerUser()->getId()}" />
</div>
<div class="field-group">
<label for="first_name">
Имя
</label>
<input class="text medium-field" type="text" id="first_name" name="first_name" value="{$user->getFirstName()}" />
</div>
<div class="field-group">
<label for="last_name">
Фамилия
</label>
<input class="text medium-field" type="text" id="last_name" name="last_name" value="{$user->getLastName()}" />
</div>
<div class="field-group">
<label for="nickname">
Никнейм
</label>
<input class="text medium-field" type="text" id="nickname" name="nickname" value="{$user->getPseudo()}" />
</div>
<div class="field-group">
<label for="status">
Статус
</label>
<input class="text medium-field" type="text" id="status" name="status" value="{$user->getStatus()}" />
</div>
<div class="field-group">
<label for="email">
E-Mail
</label>
<input class="text medium-field" type="email" id="email" name="email" value="{$user->getEmail()}" />
</div>
<div class="field-group">
<label for="shortcode">
Адрес страницы
</label>
<input class="text medium-field" type="text" id="shortcode" name="shortcode" value="{$user->getShortCode()}" />
</div>
2021-09-11 17:39:14 +03:00
<hr>
2020-06-07 19:04:43 +03:00
<div class="field-group">
2021-09-11 17:39:14 +03:00
<label for="city">
Верификация
2020-06-07 19:04:43 +03:00
</label>
2021-09-11 17:39:14 +03:00
<input class="toggle-large" type="checkbox" id="verify" name="verify" value="1" {if $user->isVerified()} checked {/if} />
2020-06-07 19:04:43 +03:00
</div>
<div class="field-group">
<label for="city">
2021-09-11 17:39:14 +03:00
Онлайн статус
2020-06-07 19:04:43 +03:00
</label>
2021-09-11 17:39:14 +03:00
<select name="online" class="select">
<option value="0" {if $user->onlineStatus() > 2}selected{/if}>По-умолчанию</option>
<option value="1" {if $user->onlineStatus() == 1}selected{/if}>Инкогнито</option>
<option value="2" {if $user->onlineStatus() == 2}selected{/if}>Юзер умер</option>
</select>
</div>
<div class="buttons-container">
<div class="buttons">
2021-09-13 08:42:04 +03:00
<input type="hidden" name="hash" value="{$csrfToken}" />
2021-09-11 17:39:14 +03:00
<input class="button submit" type="submit" value="Сохранить">
</div>
2020-06-07 19:04:43 +03:00
</div>
</form>
</div>
{/block}