diff --git a/src/views/layouts/main-login.php b/src/views/layouts/main-login.php new file mode 100644 index 0000000..1bdbc36 --- /dev/null +++ b/src/views/layouts/main-login.php @@ -0,0 +1,40 @@ +registerCssFile('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700'); +$this->registerCssFile('https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'); + +\hail812\adminlte3\assets\PluginAsset::register($this)->add('icheck-bootstrap'); +?> +beginPage() ?> + + + + + + AdminLTE 3 | Log in + + + registerCsrfMetaTags() ?> + head() ?> + + +beginBody() ?> +
+ + + + +
+ + +endBody() ?> + + +endPage() ?> \ No newline at end of file diff --git a/src/views/site/login.php b/src/views/site/login.php new file mode 100644 index 0000000..f34f061 --- /dev/null +++ b/src/views/site/login.php @@ -0,0 +1,60 @@ + +
+
+ + + 'login-form']) ?> + + field($model,'username', [ + 'options' => ['class' => 'form-group has-feedback'], + 'inputTemplate' => '{input}
', + 'template' => '{beginWrapper}{input}{error}{endWrapper}', + 'wrapperOptions' => ['class' => 'input-group mb-3'] + ]) + ->label(false) + ->textInput(['placeholder' => $model->getAttributeLabel('username')]) ?> + + field($model, 'password', [ + 'options' => ['class' => 'form-group has-feedback'], + 'inputTemplate' => '{input}
', + 'template' => '{beginWrapper}{input}{error}{endWrapper}', + 'wrapperOptions' => ['class' => 'input-group mb-3'] + ]) + ->label(false) + ->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?> + +
+
+
+ field($model, 'rememberMe')->checkbox() ?> +
+
+
+ 'btn btn-primary btn-block']) ?> +
+
+ + + + + + +

+ I forgot my password +

+

+ Register a new membership +

+
+ +
\ No newline at end of file