added visual labels for register inputs #1163

This commit is contained in:
daria 2023-07-26 14:31:18 +03:00
parent 3f60d544c7
commit 8cd0d86575

View File

@ -52,29 +52,40 @@ define([
h('div.cp-reg-form.col-md-6', [
h('div#userForm.form-group.hidden', [
h('div.cp-register-instance', [
Msg._getKey('register_instance', [ Pages.Instance.name ]),
Msg._getKey('register_instance', [Pages.Instance.name]),
h('br'),
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('input.form-control#password', {
type: 'password',
placeholder: Msg.login_password,
}),
h('input.form-control#password-confirm', {
type: 'password',
placeholder: Msg.login_confirm,
}),
h('div.big-container', [
h('div.input-container', [
h('label', { for: 'username' }, Msg.login_username + ':'),
h('input.form-control#username', {
type: 'text',
autocomplete: 'off',
autocorrect: 'off',
autocapitalize: 'off',
spellcheck: false,
placeholder: Msg.login_username,
autofocus: true,
}),
]),
h('div.input-container', [
h('label', { for: 'password' }, Msg.login_password + ':'),
h('input.form-control#password', {
type: 'password',
placeholder: Msg.login_password,
}),
]),
h('div.input-container', [
h('label', { for: 'password-confirm' }, Msg.login_confirm + ':'),
h('input.form-control#password-confirm', {
type: 'password',
placeholder: Msg.login_confirm,
}),
]),
]),
h('div.checkbox-container', [
UI.createCheckbox('import-recent', Msg.register_importRecent, true)
]),
@ -85,6 +96,4 @@ define([
])
]);
};
});