password.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Author: lf
  4. * Blog: https://blog.feehi.com
  5. * Email: job@feehi.com
  6. * Created at: 2017-09-04 23:01
  7. */
  8. /* @var $this yii\web\View */
  9. /* @var $form yii\bootstrap\ActiveForm */
  10. /* @var $article common\models\Article */
  11. /* @var $model frontend\models\form\ArticlePasswordForm */
  12. use yii\helpers\Html;
  13. use yii\bootstrap\ActiveForm;
  14. $this->title = Yii::t('app', $article->title);
  15. $this->params['breadcrumbs'][] = $this->title;
  16. ?>
  17. <div class="content-wrap">
  18. <div class="fill">
  19. <h5><?= Yii::t('frontend', 'Please input the password of article id {id} : {article}', ['article'=>$article->title, 'id'=>$article->id]) ?></h5>
  20. <div class="marginTop">
  21. <ul class="formInput">
  22. <?php $form = ActiveForm::begin(['id' => 'form-login']); ?>
  23. <?= $form->field($model, 'password', ['template' => "<li class='item'>{label}{input}\n{error}\n{hint}</li>"])->textInput(['autofocus' => true]) ?>
  24. <div class="submitButton">
  25. <?= Html::submitButton(Yii::t('frontend', 'Go'), ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
  26. </div>
  27. <?php ActiveForm::end(); ?>
  28. </ul>
  29. </div>
  30. </div>
  31. </div>