-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
262 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
use yii\helpers\Html; | ||
use yii\bootstrap\ActiveForm; | ||
|
||
/* @var $this yii\web\View */ | ||
/* @var $form yii\bootstrap\ActiveForm */ | ||
/* @var $model \common\models\LoginForm */ | ||
|
||
$this->title = '登录'; | ||
|
||
$fieldOptions1 = [ | ||
'options' => ['class' => 'form-group has-feedback'], | ||
'inputTemplate' => "{input}<span class='glyphicon glyphicon-envelope form-control-feedback'></span>" | ||
]; | ||
|
||
$fieldOptions2 = [ | ||
'options' => ['class' => 'form-group has-feedback'], | ||
'inputTemplate' => "{input}<span class='glyphicon glyphicon-lock form-control-feedback'></span>" | ||
]; | ||
?> | ||
|
||
<div class="login-box"> | ||
<div class="login-logo"> | ||
<a href="#"><b><?= Yii::$app->config->get('SITE_NAME') ?></b></a> | ||
</div> | ||
<!-- /.login-logo --> | ||
<div class="login-box-body"> | ||
<p class="login-box-msg">登录</p> | ||
|
||
<?php $form = ActiveForm::begin(['id' => 'login-form', 'enableClientValidation' => false]); ?> | ||
|
||
<?= $form | ||
->field($model, 'username', $fieldOptions1) | ||
->label(false) | ||
->textInput(['placeholder' => $model->getAttributeLabel('username')]) ?> | ||
|
||
<?= $form | ||
->field($model, 'password', $fieldOptions2) | ||
->label(false) | ||
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?> | ||
|
||
<div class="row"> | ||
<div class="col-xs-8"> | ||
<?= $form->field($model, 'rememberMe')->checkbox() ?> | ||
</div> | ||
<!-- /.col --> | ||
<div class="col-xs-4"> | ||
<?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-flat btn-block btn-flat', 'name' => 'login-button']) ?> | ||
</div> | ||
<!-- /.col --> | ||
</div> | ||
|
||
|
||
<?php ActiveForm::end(); ?> | ||
|
||
|
||
</div> | ||
<!-- /.login-box-body --> | ||
</div><!-- /.login-box --> |
Oops, something went wrong.