0.0.248 add translate for placeholders
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% trans "Имя" as p_name %}
|
||||
{% trans "Имя" as p_name %}
|
||||
|
||||
<div class="top_block_static_wrapper">
|
||||
<div class="top_block_static">
|
||||
<h2 id=title_static>{{ page.title }}</h2>
|
||||
@@ -23,14 +26,14 @@
|
||||
|
||||
<form>
|
||||
<div class="inputs_l">
|
||||
<input name="username" type="text" placeholder="Имя" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||
<input name="username" type="text" placeholder="{{ p_name }}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||
{% if form.username and form.errors.username %}
|
||||
<span>{{ form.errors.username }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="inputs_l">
|
||||
<input name="tel" type="number" placeholder="Телефон"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
|
||||
<input name="tel" type="number" placeholder="{% translate 'Телефон' %}"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
|
||||
{% if form.tel and form.errors.tel %}
|
||||
<span>{{ form.errors.tel }}</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user