%s
', $this->Html->image('logo-purple.png', [ 'alt' => __('Cerebrate logo'), 'width' => 100, 'height' => 100, 'style' => ['filter: drop-shadow(4px 4px 4px #924da666);'] ]) ); echo sprintf('

%s

', __('Sign In')); $template = [ 'inputContainer' => '
{{content}}
', 'formGroup' => '{{input}}{{label}}', 'submitContainer' => '
{{content}}
', ]; $this->Form->setTemplates($template); echo $this->Form->create(null, ['url' => ['controller' => 'users', 'action' => 'login']]); echo $this->Form->control('username', ['label' => 'Username', 'class' => 'form-control mb-2', 'placeholder' => __('Username')]); echo $this->Form->control('password', ['type' => 'password', 'label' => 'Password', 'class' => 'form-control mb-3', 'placeholder' => __('Password')]); echo $this->Form->control(__('Login'), ['type' => 'submit', 'class' => 'btn btn-primary']); echo $this->Form->end(); if (!empty(Configure::read('Cerebrate')['security.registration.self-registration'])) { echo '
'; echo sprintf('%s %s', __('Doesn\'t have an account?'), __('Sign up')); echo '
'; } if (!empty(Configure::read('keycloak'))) { echo sprintf('

%s
', __('Or')); echo $this->Form->create(null, [ 'url' => Cake\Routing\Router::url([ 'prefix' => false, 'plugin' => 'ADmad/SocialAuth', 'controller' => 'Auth', 'action' => 'login', 'provider' => 'keycloak', '?' => ['redirect' => $this->request->getQuery('redirect')] ]), ]); echo $this->Bootstrap->button([ 'type' => 'submit', 'text' => __('Login with Keycloak'), 'variant' => 'secondary', 'class' => ['d-block', 'w-100'], 'image' => [ 'path' => '/img/keycloak_logo.png', 'alt' => 'Keycloak' ] ]); echo $this->Form->end(); } ?>