diff --git a/app/templates/Users/login.php b/app/templates/Users/login.php new file mode 100644 index 0000000..f65ced8 --- /dev/null +++ b/app/templates/Users/login.php @@ -0,0 +1,11 @@ +Html->image('logo.png', ['alt' => 'CakePHP', 'class="form-signin"']); + echo '
'; + echo $this->Form->create(null, ['url' => ['controller' => 'users', 'action' => 'login']]); + echo $this->Form->control('username', ['label' => false, 'class' => 'form-control', 'placeholder' => __('Username')]); + echo $this->Form->control('password', ['type' => 'password', 'label' => false, 'class' => 'form-control', 'placeholder' => __('Password')]); + echo $this->Form->submit(__('Submit'), ['class' => 'btn btn-lg btn-primary btn-block']); + echo $this->Form->end(); + echo '
'; +?> + diff --git a/app/templates/layout/login.php b/app/templates/layout/login.php new file mode 100644 index 0000000..f1c84a3 --- /dev/null +++ b/app/templates/layout/login.php @@ -0,0 +1,29 @@ + + + + Html->charset() ?> + + + <?= 'Cerebrate' ?>: + <?= $this->fetch('title') ?> + + Html->meta('icon') ?> + Html->css('bootstrap.css') ?> + Html->css('login.css') ?> + Html->css('main.css') ?> + Html->css('font-awesome') ?> + Html->script('jquery-3.5.1.min.js') ?> + Html->script('popper.min.js') ?> + Html->script('bootstrap.bundle.js') ?> + Html->script('main.js') ?> + fetch('meta') ?> + fetch('css') ?> + fetch('script') ?> + Html->meta('favicon.ico', '/img/favicon.ico', ['type' => 'icon']); ?> + + + Flash->render() ?> + fetch('content') ?> + + +