diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index aab7854..4161325 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -6,6 +6,7 @@ use frontend\assets\MaterializeAsset; use yii\helpers\Html; + use yii\helpers\Url; use yii\web\View; use yii\widgets\Breadcrumbs; use frontend\assets\AppAsset; @@ -28,6 +29,7 @@ JS; + <?= Html::encode($this->title) ?> head() ?> @@ -36,34 +38,26 @@ JS; beginBody() ?>
- - - menu + + getUser()->isGuest) { + ?> + + menuMenu +
- isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [], - ] - ) ?> +
diff --git a/frontend/views/site/login.php b/frontend/views/site/login.php index 56ea98e..ce3717b 100644 --- a/frontend/views/site/login.php +++ b/frontend/views/site/login.php @@ -11,19 +11,33 @@ $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?>
-

title) ?>

- -

Please fill out the following fields to login:

+
+
+

title) ?>

+ +

Please fill out the following fields to login:

+
+
-
+
'login-form']); ?> - field($model, 'username')->textInput(['autofocus' => true]) ?> - - field($model, 'password')->passwordInput() ?> - - field($model, 'rememberMe')->checkbox() ?> + field($model, 'username', [ + 'options' => [ + 'class' => 'input-field' + ] + ])->textInput(['autofocus' => true]) ?> + + field($model, 'password',[ + 'options' => [ + 'class' => 'input-field' + ] + ])->passwordInput() ?> + + field($model, 'rememberMe', [ + 'template' => '

{input}{label}

{error}' + ])->checkbox([], false) ?>
If you forgot your password you can . diff --git a/frontend/web/css/site.css b/frontend/web/css/site.css index 5f1e6b9..129278c 100644 --- a/frontend/web/css/site.css +++ b/frontend/web/css/site.css @@ -101,9 +101,9 @@ a.desc:after { border: none; } -@media(max-width:767px) { +@media (max-width: 767px) { .nav li > form > button.logout { - display:block; + display: block; text-align: left; width: 100%; padding: 10px 15px; @@ -118,3 +118,8 @@ a.desc:after { .nav > li > form > button.logout:focus { outline: none; } + +.button-collapse { + margin-left: 20px; + margin-top: 20px; +} \ No newline at end of file -- libgit2 0.21.4