|
|
@ -16,54 +16,67 @@ define([
|
|
|
|
tabindex: '-1',
|
|
|
|
tabindex: '-1',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return [h('div#cp-main', [
|
|
|
|
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
var frame = function (content) {
|
|
|
|
h('div.container.cp-container', [
|
|
|
|
return [
|
|
|
|
h('div.row.cp-page-title', h('h1', Msg.register_header)),
|
|
|
|
h('div#cp-main', [
|
|
|
|
h('div.row.cp-register-det', [
|
|
|
|
Pages.infopageTopbar(),
|
|
|
|
h('div#data.hidden.col-md-6', [
|
|
|
|
h('div.container.cp-container', [
|
|
|
|
h('h2', Msg.register_notes_title),
|
|
|
|
h('div.row.cp-page-title', h('h1', Msg.register_header)),
|
|
|
|
Pages.setHTML(h('div.cp-register-notes'), Msg.register_notes)
|
|
|
|
h('div.row.cp-register-det', content),
|
|
|
|
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
h('div.cp-reg-form.col-md-6', [
|
|
|
|
Pages.infopageFooter(),
|
|
|
|
h('img.img-fluid', {
|
|
|
|
];
|
|
|
|
src: '/customize/images/swallow-the-key.png?' + urlArgs
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Config.restrictRegistration) { // XXX restricted-registration
|
|
|
|
|
|
|
|
Msg.register_closed = "This instance does not allow registration at the moment.";
|
|
|
|
|
|
|
|
return frame([
|
|
|
|
|
|
|
|
h('h4', Msg.register_closed)
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return frame([
|
|
|
|
|
|
|
|
h('div#data.hidden.col-md-6', [
|
|
|
|
|
|
|
|
h('h2', Msg.register_notes_title),
|
|
|
|
|
|
|
|
Pages.setHTML(h('div.cp-register-notes'), Msg.register_notes)
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
h('div.cp-reg-form.col-md-6', [
|
|
|
|
|
|
|
|
h('img.img-fluid', {
|
|
|
|
|
|
|
|
src: '/customize/images/swallow-the-key.png?' + urlArgs
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
h('div#userForm.form-group.hidden', [
|
|
|
|
|
|
|
|
h('a', {
|
|
|
|
|
|
|
|
href: '/features.html'
|
|
|
|
|
|
|
|
}, Msg.register_whyRegister),
|
|
|
|
|
|
|
|
h('input.form-control#username', {
|
|
|
|
|
|
|
|
type: 'text',
|
|
|
|
|
|
|
|
autocomplete: 'off',
|
|
|
|
|
|
|
|
autocorrect: 'off',
|
|
|
|
|
|
|
|
autocapitalize: 'off',
|
|
|
|
|
|
|
|
spellcheck: false,
|
|
|
|
|
|
|
|
placeholder: Msg.login_username,
|
|
|
|
|
|
|
|
autofocus: true,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
h('div#userForm.form-group.hidden', [
|
|
|
|
h('input.form-control#password', {
|
|
|
|
h('a', {
|
|
|
|
type: 'password',
|
|
|
|
href: '/features.html'
|
|
|
|
placeholder: Msg.login_password,
|
|
|
|
}, Msg.register_whyRegister),
|
|
|
|
}),
|
|
|
|
h('input.form-control#username', {
|
|
|
|
h('input.form-control#password-confirm', {
|
|
|
|
type: 'text',
|
|
|
|
type: 'password',
|
|
|
|
autocomplete: 'off',
|
|
|
|
placeholder: Msg.login_confirm,
|
|
|
|
autocorrect: 'off',
|
|
|
|
}),
|
|
|
|
autocapitalize: 'off',
|
|
|
|
h('div.checkbox-container', [
|
|
|
|
spellcheck: false,
|
|
|
|
UI.createCheckbox('import-recent', Msg.register_importRecent, true)
|
|
|
|
placeholder: Msg.login_username,
|
|
|
|
]),
|
|
|
|
autofocus: true,
|
|
|
|
h('div.checkbox-container', [
|
|
|
|
}),
|
|
|
|
tos,
|
|
|
|
h('input.form-control#password', {
|
|
|
|
]),
|
|
|
|
type: 'password',
|
|
|
|
h('button#register', Msg.login_register)
|
|
|
|
placeholder: Msg.login_password,
|
|
|
|
])
|
|
|
|
}),
|
|
|
|
|
|
|
|
h('input.form-control#password-confirm', {
|
|
|
|
|
|
|
|
type: 'password',
|
|
|
|
|
|
|
|
placeholder: Msg.login_confirm,
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
h('div.checkbox-container', [
|
|
|
|
|
|
|
|
UI.createCheckbox('import-recent', Msg.register_importRecent, true)
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
h('div.checkbox-container', [
|
|
|
|
|
|
|
|
tos,
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
h('button#register', Msg.login_register)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
]);
|
|
|
|
Pages.infopageFooter(),
|
|
|
|
|
|
|
|
])];
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|