foreach ($auth->getClients() as $client) { ?> <tr> <td style="width: 32px"> <?php echo Html::tag('span', '', ['class' => 'auth-icon ' . $client->getName()]); ?> </td> <td> <?php echo $client->getTitle(); ?> </td> <td style="width: 120px"> <?php echo $auth->isConnected($client) ? Html::a('Disconnect', $auth->createClientUrl($client), ['class' => 'btn btn-danger btn-block', 'data-method' => 'post']) : Html::a('Connect', $auth->createClientUrl($client), ['class' => 'btn btn-success btn-block']); ?> </td> </tr> <?php } ?> </table> <?php Connect::end(); ?> </div> </div> </div> </section>
echo $form->field($model, 'rememberMe')->checkbox(); ?> <div class="form-group"> <?php echo Html::submitButton($this->title, ['class' => 'btn btn-primary', 'name' => 'login-button']); ?> </div> <?php ActiveForm::end(); ?> </div> <div class="panel-footer"> <?php echo Html::a(Yii::t('app', 'Sign up'), '/site/signup'); ?> </div> </div> </div> <div class="col-md-3"> <div class="panel panel-default"> <div class="panel-heading">用其他平台的帐号登录</div> </br> <?php echo Connect::widget(['baseAuthUrl' => ['/user/security/auth']]); ?> </div> </div> </div> </div>