connect.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 col-sm-6 col-sm-offset-3">
  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(
  31. 'user',
  32. 'In order to finish your registration, we need you to enter following fields'
  33. ) ?>:
  34. </p>
  35. </div>
  36. <?php $form = ActiveForm::begin([
  37. 'id' => 'connect-account-form',
  38. ]); ?>
  39. <?= $form->field($model, 'email') ?>
  40. <?= $form->field($model, 'username') ?>
  41. <?= Html::submitButton(Yii::t('user', 'Continue'), ['class' => 'btn btn-success btn-block']) ?>
  42. <?php ActiveForm::end(); ?>
  43. </div>
  44. </div>
  45. <p class="text-center">
  46. <?= Html::a(
  47. Yii::t(
  48. 'user',
  49. 'If you already registered, sign in and connect this account on settings page'
  50. ),
  51. ['/user/settings/networks']
  52. ) ?>.
  53. </p>
  54. </div>
  55. </div>