echo Yii::t('app', 'Registered?'); ?> </span></div> <?php $form = ActiveForm::begin(['action' => \yii\helpers\Url::to(['site/login']), 'method' => 'post', 'id' => 'formLogin']); ?> <div class="col-lg-3 has-field"> <div style="height: 8px;"></div> <?php echo Html::activeTextInput($model, 'username', ['class' => 'input-username form-control input-sm', 'placeholder' => Yii::t('app', 'Email address')]); ?> </div> <div class="col-lg-2 has-field"> <div style="height: 8px;"></div> <?php echo Html::activePasswordInput($model, 'password', ['class' => 'input-password form-control input-sm', 'placeholder' => Yii::t('app', 'Password')]); ?> </div> <div class="col-lg-1 has-field"> <div style="height: 8px;"></div> <input type="submit" value="<?php echo Yii::t('app', 'Submit'); ?> " class="btn btn-primary btn-sm input-sm form-control"> <div style="height: 8px;"></div> </div> <?php ActiveForm::end(); ?> <div class="col-lg-2 col-xs-6" >
<?php echo !empty($loginError) ? Html::tag('div', $loginError, ['class' => 'alert alert-danger']) : ''; ?> <label for="inputEmail" class="sr-only"><?php echo Yii::t('app', 'Email address'); ?> </label> <?php echo Html::activeTextInput($model, 'username', ['id' => 'inputEmail', 'class' => 'form-control', 'placeholder' => Yii::t('app', 'Email address'), 'required' => '', 'autofocus' => '']); ?> <label for="inputPassword" class="sr-only"><?php echo Yii::t('app', 'Password'); ?> </label> <?php echo Html::activePasswordInput($model, 'password', ['id' => 'inputPassword', 'class' => 'form-control', 'placeholder' => Yii::t('app', 'Password'), 'required' => '']); ?> <button class="btn btn-lg btn-primary btn-block" type="submit"><?php echo Yii::t('app', 'Sign In'); ?> </button> <div style="margin: 10px;"> <a href="#" onclick="$('#form-password').show();$('#form-login').hide();return false"><?php echo Yii::t('app', 'Forgot My Password'); ?> </a> </div> <?php ActiveForm::end(); ?> </div>