created new placeholders for register inputs #1163

This commit is contained in:
daria 2023-07-27 14:09:15 +03:00
parent e607cf58c4
commit 848f1dafad
2 changed files with 8 additions and 5 deletions

View File

@ -7,8 +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
Msg.type_username = "Type your username"; // XXX also on register.js
Msg.type_password = "Type your password"; // XXX also on register.js
return [h('div#cp-main', [
Pages.infopageTopbar(),
h('div.container.cp-container', [

View File

@ -8,6 +8,9 @@ define([
], function (Config, $, h, UI, Msg, Pages) {
return function () {
document.title = Msg.register_header;
Msg.type_username = "Type your username"; // XXX
Msg.type_password = "Type your password"; // XXX
Msg.type_login_confirm = "Type your password again"; // XXX
var tos = $(UI.createCheckbox('accept-terms')).find('.cp-checkmark-label').append(Msg.register_acceptTerms).parent()[0];
@ -67,7 +70,7 @@ define([
autocorrect: 'off',
autocapitalize: 'off',
spellcheck: false,
placeholder: Msg.login_username,
placeholder: Msg.type_username,
autofocus: true,
}),
]),
@ -75,14 +78,14 @@ define([
h('label.register-label', { for: 'password' }, Msg.login_password + ':'),
h('input.form-control#password', {
type: 'password',
placeholder: Msg.login_password,
placeholder: Msg.type_password,
}),
]),
h('div.input-container', [
h('label.register-label', { for: 'password-confirm' }, Msg.login_confirm + ':'),
h('input.form-control#password-confirm', {
type: 'password',
placeholder: Msg.login_confirm,
placeholder: Msg.type_login_confirm,
}),
]),
]),