diff --git a/projects/templates/project_list.html b/projects/templates/project_list.html
index 9a91273..a41a3cb 100644
--- a/projects/templates/project_list.html
+++ b/projects/templates/project_list.html
@@ -21,29 +21,21 @@
@@ -84,29 +76,21 @@
@@ -164,22 +148,12 @@
0 ответ от имени группы
-
- {{ proj.text }}
-
+ {{ proj.text }}
- -
- {{ proj.created }}
-
- -
- 0
-
- -
- {{ proj.answers.count }}
-
- -
- {{ proj.user }}
-
+ - {{ proj.created }}
+ - 0
+ - {{ proj.answers.count }}
+ - {{ proj.user }}
@@ -190,9 +164,11 @@
{% if proj.secure_deal %}
Безопасная сделка
{% endif %}
+
Стадия: "П"
+
Отказаться и переместить
в корзину
diff --git a/users/admin.py b/users/admin.py
index eb231f7..227bdbd 100644
--- a/users/admin.py
+++ b/users/admin.py
@@ -5,7 +5,7 @@ from .models import User, Team, ContractorFinancialInfo
class UserAdmin(admin.ModelAdmin):
readonly_fields = ('pk',)
- list_display = ('email','get_groups','is_active',)
+ list_display = ('email', 'get_groups', 'cro', 'is_active',)
def get_groups(self, obj):
return ', '.join(g.name for g in obj.groups.all())
diff --git a/users/forms.py b/users/forms.py
index b34e3f5..a3051bf 100644
--- a/users/forms.py
+++ b/users/forms.py
@@ -27,6 +27,9 @@ class UserEditForm(ModelForm):
'skype',
'avatar',
'contractor_specializations',
+ 'cro',
+ 'phone',
+ 'gender',
)
widgets = {
diff --git a/users/migrations/0017_user_phone.py b/users/migrations/0017_user_phone.py
new file mode 100644
index 0000000..6c51e9d
--- /dev/null
+++ b/users/migrations/0017_user_phone.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.6 on 2016-06-22 14:03
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('users', '0016_auto_20160617_1815'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='user',
+ name='phone',
+ field=models.CharField(blank=True, max_length=30, null=True),
+ ),
+ ]
diff --git a/users/models.py b/users/models.py
index a58ac85..8439982 100644
--- a/users/models.py
+++ b/users/models.py
@@ -99,7 +99,7 @@ class User(AbstractBaseUser, PermissionsMixin):
website = models.CharField(max_length=255, blank=True)
date_of_birth = models.DateTimeField()
avatar = models.ImageField(upload_to='users/avatars/', blank=True)
-
+ phone = models.CharField(max_length=30, blank=True, null=True)
@property
def is_staff(self):
diff --git a/users/templates/contractor_profile.html b/users/templates/contractor_profile.html
index 38407a0..ff950e4 100644
--- a/users/templates/contractor_profile.html
+++ b/users/templates/contractor_profile.html
@@ -17,30 +17,38 @@
@@ -63,10 +71,15 @@
{% load projects_tags %}
{% ratings_widget contractor.pk %}
-
+
+ {% if contractor.cro %}
+
+ {% endif %}
+
+
diff --git a/users/templates/contractor_profile_edit.html b/users/templates/contractor_profile_edit.html
index f2f8786..1e06465 100644
--- a/users/templates/contractor_profile_edit.html
+++ b/users/templates/contractor_profile_edit.html
@@ -7,6 +7,17 @@