openvk/Web/Presenters/templates/Auth/Register.xml

115 lines
4.8 KiB
XML
Raw Normal View History

{extends "../@layout.xml"}
{block title}{_"registration"}{/block}
{block header}
{_"registration"}
{/block}
{block headIncludes}
{if !$referer}
<meta name="description" content="Зарегистрируйтесь в OpenVK прямо сейчас!" />
{else}
<meta property="og:title" content="{$referer->getFullName()} приглашает вас в OpenVK!" />
<meta property="og:image" content="{$referer->getAvatarUrl()}" />
<meta name="description"
content="Присоединяйтесь к {$referer->getFullName()} и множеству других пользователей в OpenVK!" />
{/if}
{/block}
{block content}
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable'] || $referer}
<p n:if="!is_null($referer)" align="center">
<strong>{$referer->getFullName()}</strong> приглашает вас в OpenVK!
</p>
<form method="POST" enctype="multipart/form-data">
2021-10-10 11:41:38 +03:00
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tbody>
<tr>
<td>
<span>{_"name"}: </span>
</td>
<td>
<input type="text" name="first_name" required />
</td>
</tr>
<tr>
<td>
<span>{_"surname"}: </span>
</td>
<td>
<input type="text" name="last_name" required />
</td>
</tr>
<tr>
<td>
<span>{_"gender"}: </span>
</td>
<td>
{var femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
<select name="sex" required>
<option n:attr="selected => !$femalePreferred" value="male">{_"male"}</option>
<option n:attr="selected => $femalePreferred" value="female">{_"female"}</option>
</select>
</td>
</tr>
2021-10-10 11:41:38 +03:00
<tr>
<td>
<span>{_"birth_date"}: </span>
</td>
<td>
<input max={date('Y-m-d')} name="birthday" type="date"/>
</td>
</tr>
<tr></tr>
<tr>
<td>
<span>{_"email"}: </span>
</td>
<td>
<input type="email" name="email" required />
</td>
</tr>
<tr>
<td>
<span>{_"password"}: </span>
</td>
<td>
<input type="password" name="password" required />
</td>
</tr>
<tr>
<td>
<span>CAPTCHA: </span>
</td>
<td>
{captcha_template()|noescape}
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_'registration'}" class="button" />
<a href="/login">{_"log_in"}</a>
</td>
</tr>
</tbody>
</table>
</form>
{else}
<center>
<img src="/assets/packages/static/openvk/img/oof.apng" alt="Регистрация закрыта." style="width: 20%;" />
<p>
Регистрация отключена системным администратором. При возможности попросите приглашение у вашего знакомого, если он зарегистрирован на этом сайте.
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}
<br/><br/><b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}</b>
{/if}
</p>
</center>
{/if}
{/block}