1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00
yii2-nomer/views/try/index.php
2020-02-05 06:34:26 +03:00

36 lines
1.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\widgets\MaskedInput;
/* @var $this \yii\web\View */
/* @var $user \app\models\User */
$user = \Yii::$app->getUser()->getIdentity();
?>
<div class="search">
<div class="clfix">
<h2>Попробовать бесплатно</h2>
<?php if($user->is_test): ?>
<p>К сожалению вы уже брали тестовый доступ :(</p><br />
<?php else: ?>
<p>На указанный ниже номер телефона придет смс с кодом подтверждения.</p><br />
<?=Html::beginForm(["try/index"]);?>
<?= MaskedInput::widget([
'name' => 'phone',
'mask' => '+7 ( 999 ) 999 - 99 - 99',
'options' => [
'type' => 'tel',
'class' => 'searchPhone searchPhoneMain',
'placeholder' => '+7 ( ___ ) ___ - __ - __'
]
]); ?>
<input type="submit" class="searchBtn inpBtn" value="Попробовать">
<?=Html::endForm();?>
<?php endif; ?>
</div>
</div>