diff --git a/users/forms.py b/users/forms.py index c7f8c3d..399e851 100644 --- a/users/forms.py +++ b/users/forms.py @@ -70,6 +70,7 @@ class UserProfileEditFullForm(forms.ModelForm): 'last_name', 'patronym', 'location', + 'organization_name', 'contractor_specializations', # Специализации 'contractor_building_classifications', # Классификация зданий 'contractor_construction_types', # Вид строительства diff --git a/users/migrations/0022_user_organization_name.py b/users/migrations/0022_user_organization_name.py new file mode 100644 index 0000000..88a7cd4 --- /dev/null +++ b/users/migrations/0022_user_organization_name.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2017-01-04 12:54 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0021_user_raw_password'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='organization_name', + field=models.CharField(blank=True, max_length=64, verbose_name='Место работы'), + ), + ] diff --git a/users/models.py b/users/models.py index 6c78666..d0d1123 100644 --- a/users/models.py +++ b/users/models.py @@ -150,6 +150,7 @@ class User(AbstractBaseUser, PermissionsMixin): last_name = models.CharField(max_length=255, blank=True) last_time_visit = models.DateTimeField(default=timezone.now) location = TreeForeignKey('common.Location', related_name='users', null=True, blank=True) + organization_name = models.CharField(max_length=64, blank=True, verbose_name="Место работы") patronym = models.CharField(max_length=255, blank=True) phone = models.CharField(max_length=30, blank=True, null=True) phone2 = models.CharField(max_length=30, blank=True, null=True) diff --git a/users/static/css/user_profile_edit.css b/users/static/css/user_profile_edit.css index 28295e8..76008f0 100644 --- a/users/static/css/user_profile_edit.css +++ b/users/static/css/user_profile_edit.css @@ -26,6 +26,10 @@ margin-bottom: -1px; } +.simple-input:-webkit-autofill, .simple-select:-webkit-autofill{ + transition: background-color 5000s ease-in-out 0s +} + .simple-select select { background-color: darkgray; } diff --git a/users/templates/user_profile_edit.html b/users/templates/user_profile_edit.html index 3aee387..3e3309c 100644 --- a/users/templates/user_profile_edit.html +++ b/users/templates/user_profile_edit.html @@ -255,25 +255,34 @@
-
-
-
Статус
-
- - -
Skype