не работает код для подарочного сертификата

remotes/origin/hotfix/gift-cert-fix
gzbender 7 years ago
parent fb0aac90ec
commit 5bf04fe6d8
  1. 4
      apps/user/templates/user/profile-settings.html

@ -122,7 +122,7 @@
<div class="field__label">ДАТА РОЖДЕНИЯ</div>
<div class="field__wrap">
<vue-datepicker input-class="field__input" name="child_birthday" language="ru" format="dd/MM/yyyy"
value="{% if user.child_birthday %}{{ user.child_birthday | date:'d/m/Y' }}{% endif %}" placeholder="dd/mm/yyyy"/>
value="{% if user.child_birthday %}{{ user.child_birthday | date:'Y-m-d' }}{% endif %}" placeholder="dd/mm/yyyy"/>
</div>
{% for error in form.child_birthday.errors %}
<div class="field__error">{{ error }}</div>
@ -188,7 +188,7 @@
<div class="field__label">ДАТА РОЖДЕНИЯ</div>
<div class="field__wrap">
<vue-datepicker input-class="field__input" name="birthday" language="ru" format="dd/MM/yyyy"
value="{% if user.birthday %}{{ user.birthday | date:'d/m/Y' }}{% endif %}" placeholder="dd/mm/yyyy"/>
value="{% if user.birthday %}{{ user.birthday | date:'Y-m-d' }}{% endif %}" placeholder="dd/mm/yyyy"/>
</div>
{% for error in form.birthday.errors %}
<div class="field__error">{{ error }}</div>

Loading…
Cancel
Save