<link rel="stylesheet" href="../static/css/new_project.css"/>
{% extends "base.html" %} {% block content %}
<div class="new_project_page">
    <div class="link_back_block">
        <a class="link_back" href="../">
            <p class="link_back_text">К проектам</p>
        </a>
    </div>
    <div class="form_block">
        <form action="" method="post" class="new_project_form" enctype="multipart/form-data">
            {{ form.hidden_tag() }}
            <div class="name_form_block">
                <div class="form_data">
                    <label class="form_label">{{ form.name.label }}</label>
                    {{ form.name(class="input_data label_data", type="name", placeholder='your project name') }}
                    {% for error in form.name.errors %}
                    <div class="alert alert-danger" role="alert">{{ error }}</div>
                    {% endfor %}
                </div>
                <div class="form_data">
                    <label class="form_label">{{ form.description.label }}</label>
                    {{ form.description(class="input_data description padding_data", type="description", placeholder='your project description') }}
                    {% for error in form.description.errors %}
                    <div class="alert alert-danger" role="alert">{{ error }}</div>
                    {% endfor %}
                </div>
            </div>
            <div class="data_form_block">
                <div class="staff_form_block">
                    <div class="collaborator_block">
                        <div class="staff_block">
                            {% for user in list_users %}
                            <div class="user">
                                <div class="user_data">
                                    <img class="user_logo" src="../{{user.photo}}">
                                    <p class="user_names">{{user.name}}</p>
                                </div>
                                <input class="choose_user" name="choose_{{user.login}}" type="checkbox" value="y">
                            </div>
                            {% endfor %}
                        </div>
                    </div>
                </div>
                <div class="buttons_form_block">
                    <div class="form_data">
                        <label class="form_label">{{ form.logo.label }}</label>
                        {{ form.logo(class="input_data padding_data", type="file") }}
                        {% for error in form.logo.errors %}
                        <div class="alert alert-danger" role="alert">{{ error }}</div>
                        {% endfor %}
                    </div>
                    <div class="form_data_button">
                        {{ form.submit(type="submit", class="project_button") }}
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{% endblock %}