From 4313d4d25f5d5598abb81a08da0fb7ffc357ea2c Mon Sep 17 00:00:00 2001 From: ArturBaybulatov Date: Mon, 12 Sep 2016 14:49:08 +0300 Subject: [PATCH] #ARC-9 (1~, 2, 3, 4) --- .../migrations/0030_auto_20160912_1305.py | 35 ++++++++ templates/partials/footer.html | 2 +- templates/partials/header.html | 2 +- users/templates/contractor_office.html | 8 ++ .../partials/contractor_profile_tabs.html | 6 +- users/urls.py | 6 +- users/views.py | 90 +++++++++++++++---- .../migrations/0013_auto_20160912_1305.py | 20 +++++ 8 files changed, 144 insertions(+), 25 deletions(-) create mode 100644 projects/migrations/0030_auto_20160912_1305.py create mode 100644 work_sell/migrations/0013_auto_20160912_1305.py diff --git a/projects/migrations/0030_auto_20160912_1305.py b/projects/migrations/0030_auto_20160912_1305.py new file mode 100644 index 0000000..f62608b --- /dev/null +++ b/projects/migrations/0030_auto_20160912_1305.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-09-12 10:05 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('projects', '0029_auto_20160908_1159'), + ] + + operations = [ + migrations.AlterField( + model_name='answer', + name='term_type', + field=models.CharField(blank=True, choices=[('day', 'день'), ('hour', 'час'), ('month', 'месяц'), ('project', 'проект')], max_length=10, null=True), + ), + migrations.AlterField( + model_name='portfolio', + name='term_type', + field=models.CharField(blank=True, choices=[('day', 'день'), ('hour', 'час'), ('month', 'месяц'), ('project', 'проект')], default='hour', max_length=20, null=True), + ), + migrations.AlterField( + model_name='project', + name='term_type', + field=models.CharField(choices=[('day', 'день'), ('hour', 'час'), ('month', 'месяц'), ('project', 'проект')], default='hour', max_length=20), + ), + migrations.AlterField( + model_name='stage', + name='term_type', + field=models.CharField(choices=[('day', 'день'), ('hour', 'час'), ('month', 'месяц'), ('project', 'проект')], default='hour', max_length=10), + ), + ] diff --git a/templates/partials/footer.html b/templates/partials/footer.html index 764504f..0a12fbf 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -38,7 +38,7 @@ {% else %}
  • - Мой офис + Мой офис
  • {% endif %} {% if request.user.is_staff %} diff --git a/templates/partials/header.html b/templates/partials/header.html index 2e710ba..410e8ed 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -27,7 +27,7 @@ {% if request.user.is_contractor %}
  • - Мой офис + Мой офис
  • {% endif %} diff --git a/users/templates/contractor_office.html b/users/templates/contractor_office.html index fe6d3cc..d9b3c65 100644 --- a/users/templates/contractor_office.html +++ b/users/templates/contractor_office.html @@ -30,6 +30,14 @@ {% endif %} +
    + {% for team in contractor.teams.all %} + + {{ team.name }} + + {% endfor %} +
    +