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="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>