diff --git a/assets/css/main.css b/assets/css/main.css index ff529f7..6a00ed6 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -921,6 +921,10 @@ footer:after { margin-right: 0; } +.desPro li a:hover { + text-decoration: underline !important; +} + .textPro { width: 100%; float: left; @@ -5693,7 +5697,7 @@ input[type="radio"]:checked + span { font-weight: normal; line-height: 1.42857143; color: #333333; - white-space: nowrap; + /*white-space: nowrap;*/ } .select2-results .select2-result-label:hover{ background-color: #f2f2f2; @@ -5977,7 +5981,7 @@ a.linkS2[data-target="#withdraw-money"]{ margin-top: 0px; } .changeBlock { - /*min-height: 650px;*/ + min-height: 500px; display: table; padding: 143px 20px 120px 20px; } diff --git a/assets/js/chat.js b/assets/js/chat.js index 4f06bea..0cb86cd 100644 --- a/assets/js/chat.js +++ b/assets/js/chat.js @@ -781,7 +781,7 @@ function dialog (message, yesCallback, notCallback) { console.log(json); $("#review-add").modal('hide'); $("#leaveReview").hide(); - var currOrder = json.project; + var currOrder = json.order; var currRecipent = json.target_user; socket.send_stages_approve({ diff --git a/projects/forms.py b/projects/forms.py index 476efa4..74bca1e 100644 --- a/projects/forms.py +++ b/projects/forms.py @@ -85,6 +85,7 @@ class ProjectFilterRealtyForm(forms.ModelForm): self.fields['construction_type'].required = False self.fields['location'].queryset = Location.objects.root_nodes()[0].get_descendants() + self.fields['building_classification'].queryset = BuildingClassfication.objects.root_nodes()[0].get_descendants() # self.fields['location'].queryset = Location.objects # Migrate with this enabled @@ -152,8 +153,8 @@ class CustomerProjectEditForm(forms.ModelForm): class RealtyForm(forms.ModelForm): building_classification = TreeNodeChoiceField( - BuildingClassfication.objects.all(), - label="", initial='', + BuildingClassfication.objects.exclude(name='_root'), + label="ll", initial='', widget=forms.Select(attrs={ 'class': 'selectpicker', 'id': 'realtyBuildingClassificationId' diff --git a/reviews/serializers.py b/reviews/serializers.py index e985c86..99dadee 100644 --- a/reviews/serializers.py +++ b/reviews/serializers.py @@ -7,6 +7,7 @@ from users.serializers import UserSerializer, TeamSerializer class ReviewSerializer(ModelSerializer): target_user = serializers.SerializerMethodField(read_only=True) + order = serializers.SerializerMethodField(read_only=True) class Meta: model = Review @@ -24,8 +25,12 @@ class ReviewSerializer(ModelSerializer): 'target_contractor', 'target_team', 'target_user', + 'order', ) + def get_order(self, obj): + return obj.project.order.pk + def get_target_user(self, obj): if obj.target_customer: return obj.target_customer.pk diff --git a/templates/partials/base.html b/templates/partials/base.html index 9211d34..ea2b62a 100644 --- a/templates/partials/base.html +++ b/templates/partials/base.html @@ -84,7 +84,7 @@ var port = '{{ request.META.SERVER_PORT }}'; var queryString = '{{ request.get_full_path }}'; - if ((queryString.indexOf('/chat') != 0) && (queryString.indexOf('/users/contractor-office/510/work-projects') != 0)) { + if ((queryString.indexOf('/chat') != 0) && (queryString.indexOf('/users/contractor-office/work-projects') != 0)) { domain = domain.replace(':' + port, ''); var url = 'ws://' + domain + '/chat/' + userId + '/'; var sock = new WebSocket(url); diff --git a/users/templates/partials/contractor_profile_tabs.html b/users/templates/partials/contractor_profile_tabs.html index c81a007..b4f0ed4 100644 --- a/users/templates/partials/contractor_profile_tabs.html +++ b/users/templates/partials/contractor_profile_tabs.html @@ -5,6 +5,8 @@ {% url 'users:contractor-office-open-projects' as contractor_office_open_projects_url %} {% url 'users:contractor-office-chat-projects' as contractor_office_chat_projects_url %} +{% load user_tags %} +