#51 logout btn

This commit is contained in:
Bulat Damdinov 2016-03-23 19:55:38 +08:00
parent 27fbea32d8
commit c97c8c605d

View File

@ -43,7 +43,7 @@ AppAsset::register($this);
['label' => 'Login', 'url' => ['/site/login']]
) : (
'<li>'
. Html::beginForm(['/site/logout'], 'post')
. Html::beginForm(['/site/logout'], 'post', ['class' => 'navbar-form'])
. Html::submitButton(
'Logout (' . Yii::$app->user->identity->username . ')',
['class' => 'btn btn-link']