Ред пост 12 add flex
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-10-12 21:23:51 +03:00
parent e8dd53a4e9
commit 2411391d18
+37 -30
View File
@@ -60,6 +60,13 @@
.form-control, .form-select { .form-control, .form-select {
margin-left: 0 !important; margin-left: 0 !important;
} }
/* Тонкое регулирование ширины для заголовков */
.label-narrow {
flex: 0 0 120px; /* Фиксированная ширина 120px */
}
.field-wide {
flex: 1; /* Занимает оставшееся место */
}
</style> </style>
</head> </head>
<body> <body>
@@ -77,11 +84,11 @@
<input type="hidden" id="post-id" value="{{ post_id if post_id else '' }}"> <input type="hidden" id="post-id" value="{{ post_id if post_id else '' }}">
<!-- Заголовок и поле Название в одну строку --> <!-- Заголовок и поле Название в одну строку -->
<div class="row mb-3"> <div class="d-flex align-items-center mb-3">
<div class="col-md-1"> <div class="label-narrow">
<label for="shortname" class="form-label">Название:</label> <label for="shortname" class="form-label">Название:</label>
</div> </div>
<div class="col-md-11"> <div class="field-wide">
<input type="text" class="form-control" id="shortname" maxlength="100"> <input type="text" class="form-control" id="shortname" maxlength="100">
</div> </div>
</div> </div>
@@ -93,11 +100,11 @@
<div class="row mb-2"> <div class="row mb-2">
<div class="col-md-2"> <div class="col-md-2">
<label for="auto_unit" class="form-label">Площадка:</label> <label for="auto_unit" class="form-label">Площадка:</label>
</div> </div>
<div class="col-md-10"> <div class="col-md-10">
<select class="form-control" id="auto_unit"> <select class="form-control" id="auto_unit">
<option value="">Выберите площадку</option> <option value="">Выберите площадку</option>
</select> </select>
</div> </div>
</div> </div>
<!-- VK ID --> <!-- VK ID -->
@@ -157,7 +164,7 @@
<label for="image_url" class="form-label">Картинка:</label> <label for="image_url" class="form-label">Картинка:</label>
</div> </div>
<div class="col-md-10"> <div class="col-md-10">
<input type="url" class="form-control" id="image_url"> <input type="url" class="form-control" id="image_url">
</div> </div>
</div> </div>
@@ -165,10 +172,10 @@
<div class="row mb-3"> <div class="row mb-3">
<div class="col-md-2"> <div class="col-md-2">
<label for="vk_post_url" class="form-label">Пост в ВК:</label> <label for="vk_post_url" class="form-label">Пост в ВК:</label>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<input type="url" class="form-control" id="vk_post_url"> <input type="url" class="form-control" id="vk_post_url">
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<label for="published_at" class="form-label">датирован:</label> <label for="published_at" class="form-label">датирован:</label>
</div> </div>
@@ -214,30 +221,30 @@
<div class="border-top mt-4 pt-3"> <div class="border-top mt-4 pt-3">
<h5>Параметры опроса</h5> <h5>Параметры опроса</h5>
<div class="mb-3"> <div class="mb-3">
<label for="poll_question" class="form-label">Вопрос опроса</label> <label for="poll_question" class="form-label">Вопрос опроса</label>
<input type="text" class="form-control" id="poll_question"> <input type="text" class="form-control" id="poll_question">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="poll_options" class="form-label">Варианты ответов (JSON)</label> <label for="poll_options" class="form-label">Варианты ответов (JSON)</label>
<textarea class="form-control" id="poll_options" rows="2"></textarea> <textarea class="form-control" id="poll_options" rows="2"></textarea>
<div class="form-text">Формат: ["Вариант 1", "Вариант 2", ...]</div> <div class="form-text">Формат: ["Вариант 1", "Вариант 2", ...]</div>
</div> </div>
<div class="mb-3 form-check form-switch"> <div class="mb-3 form-check form-switch">
<input class="form-check-input" type="checkbox" id="poll_multiple"> <input class="form-check-input" type="checkbox" id="poll_multiple">
<label class="form-check-label" for="poll_multiple">Множественный выбор</label> <label class="form-check-label" for="poll_multiple">Множественный выбор</label>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="poll_end_date" class="form-label">Дата окончания опроса</label> <label for="poll_end_date" class="form-label">Дата окончания опроса</label>
<input type="datetime-local" class="form-control" id="poll_end_date" step="60"> <input type="datetime-local" class="form-control" id="poll_end_date" step="60">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="tg_poll_results" class="form-label">Результаты опроса</label> <label for="tg_poll_results" class="form-label">Результаты опроса</label>
<textarea class="form-control" id="tg_poll_results" rows="4"></textarea> <textarea class="form-control" id="tg_poll_results" rows="4"></textarea>
</div> </div>
</div> </div>
</div> </div>