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>
|
||||
|
||||
Reference in New Issue
Block a user