Move create form into tools panel

This commit is contained in:
kzolotarev95 committed 2026-06-28 18:55:37 +04:00
1 parent 705738831b
commit 9983b99eb1
1 file changed
+20 -20
+20 -20
View File
@@ -685,8 +685,8 @@ button:hover, .button:hover { background: var(--accent-hover); }
.result-output, .console { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.console { max-height: 340px; }
.console-title { margin: 12px 0 6px; font-weight: 700; }
.device-card, .create-card { min-width: 0; }
.device-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 14px; margin-top: 12px; }
.device-card { min-width: 0; }
.device-body { display: grid; gap: 14px; margin-top: 12px; }
.device-section h3 { margin: 0 0 10px; font-size: 14px; }
.disk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.disk-widget { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: rgba(127,127,127,.06); }
@@ -702,7 +702,7 @@ button:hover, .button:hover { background: var(--accent-hover); }
.temp-widget strong, .temp-widget span, .temp-widget b { display: block; }
.temp-widget span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.temp-widget b { color: var(--hot); font-size: 16px; white-space: nowrap; }
.settings-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.settings-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.settings-tools form { min-width: 0; }
.settings-tools h2 { margin-top: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@@ -714,7 +714,7 @@ td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: lef
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); }
@media (max-width: 820px) { .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .section-head { flex-direction: column; } .device-body, .settings-tools { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .section-head { flex-direction: column; } .settings-tools { grid-template-columns: 1fr; } }
</style>
</head>
<body>
@@ -771,7 +771,22 @@ EOF
</div>
</div>
<form class="panel span6 create-card" method="post" action="$(self_url)">
<form class="panel span12" method="post" enctype="multipart/form-data" action="$(self_url)?key=$key&amp;action=upload_backup">
<h2>Загрузить архив бэкапа</h2>
<p>Выбери архив <code>.tar.gz</code> с компьютера. Он будет сохранен в $(h "$output_dir") и появится в списке архивов.</p>
<input class="file-input" type="file" name="archive" accept=".tar.gz,application/gzip,application/x-gzip">
<button type="submit">Загрузить архив</button>
</form>
<div class="panel span12">
<h2>Архивы в $(h "$output_dir")</h2>
<table><thead><tr><th>Файл</th><th>Размер</th><th>Дата</th><th>Действие</th></tr></thead><tbody>
$(backup_rows)
</tbody></table>
</div>
<div class="panel span12 settings-tools">
<form method="post" action="$(self_url)">
<h2>Создать бэкап</h2>
<input type="hidden" name="key" value="$key">
<input type="hidden" name="action" value="create">
@@ -789,21 +804,6 @@ EOF
<button type="submit">Создать бэкап</button>
</form>
<form class="panel span12" method="post" enctype="multipart/form-data" action="$(self_url)?key=$key&amp;action=upload_backup">
<h2>Загрузить архив бэкапа</h2>
<p>Выбери архив <code>.tar.gz</code> с компьютера. Он будет сохранен в $(h "$output_dir") и появится в списке архивов.</p>
<input class="file-input" type="file" name="archive" accept=".tar.gz,application/gzip,application/x-gzip">
<button type="submit">Загрузить архив</button>
</form>
<div class="panel span12">
<h2>Архивы в $(h "$output_dir")</h2>
<table><thead><tr><th>Файл</th><th>Размер</th><th>Дата</th><th>Действие</th></tr></thead><tbody>
$(backup_rows)
</tbody></table>
</div>
<div class="panel span12 settings-tools">
<form method="post" action="$(self_url)">
<h2>Настройки по умолчанию</h2>
<input type="hidden" name="key" value="$key">