From 8c76d987486b83be7f9334b93e773cb5e6dd4c32 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Sun, 12 Oct 2025 19:13:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B0=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D1=81=D1=82=D0=BE=D0=B2=20-?= =?UTF-8?q?=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/edit_post.html | 53 ++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/templates/edit_post.html b/templates/edit_post.html index 1594b8a..841eead 100644 --- a/templates/edit_post.html +++ b/templates/edit_post.html @@ -42,35 +42,48 @@
- -
- - -
Короткое имя поста (максимум 100 символов)
+ +
+
+ +
+
+ +
- - -
Выберите площадку из списка доступных
+
+
+ +
+
+ +
+
-
+
- +
- - -
Числовой идентификатор поста во ВКонтакте
+
+
+ +
+
+ +
+
@@ -266,6 +279,16 @@ } }); + // Валидация поля названия + const shortnameInput = document.getElementById('shortname'); + shortnameInput.addEventListener('input', () => { + const value = shortnameInput.value; + if (value.length > 100) { + alert('Название не может превышать 100 символов'); + shortnameInput.value = value.substring(0, 100); + } + }); + // Загрузка списка площадок loadVenues();