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

145 lines
6.3 KiB
XML
Raw Normal View History

{extends "../@layout.xml"}
2022-08-09 09:37:08 +03:00
{block title}{_registration}{/block}
{block header}
2022-08-09 09:37:08 +03:00
{_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">
2021-10-10 11:41:38 +03:00
<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>
2021-10-10 11:41:38 +03:00
<tr>
<td class="regform-left">
<span class="nobold">{_password}: </span>
2021-10-10 11:41:38 +03:00
</td>
<td class="regform-right">
<input type="password" name="password" required />
2021-10-10 11:41:38 +03:00
</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}