connect.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project.
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. use yii\helpers\Html;
  11. use yii\widgets\ActiveForm;
  12. /**
  13. * @var yii\web\View $this
  14. * @var yii\widgets\ActiveForm $form
  15. * @var dektrium\user\models\User $model
  16. * @var dektrium\user\models\Account $account
  17. */
  18. $this->title = Yii::t('user', 'Sign in');
  19. $this->params['breadcrumbs'][] = $this->title;
  20. ?>
  21. <div class="row">
  22. <div class="col-md-4 col-md-offset-4">
  23. <div class="panel panel-default">
  24. <div class="panel-heading">
  25. <h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
  26. </div>
  27. <div class="panel-body">
  28. <div class="alert alert-info">
  29. <p>
  30. <?= Yii::t('user', 'In order to finish your registration, we need you to enter following fields') ?>:
  31. </p>
  32. </div>
  33. <?php $form = ActiveForm::begin([
  34. 'id' => 'connect-account-form',
  35. ]); ?>
  36. <?= $form->field($model, 'email') ?>
  37. <?= $form->field($model, 'username') ?>
  38. <?= Html::submitButton(Yii::t('user', 'Continue'), ['class' => 'btn btn-success btn-block']) ?>
  39. <?php ActiveForm::end(); ?>
  40. </div>
  41. </div>
  42. <p class="text-center">
  43. <?= Html::a(Yii::t('user', 'If you already registered, sign in and connect this account on settings page'), ['/user/settings/networks']) ?>.
  44. </p>
  45. </div>
  46. </div>