diff --git a/templates/partials/base.html b/templates/partials/base.html index 4918bd8..4fdd01b 100644 --- a/templates/partials/base.html +++ b/templates/partials/base.html @@ -37,9 +37,9 @@ {% endfor %} {% endif %} -
+
{{ request.user }}
- + {% if request.user.is_authenticated %} PK: {{ request.user.pk }}
Groups: {{ request.user.groups.all }} diff --git a/users/templates/customer_profile_open_projects.html b/users/templates/customer_profile_open_projects.html index 1c060a1..8cbab81 100644 --- a/users/templates/customer_profile_open_projects.html +++ b/users/templates/customer_profile_open_projects.html @@ -29,11 +29,13 @@
-
-

- Разместить заказ -

-
+ {% if request.user.is_customer %} +
+

+ Разместить заказ +

+
+ {% endif %}
@@ -50,9 +52,9 @@

@@ -62,7 +64,7 @@

@@ -72,19 +74,21 @@ {{ proj.budget }}

- + {% if request.user == proj.customer %} + + {% endif %} {% endfor %} diff --git a/users/templates/customer_profile_trashed_projects.html b/users/templates/customer_profile_trashed_projects.html index e5e221b..0fc09d0 100644 --- a/users/templates/customer_profile_trashed_projects.html +++ b/users/templates/customer_profile_trashed_projects.html @@ -56,10 +56,10 @@ {{ proj.created}}
  • - 523 + 0
  • - 523 + {{ proj.answers.count }}
  • {{ customer.get_full_name }} @@ -70,25 +70,28 @@

    {{ proj.budget }}

    - + + {% if request.user == proj.customer %} + + {% endif %} {% endfor %} diff --git a/users/templates/partials/customer_profile_info_block.html b/users/templates/partials/customer_profile_info_block.html index 6261c42..dc0cb45 100644 --- a/users/templates/partials/customer_profile_info_block.html +++ b/users/templates/partials/customer_profile_info_block.html @@ -41,21 +41,21 @@