v3.2.2: fix cid из FormData, иконки trash-2 + info

This commit is contained in:
2026-06-18 09:04:12 +04:00
parent f1495d07e3
commit 5ffc588935
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ def _upload_files():
if not files or not any(f.filename for f in files): if not files or not any(f.filename for f in files):
return jsonify({"error": "Нет файлов"}), 400 return jsonify({"error": "Нет файлов"}), 400
cid = request.args.get("cid") cid = request.args.get("cid") or request.form.get("cid")
if cid: if cid:
# Добавляем к существующему договору # Добавляем к существующему договору
+2 -2
View File
@@ -152,8 +152,8 @@
'<td style="font-size:12px;color:var(--muted);">' + formatDate(f.lastModified) + '</td>' + '<td style="font-size:12px;color:var(--muted);">' + formatDate(f.lastModified) + '</td>' +
'<td class="num-cell" style="font-size:12px;color:var(--muted);">' + formatSize(f.size) + '</td>' + '<td class="num-cell" style="font-size:12px;color:var(--muted);">' + formatSize(f.size) + '</td>' +
'<td class="status-cell">' + (f.status || '') + '</td>' + '<td class="status-cell">' + (f.status || '') + '</td>' +
'<td><button class="remove-btn" onclick="removeFile(' + i + ')" title="Удалить">×</button>' + '<td><button class="remove-btn" onclick="removeFile(' + i + ')" title="Удалить"><i data-lucide="trash-2" style="width:14px;height:14px;"></i></button>' +
'<button class="info-btn" id="info_' + i + '" onclick="showInfo(' + i + ')" title="Инфо"></button></td>' + '<button class="info-btn" id="info_' + i + '" onclick="showInfo(' + i + ')" title="Инфо"><i data-lucide="info" style="width:14px;height:14px;"></i></button></td>' +
'</tr>'; '</tr>';
}).join(''); }).join('');
} }
+2 -2
View File
@@ -133,8 +133,8 @@
'<td style="font-size:12px;color:var(--muted);">' + formatDate(f.lastModified) + '</td>' + '<td style="font-size:12px;color:var(--muted);">' + formatDate(f.lastModified) + '</td>' +
'<td class="num-cell" style="font-size:12px;color:var(--muted);">' + formatSize(f.size) + '</td>' + '<td class="num-cell" style="font-size:12px;color:var(--muted);">' + formatSize(f.size) + '</td>' +
'<td class="status-cell">' + (f.status || '') + '</td>' + '<td class="status-cell">' + (f.status || '') + '</td>' +
'<td><button class="remove-btn" onclick="removeFile(' + i + ')" title="Удалить">×</button>' + '<td><button class="remove-btn" onclick="removeFile(' + i + ')" title="Удалить"><i data-lucide="trash-2" style="width:14px;height:14px;"></i></button>' +
'<button class="info-btn" id="info_' + i + '" onclick="showInfo(' + i + ')" title="Инфо"></button></td>' + '<button class="info-btn" id="info_' + i + '" onclick="showInfo(' + i + ')" title="Инфо"><i data-lucide="info" style="width:14px;height:14px;"></i></button></td>' +
'</tr>'; '</tr>';
}).join(''); }).join('');
} }