{% extends 'partials/base.html' %} {% load humanize %} {% load thumbnail %} {% load specializtions_tags %} {% load project_tags %} {% block content %} {% include 'partials/header.html' %}

{{ project.name }}

{% if request.user.is_contractor %}

{{ project.budget|intcomma }}

{% endif %}
{% if project.customer.avatar %} execitor-image {% else %} execitor-image {% endif %}

{{ project.customer.get_full_name }} [{{ project.customer.username }}]

{% if not request.user.is_contractor %} {% endif %}
{% if request.user.is_contractor %}
{% endif %}
  • {{ project.created }}
  • {{ project.get_work_type_display }}
{% if project.cro %}

Есть допуск СРО

{% endif %}
{% if project.realty %}
  • Местоположение: {{ project.realty.location.name }}
  • Классификация здания: {{ project.realty.building_classification.name }}
  • Вид строительства: {{ project.realty.construction_type.name }}
{% endif %}

{{ project.text|linebreaksbr }}

{% if request.user.is_contractor and not answer %} Ответить на проект {% if can_answer_as_team %}
{% endif %} {% elif request.user.is_customer and request.user == project.customer %} Редактировать
{% csrf_token %} Снять с публикации
{% endif %}
{% if request.user.is_contractor %} {% if answer %}
{% if answer.author.avatar %} execitor-image {% else %} execitor-image {% endif %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} [{{ answer.author.username }}] {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% if answer.author|class_name == 'User' %} {% if answer.author.contractor_status == 'free' %}
Свободен
{% endif %} {% endif %}
{% if answer.author|class_name == 'User' and answer.author.cro %}

Есть допуск СРО

{% elif answer.author|class_name == 'Team' %}

Есть допуск СРО

{% endif %}

Цена: {{ answer.budget|intcomma }}

{% if answer.term_type == 'project' %} Срок: За проект {% else %} Срок: {% morph answer.term TERM_TYPE_MORPHS|get:answer.term_type %} {% endif %}

Опубликован: {{ answer.created|date:'M d, Y' }}

{% csrf_token %} отказ
{% for portf in answer.portfolios.all %}
{% endfor %}
{% for message in answer.messages.all %}
{% if message.is_sender_customer %}

{{ project.customer.get_full_name }}

{% else %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% endif %} {{ message.created }}

{{ message.text|linebreaksbr }}

{% endfor %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{{ form.non_field_errors|safe }}

Стоимость {{ form.budget.errors.as_text }}

{{ form.currency.errors.as_text }}

{{ form.currency }}

Срок {{ form.term.errors.as_text }}

{{ form.term_type.errors.as_text }}

{{ form.term_type }}

Текст {{ form.text.errors.as_text }}

Портфолио {{ form.portfolios.errors.as_text }}

    {% for p in form.portfolios.field.queryset.all %}
  • {{ p.name }}

  • {% endfor %}
Не более 10 файлов общим объемом до 500 Мб

{{ form.secure_deal_only.label }}

{% endif %} {% elif request.user.is_customer and project in request.user.projects.all %} {% if project.answers.exists %} {% if project.candidates.count > 1 %} {% endif %}

Новые исполнители

{% for answer in project|get_new_answers %}
{% if answer.author.avatar %} execitor-image {% else %} execitor-image {% endif %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} [{{ answer.author.username }}] {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% if answer.author|class_name == 'User' %} {% if answer.author.contractor_status == 'free' %}
Свободен
{% endif %} {% endif %}
{% if answer.author|class_name == 'User' %} {% ratings_widget answer.author.pk 'restList2' %} {% elif answer.author|class_name == 'Team'%} {% ratings_team_widget answer.author.pk 'restList2' %} {% endif %} {% if answer.author|class_name == 'User' and answer.author.cro %}

Есть допуск СРО

{% elif answer.author|class_name == 'Team' %}

Есть допуск СРО

{% endif %}

Цена: {{ answer.budget|intcomma }}

{% if answer.term_type == 'project' %} Срок: За проект {% else %} Срок: {% morph answer.term TERM_TYPE_MORPHS|get:answer.term_type %} {% endif %}

Опубликован: {{ answer.created|date:'M d, Y' }}

{% if answer.author not in project|get_candidates %} Кандидат {% endif %} {% if not project.order.contractor and not project.order.team %}
{% csrf_token %} предложить проект
{% endif %}
{% csrf_token %} отказ
{% for portf in answer.portfolios.all %}
{% endfor %}
{% for message in answer.messages.all %}
{% if message.is_sender_customer %}

{{ project.customer.get_full_name }}

{% else %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% endif %} {{ message.created }}

{{ message.text|linebreaksbr }}

{% endfor %}
{% csrf_token %}
{% endfor %}

Кандидаты

{% for answer in project|get_candidate_answers %}
{% if answer.author.avatar %} execitor-image {% else %} execitor-image {% endif %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} [{{ answer.author.username }}] {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% if answer.author|class_name == 'User' %} {% if answer.author.contractor_status == 'free' %}
Свободен
{% endif %} {% endif %}
{% if answer.author|class_name == 'User' %} {% ratings_widget answer.author.pk 'restList2' %} {% elif answer.author|class_name == 'Team'%} {% ratings_team_widget answer.author.pk 'restList2' %} {% endif %} {% if answer.author|class_name == 'User' and answer.author.cro %}

Есть допуск СРО

{% elif answer.author|class_name == 'Team' %}

Есть допуск СРО

{% endif %}

Цена: {{ answer.budget|intcomma }}

{% if answer.term_type == 'project' %} Срок: За проект {% else %} Срок: {% morph answer.term TERM_TYPE_MORPHS|get:answer.term_type %} {% endif %}

Опубликован: {{ answer.created|date:'M d, Y' }}

{% if TESTING %} Кандидат {% endif %} {% if not project.order.contractor and not project.order.team %}
{% csrf_token %} предложить проект
{% endif %}
{% csrf_token %} отказ
{% for portf in answer.portfolios.all %}
{% endfor %}
{% for message in answer.messages.all %}
{% if message.is_sender_customer %}

{{ project.customer.get_full_name }}

{% else %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% endif %} {{ message.created }}

{{ message.text|linebreaksbr }}

{% endfor %}
{% csrf_token %}
{% endfor %}

Отказы

{% for answer in project|get_rejected_answers %}
{% if answer.author.avatar %} execitor-image {% else %} execitor-image {% endif %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} [{{ answer.author.username }}] {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% if answer.author|class_name == 'User' %} {% if answer.author.contractor_status == 'free' %}
Свободен
{% endif %} {% endif %}
{% ratings_widget answer.author.pk 'restList2' %} {% if answer.author|class_name == 'User' and answer.author.cro %}

Есть допуск СРО

{% elif answer.author|class_name == 'Team' %}

Есть допуск СРО

{% endif %}

Цена: {{ answer.budget|intcomma }}

{% if answer.term_type == 'project' %} Срок: За проект {% else %} Срок: {% morph answer.term TERM_TYPE_MORPHS|get:answer.term_type %} {% endif %}

Опубликован: {{ answer.created|date:'M d, Y' }}

{% for portf in answer.portfolios.all %}
{% endfor %}
{% for message in answer.messages.all %}
{% if message.is_sender_customer %}

{{ project.customer.get_full_name }}

{% else %}

{% if answer.author|class_name == 'User' %} {{ answer.author.get_full_name }} {% elif answer.author|class_name == 'Team' %} {{ answer.author.name }} {% endif %}

{% endif %} {{ message.created }}

{{ message.text|linebreaksbr }}

{% endfor %}
{% endfor %}
{% endif %} {% endif %} {% include 'partials/footer.html' %}
{% endblock %}