personal_area_php/frontend/views/site/signup.php

69 lines
2.9 KiB
PHP
Raw Normal View History

2024-04-24 18:02:58 +03:00
<?php
/** @var yii\web\View $this */
/** @var yii\bootstrap5\ActiveForm $form */
/** @var \frontend\models\SignupForm $model */
use yii\bootstrap5\Html;
use yii\bootstrap5\ActiveForm;
$this->title = 'Регистрация';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">Регистрация</p>
<?php $form = \yii\bootstrap4\ActiveForm::begin(['id' => 'form-signup']) ?>
<?= $form->field($model,'username', [
'options' => ['class' => 'form-group has-feedback'],
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-envelope"></span></div></div>',
'template' => '{beginWrapper}{input}{error}{endWrapper}',
'wrapperOptions' => ['class' => 'input-group mb-3']
])
->label(false)
->textInput(['placeholder' => $model->getAttributeLabel('username')]) ?>
<?= $form->field($model,'email', [
'options' => ['class' => 'form-group has-feedback'],
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-envelope"></span></div></div>',
'template' => '{beginWrapper}{input}{error}{endWrapper}',
'wrapperOptions' => ['class' => 'input-group mb-3']
])
->label(false)
->textInput(['placeholder' => $model->getAttributeLabel('email')]) ?>
<?= $form->field($model, 'password', [
'options' => ['class' => 'form-group has-feedback'],
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-lock"></span></div></div>',
'template' => '{beginWrapper}{input}{error}{endWrapper}',
'wrapperOptions' => ['class' => 'input-group mb-3']
])
->label(false)
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?>
<div class="row">
<div class="col-6">
<?= Html::submitButton('Регистрация', ['class' => 'btn btn-primary btn-block']) ?>
</div>
</div>
<?php \yii\bootstrap4\ActiveForm::end(); ?>
<!-- <div class="social-auth-links text-center mb-3">-->
<!-- <p>- OR -</p>-->
<!-- <a href="#" class="btn btn-block btn-primary">-->
<!-- <i class="fab fa-facebook mr-2"></i> Sign in using Facebook-->
<!-- </a>-->
<!-- <a href="#" class="btn btn-block btn-danger">-->
<!-- <i class="fab fa-google-plus mr-2"></i> Sign in using Google+-->
<!-- </a>-->
<!-- </div>-->
<!-- /.social-auth-links -->
</div>
<!-- /.login-card-body -->
</div>