This commit is contained in:
JiriUhlir
2026-06-16 10:47:14 +02:00
parent 7df5dc77b4
commit 23bbcad835
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ def _render_rows(entries: list[tuple[str, str]]) -> str:
<td><input name="key" value="{key_html}" class="env-key" readonly></td> <td><input name="key" value="{key_html}" class="env-key" readonly></td>
<td><input name="value" value="{value_html}" class="env-value"></td> <td><input name="value" value="{value_html}" class="env-value"></td>
<td class="actions-cell"> <td class="actions-cell">
<button type="button" class="btn-secondary" onclick="this.closest('tr').remove()"><i class="fa-solid fa-trash" aria-hidden="true"></i> Smazat</button> <button type="button" class="icon-action icon-action-danger" onclick="this.closest('tr').remove()" title="Smazat" aria-label="Smazat"><i class="fa-solid fa-trash" aria-hidden="true"></i></button>
</td> </td>
</tr> </tr>
""" """
@@ -109,7 +109,7 @@ def _render_page(user: dict, entries: list[tuple[str, str]], message: str = "",
const tr = document.createElement("tr"); const tr = document.createElement("tr");
tr.innerHTML = '<td><input name="key" class="env-key" placeholder="NOVY_KLIC"></td>' tr.innerHTML = '<td><input name="key" class="env-key" placeholder="NOVY_KLIC"></td>'
+ '<td><input name="value" class="env-value" placeholder="hodnota"></td>' + '<td><input name="value" class="env-value" placeholder="hodnota"></td>'
+ '<td class="actions-cell"><button type="button" class="btn-secondary" onclick="this.closest(\\'tr\\').remove()"><i class="fa-solid fa-trash" aria-hidden="true"></i> Smazat</button></td>'; + '<td class="actions-cell"><button type="button" class="icon-action icon-action-danger" onclick="this.closest(\\'tr\\').remove()" title="Smazat" aria-label="Smazat"><i class="fa-solid fa-trash" aria-hidden="true"></i></button></td>';
tbody.appendChild(tr); tbody.appendChild(tr);
}} }}
</script> </script>
+2 -2
View File
@@ -184,11 +184,11 @@ def runtime_page(request: Request, message: str = "", error: str = "", user=Depe
<td><strong><i class="fa-solid {icon}" aria-hidden="true"></i> {html.escape(name)}</strong></td> <td><strong><i class="fa-solid {icon}" aria-hidden="true"></i> {html.escape(name)}</strong></td>
<td><code>{html.escape(service_arg)}</code></td> <td><code>{html.escape(service_arg)}</code></td>
<td>{_render_last_run(last_runs.get(service_arg))}</td> <td>{_render_last_run(last_runs.get(service_arg))}</td>
<td class="actions-cell"> <td class="actions-cell service-actions">
<form method="post" action="/portal/admin/runtime/action/{key}" class="inline-form" <form method="post" action="/portal/admin/runtime/action/{key}" class="inline-form"
onsubmit="return confirm('Spustit redeploy služby {html.escape(name)}?');"> onsubmit="return confirm('Spustit redeploy služby {html.escape(name)}?');">
<input type="hidden" name="next" value="/portal/admin/runtime"> <input type="hidden" name="next" value="/portal/admin/runtime">
<button type="submit"><i class="fa-solid fa-rotate" aria-hidden="true"></i> Redeploy</button> <button type="submit" class="icon-action" title="Redeploy" aria-label="Redeploy"><i class="fa-solid fa-rotate" aria-hidden="true"></i></button>
</form> </form>
</td> </td>
</tr> </tr>
+1 -1
View File
@@ -97,7 +97,7 @@ def workers_page(
<td data-worker-field="last_seen_at">{last_seen_at}</td> <td data-worker-field="last_seen_at">{last_seen_at}</td>
<td data-worker-field="current_job">{current_job}</td> <td data-worker-field="current_job">{current_job}</td>
<td>{started_at}</td> <td>{started_at}</td>
<td class="actions-cell"><a class="btn" href="/portal/workers/{worker_url_id}">Detail</a></td> <td class="actions-cell"><a class="icon-action" href="/portal/workers/{worker_url_id}" title="Detail" aria-label="Detail"><i class="fa-solid fa-eye" aria-hidden="true"></i></a></td>
</tr> </tr>
""" """
+1 -1
View File
@@ -728,7 +728,7 @@ input[readonly] {
.actions-cell form, .actions-cell form,
.actions-cell p { .actions-cell p {
margin: 0 0 8px; margin: 0;
} }
.service-row td { .service-row td {