signup.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /* @var $this yii\web\View */
  3. /* @var $form yii\bootstrap\ActiveForm */
  4. /* @var $model \frontend\models\SignupForm */
  5. use yii\helpers\Html;
  6. use yii\bootstrap\ActiveForm;
  7. use yii\helpers\Url;
  8. //$this->title = '注册';
  9. ?>
  10. <div class="middle-box text-center loginscreen animated fadeInDown">
  11. <div>
  12. <div>
  13. <h1 class="logo-name">GD</h1>
  14. </div>
  15. <h3 style="font-weight:600;">工地宝公司注册</h3>
  16. <br>
  17. <div class="site-signup">
  18. <h1><?= Html::encode($this->title) ?></h1>
  19. <div class="col-lg-5" style="width: 300px">
  20. <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
  21. <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
  22. <?= $form->field($model, 'email') ?>
  23. <?= $form->field($model, 'password')->passwordInput() ?>
  24. <div class="form-group">
  25. <?= Html::submitButton('注册', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  26. </div>
  27. <?php ActiveForm::end(); ?>
  28. </div>
  29. </div>
  30. </div>
  31. </div>