File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 11< form method ="post " novalidate autocomplete ="off ">
22 {% csrf_token %}
33
4- < div >
5- < label for ="{{ form.first_name.id_for_label }} "> Имя</ label >
6- {{ form.first_name.as_widget(attrs={
7- 'id': 'id_first_name',
8- 'name': 'first_name',
9- 'maxlength': '150',
10- 'class': 'form-control',
11- 'placeholder': 'Имя',
12- 'required': ''
13- }) }}
14- {% for error in form.first_name.errors %}
15- < div style ="color: red; "> {{ error }}</ div >
16- {% endfor %}
17- </ div >
4+ < label class ="form-label " for ="id_first_name "> Имя</ label >
5+ {{ form.first_name.as_widget(attrs={
6+ 'id': 'id_first_name',
7+ 'name': 'first_name',
8+ 'maxlength': '150',
9+ 'class': 'form-control',
10+ 'placeholder': 'Имя',
11+ 'required': ''
12+ }) }}
1813
1914 < div >
2015 < label for ="{{ form.last_name.id_for_label }} "> Фамилия</ label >
You can’t perform that action at this time.
0 commit comments