mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-05-04 17:21:15 +02:00
26 lines
No EOL
643 B
JavaScript
26 lines
No EOL
643 B
JavaScript
import html from 'choo/html';
|
|
|
|
import { LoginController } from './controller';
|
|
|
|
export const loginView = (state, emit) => {
|
|
const controller = new LoginController(state);
|
|
const { i18n } = controller;
|
|
|
|
return html`<section>
|
|
|
|
<article class="card">
|
|
<div class="container wide">
|
|
<label>
|
|
<span>${i18n.__('login.email')}</span>
|
|
<input type="email" name="email">
|
|
</label>
|
|
<label>
|
|
<span>${i18n.__('login.password')}</span>
|
|
<input type="password" name="password">
|
|
</label>
|
|
<input type="submit" value="${i18n.__('login.login_button')}">
|
|
</div>
|
|
</article>
|
|
|
|
</section>`;
|
|
} |