Skip to content

Commit

Permalink
Merge pull request #609 from kabalin/profile-placeholders
Browse files Browse the repository at this point in the history
Add placeholders for profile fields.
  • Loading branch information
kabalin authored Aug 1, 2023
2 parents ef61264 + 595f16c commit f29b32f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions views/module/user/profile.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
| Отмена
| Отмена

0 comments on commit f29b32f

Please sign in to comment.