From 595f16c0a5d40033f43a01e5a46d0391ec90587e Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Tue, 1 Aug 2023 09:20:14 +0100 Subject: [PATCH] Add placeholders for profile fields. --- views/module/user/profile.pug | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/module/user/profile.pug b/views/module/user/profile.pug index 91117bc03..297746d7f 100644 --- a/views/module/user/profile.pug +++ b/views/module/user/profile.pug @@ -9,9 +9,9 @@ .form-group(data-bind="style: {display: canBeEdit() || u.firstName().length || u.lastName().length > 0 ? '' : 'none'}") label.col-sm-3.col-md-2.control-label(for="inName") Реальное имя .col-sm-3.col-md-2 - input.form-control(type="text", id="inName", data-bind="attr: {size: u.firstName().length, disabled: !editMode()}, value: u.firstName, valueUpdate: 'afterkeydown'") + input.form-control(type="text", id="inName", data-bind="attr: {size: u.firstName().length, disabled: !editMode()}, value: u.firstName, valueUpdate: 'afterkeydown'", placeholder='Имя') .col-sm-3.col-md-2 - input.form-control(type="text", id="inLastName", data-bind="attr: {disabled: !editMode()}, value: u.lastName, valueUpdate: 'afterkeydown'") + input.form-control(type="text", id="inLastName", data-bind="attr: {disabled: !editMode()}, value: u.lastName, valueUpdate: 'afterkeydown'", placeholder='Фамилия') .form-group label.col-sm-3.col-md-2.control-label(for="inBirthdate") Дата рождения .col-sm-3.col-md-2 @@ -30,9 +30,9 @@ .form-group(data-bind="style: {display: canBeEdit() || u.country().length || u.city().length > 0 ? '' : 'none'}") label.col-sm-3.col-md-2.control-label(for="inResidence") Резиденция .col-sm-3.col-md-2 - input.form-control(type="text", id='inResidence', data-bind="attr: {disabled: !editMode()}, size: u.country().length, value: u.country, valueUpdate: 'afterkeydown'") + input.form-control(type="text", id='inResidence', data-bind="attr: {disabled: !editMode()}, size: u.country().length, value: u.country, valueUpdate: 'afterkeydown'", placeholder='Страна') .col-sm-3.col-md-2 - input.form-control(type="text", id="inResidence2", data-bind="attr: {disabled: !editMode()}, value: u.city, valueUpdate: 'afterkeydown'") + input.form-control(type="text", id="inResidence2", data-bind="attr: {disabled: !editMode()}, value: u.city, valueUpdate: 'afterkeydown'", placeholder='Город') .form-group(data-bind="style: {display: canBeEdit() || u.work().length > 0 ? '' : 'none'}") label.col-sm-3.col-md-2.control-label(for="inInterested") Деятельность .col-sm-3.col-md-2 @@ -76,4 +76,4 @@ span(data-bind="text: editMode() ? ' Сохранить профиль' : ' Редактировать'") button.btn.btn-danger(type="button", data-bind="style: {display: editMode() ? '' : 'none'}, event: {click: function(data, event) { if (data.editMode()) {data.cancelUser()}}}") span.glyphicon.glyphicon-remove - | Отмена \ No newline at end of file + | Отмена