openvk/Web/Presenters/templates/Auth/Register.xml
ZAZiOs c67607c3f9
Страница регистрации из 2007г (#788)
* Update @layout.xml

* Update @layout.xml

* Update Register.xml

* Update Login.xml

* Update style.css

* Update en.strings

* Update ru.strings

* Update ru_old.strings

* Update ru_sov.strings

* h2 -> .header2

* h2 + header2 styling

* Update Register.xml

* Update Register.xml

* Update Login.xml

* Welcome message addiction

* трахать

* +reg-welcome

* +reg-welcome

* +reg-welcome

* +reg-welcome (mixed up that with old rus one)

* +reg-welcome

* Adding UK localization

* Delete settings.json

* На всякий и тут обновлю на id в layout

Нужно для изменения иконок при создании тем.

* Update @layout.xml

* Minor changes

* minor changes

* Fixes requested by celestora

* пепяо с табами

* пепяо с табами
2023-01-07 22:52:50 +03:00

144 lines
6.3 KiB
XML

{extends "../@layout.xml"}
{block title}{_registration}{/block}
{block header}
{_registration}
{/block}
{block headIncludes}
{if !$referer}
<meta name="description" content="{tr('register_meta_desc', OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
{else}
<meta property="og:title" content="{tr('register_referer_meta_title', $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
<meta property="og:image" content="{$referer->getAvatarUrl()}" />
<meta name="description"
content="{tr('register_referer_meta_desc', $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
{/if}
{/block}
{block content}
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable'] || $referer}
<p n:if="!is_null($referer)" align="center">
{tr("invites_you_to", $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])|noescape}
</p>
<div style="margin: 10px;">
<h2 class="header2">{_registration}</h2>
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
<tbody>
<tr>
<td>
<img src="assets/packages/static/openvk/img/favicons/favicon64.png" style="width: 32px;" align="middle">
</td>
<td>
<b>{php echo OPENVK_ROOT_CONF['openvk']['appearance']['name']} {_registration_welcome_1}</b><br>
{_registration_welcome_2}
</td>
</tr>
</tbody>
</table>
<form method="POST" enctype="multipart/form-data">
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tbody>
<tr>
<h4 style="margin-left: 60px;">{_main}</h4>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_name}: </span>
</td>
<td class="regform-right">
<input type="text" name="first_name" required />
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_surname}: </span>
</td>
<td class="regform-right">
<input type="text" name="last_name" />
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_email}: </span>
</td>
<td class="regform-right">
<input type="email" name="email" required />
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_password}: </span>
</td>
<td class="regform-right">
<input type="password" name="password" required />
</td>
</tr>
</table>
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tr>
<h4 style="margin-left: 60px;">{_other_fields}</h4>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_birth_date}: </span>
</td>
<td class="regform-right">
<input max={date('Y-m-d')} name="birthday" type="date"/>
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_gender}: </span>
</td>
<td class="regform-right">
{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>
<tr>
<td class="regform-left">
<span class="nobold">CAPTCHA: </span>
</td>
<td class="regform-right">
{captcha_template()|noescape}
</td>
</tr>
</table>
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape}
<br /><br />
<input type="submit" value="{_registration}" class="button" /><br><br>
</div>
</tbody>
</form>
</div>
{else}
<h4>{_registration_closed}</h4>
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
<tbody>
<tr>
<td style="width: 20%;">
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 100%;"/>
</td>
<td>
{_registration_disabled_info}
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}
<br/>
<br/>
{_admin_banned_link_reason}:
<br>
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}</b>
{/if}
</td>
</tr>
</tbody>
</table>
{/if}
{/block}