mirror of https://github.com/xwiki-labs/cryptpad
modified UI of the login page #1163
This commit is contained in:
parent
8cd0d86575
commit
c208b88f54
|
@ -7,6 +7,8 @@ define([
|
|||
], function (h, UI, Msg, Pages, Config) {
|
||||
return function () {
|
||||
document.title = Msg.login_login;
|
||||
Msg.type_username = "Type your username"; // XXX
|
||||
Msg.type_password = "Type your password"; // XXX
|
||||
return [h('div#cp-main', [
|
||||
Pages.infopageTopbar(),
|
||||
h('div.container.cp-container', [
|
||||
|
@ -25,7 +27,7 @@ define([
|
|||
autocorrect: 'off',
|
||||
autocapitalize: 'off',
|
||||
spellcheck: false,
|
||||
placeholder: Msg.login_username,
|
||||
placeholder: Msg.type_username,
|
||||
autofocus: true,
|
||||
}),
|
||||
]),
|
||||
|
@ -34,16 +36,16 @@ define([
|
|||
h('input.form-control#password', {
|
||||
type: 'password',
|
||||
'name': 'password',
|
||||
placeholder: Msg.login_password,
|
||||
placeholder: Msg.type_password,
|
||||
}),
|
||||
]),
|
||||
]), // <-- Added closing bracket here
|
||||
]),
|
||||
h('div.checkbox-container', [
|
||||
UI.createCheckbox('import-recent', Msg.register_importRecent),
|
||||
]),
|
||||
h('div.extra', [
|
||||
(Config.restrictRegistration ?
|
||||
undefined :
|
||||
(Config.restrictRegistration?
|
||||
undefined:
|
||||
h('button#register.cp-secondary', Msg.login_register)
|
||||
),
|
||||
h('button.login', Msg.login_login)
|
||||
|
|
|
@ -150,6 +150,14 @@ body.html {
|
|||
.big-container{
|
||||
width: 100%;
|
||||
}
|
||||
.input-container{
|
||||
display:flex;
|
||||
flex-direction: row;
|
||||
align-items:center;
|
||||
}
|
||||
.label{
|
||||
flex-basis:20%;
|
||||
}
|
||||
}
|
||||
}
|
||||
footer {
|
||||
|
|
Loading…
Reference in New Issue