diff --git a/work_sell/forms.py b/work_sell/forms.py index 00252f5..5d81052 100644 --- a/work_sell/forms.py +++ b/work_sell/forms.py @@ -46,6 +46,7 @@ class WorkSellForm(forms.ModelForm): 'term', 'term_type', ) + widgets = { 'construction_type': forms.Select(attrs={'class': 'selectpicker'}), 'building_classification': forms.Select(attrs={'class': 'selectpicker'}), diff --git a/work_sell/templates/worksell_edit.html b/work_sell/templates/worksell_edit.html index c4b7217..2f9340f 100644 --- a/work_sell/templates/worksell_edit.html +++ b/work_sell/templates/worksell_edit.html @@ -39,7 +39,7 @@
Специализации
+Специализации {{ form.specialization.errors.as_text }}
Бюджет{{ form.budget.errors.as_text }}
+Бюджет {{ form.budget.errors.as_text }}
Срок выполнения{{ form.budget.errors.as_text }}
+Срок выполнения {{ form.budget.errors.as_text }}
Вид строительства
- {{ form.construction_type}} +Вид строительства {{ form.construction_type.errors.as_text }}
+ {{ form.construction_type }}Классификация здания
- {{ form.building_classification}} +Классификация здания {{ form.building_classification.errors.as_text }}
+ {{ form.building_classification }}Фотографии
+Фотографии {{ form.photos.errors.as_text }}
{% for photo in form.photos.field.queryset.all %}