This commit is contained in:
vladislav 2026-08-17 05:21:17 -04:00
parent 0160e5ccbe
commit 72e08cd388
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45

View File

@ -12,38 +12,42 @@
{% block content %} {% block content %}
{{ header.section(user) }} {{ header.section(user) }}
<section class="c_dg3k4"> <section class="c_dg3k4">
<div class="c_gtoe9"> <div class="c_gtoe9">
{{ profile_card.profile_card(user) }} {{ profile_card.profile_card(user) }}
<div class="c_ru432"> <div class="c_ru432">
{{ profile_nav.profile_nav(user, 'competitions') }} {{ profile_nav.profile_nav(user, 'competitions') }}
<div class="c_3ihvi" id="main"><h2>{{competition.title}}</h2><p>{{competition.topic}}</p><p>Минимальное кол-во картин: {{competition.min_paintings}}. Максимальное кол-во картин: {{competition.max_paintings}}</p> <div class="c_3ihvi" id="main">
<a class="c_ctfod b_289i1" href="{% if competition.get('rules_link') %}{{competition.rules_link}}{% else %}/b/competition/{{ competition.rules_file_id }}{% endif %}" rel="noopener noreferrer"><span class="c_d2l0b b_al8e7">Условия конкурса</span></a> <h2>{{competition.title}}</h2>
<a class="c_ctfod b_289i1" href="/form/post?next=/profile/competition/{{ competition._id }}"><span class="c_d2l0b b_al8e7">Загрузить картину в список</span></a> <p>{{competition.topic}}</p>
</div> <p>Минимальное кол-во картин: {{competition.min_paintings}}. Максимальное кол-во картин: {{competition.max_paintings}}</p>
<div class="c_3ihvi"><h3>Выбрано картин: <span id="selected_span">0</span></h3> <a class="c_ctfod b_289i1" href="{% if competition.get('rules_link') %}{{competition.rules_link}}{% else %}/b/competition/{{ competition.rules_file_id }}{% endif %}" rel="noopener noreferrer"><span class="c_d2l0b b_al8e7">Условия конкурса</span></a>
</div> <a class="c_ctfod b_289i1" href="/form/post?next=/profile/competition/{{ competition._id }}"><span class="c_d2l0b b_al8e7">Загрузить картину в список</span></a>
<div class="c_3ihvi"> </div>
<div class="c_3ihvi">
<label class="offer-label"> <h3>Выбрано картин: <span id="selected_span">0</span></h3>
<input type="checkbox" id="acceptOffer" class="offer-checkbox"> </div>
<span class="offer-text">Принять условия конкурса</span> <div class="c_3ihvi">
</label> <label class="offer-label">
{% if competition.user._id == '681684390000000000000000' %} <input type="checkbox" id="acceptOffer" class="offer-checkbox">
<a class="c_ctfod b_289i1" href="https://vk.ru/im?sel=25126640" rel="noopener noreferrer"> <span class="offer-text">Принять условия конкурса</span>
<span class="c_d2l0b b_al8e7">Задать вопрос в VK</span> </label>
</a> {% if competition.user._id == '681684390000000000000000' %}
{% endif %} <a class="c_ctfod b_289i1" href="https://vk.ru/im?sel=25126640" rel="noopener noreferrer">
<button class="c_ctfod b_289i1" id="sendForm"> <span class="c_d2l0b b_al8e7">Задать вопрос в VK</span>
<span class="c_d2l0b b_al8e7">Отправить заявку</span> </a>
</button> {% endif %}
<button class="c_ctfod b_289i1" id="sendForm">
</div> <span class="c_d2l0b b_al8e7">Отправить заявку</span>
<div class="c_3ihvi"> </button>
{% if posts|length > 5 %} </div>
<div class="inptS"> <div class="c_3ihvi">
{% if posts|length > 5 %}
<div class="inptS">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z" fill="#1F1F1F"></path> <path
</svg> d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z"
fill="#1F1F1F"></path>
</svg>
<input id="memberSearch" list="membersList" type="search" placeholder="Поиск ..." aria-label="Поиск" /> <input id="memberSearch" list="membersList" type="search" placeholder="Поиск ..." aria-label="Поиск" />
<datalist id="membersList"> <datalist id="membersList">
{% for post in posts %} {% for post in posts %}
@ -51,17 +55,13 @@
{% endfor %} {% endfor %}
</datalist> </datalist>
</div> </div>
{% endif %} {% endif %}
</div>
<div class="c_tihtk">
{% for post in posts %}
{{ card.section(post, competition.get('nominations',[])) }}
{% endfor %}
</div> </div>
<div class="c_tihtk">
{% for post in posts %}
{{ card.section(post, competition.get('nominations',[])) }}
{% endfor %}
</div>
<script> <script>
(function(){ (function(){
const input = document.getElementById('memberSearch'); const input = document.getElementById('memberSearch');