st
This commit is contained in:
@@ -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="value" value="{value_html}" class="env-value"></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>
|
||||
<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>
|
||||
</tr>
|
||||
"""
|
||||
@@ -109,7 +109,7 @@ def _render_page(user: dict, entries: list[tuple[str, str]], message: str = "",
|
||||
const tr = document.createElement("tr");
|
||||
tr.innerHTML = '<td><input name="key" class="env-key" placeholder="NOVY_KLIC"></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);
|
||||
}}
|
||||
</script>
|
||||
|
||||
@@ -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><code>{html.escape(service_arg)}</code></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"
|
||||
onsubmit="return confirm('Spustit redeploy služby {html.escape(name)}?');">
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -97,7 +97,7 @@ def workers_page(
|
||||
<td data-worker-field="last_seen_at">{last_seen_at}</td>
|
||||
<td data-worker-field="current_job">{current_job}</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>
|
||||
"""
|
||||
|
||||
|
||||
@@ -728,7 +728,7 @@ input[readonly] {
|
||||
|
||||
.actions-cell form,
|
||||
.actions-cell p {
|
||||
margin: 0 0 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.service-row td {
|
||||
|
||||
Reference in New Issue
Block a user