added IDs to editable

This commit is contained in:
Václav Šmejkal 2024-05-22 16:53:56 +02:00
parent c5eaf569fe
commit f95246e836
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
3 changed files with 5 additions and 5 deletions

View File

@ -44,11 +44,11 @@
let sex_select = await selection("sex", result.sex); let sex_select = await selection("sex", result.sex);
let output = let output =
`Uživatelské jméno: <input class="editable" type="text" value="${result.username}"><br> `Uživatelské jméno: <input id="username" class="editable" type="text" value="${result.username}"><br>
Přezdívka: <input class="editable" type="text" value="${result.nickname}"><br> Přezdívka: <input id="nickname" class="editable" type="text" value="${result.nickname}"><br>
Admin: ${admin_select}<br> Admin: ${admin_select}<br>
Pohlaví: ${sex_select}<br> Pohlaví: ${sex_select}<br>
Bio: <input class="editable" type="text" value="${result.bio}"><br>`; Bio: <input id="bio" class="editable" type="text" value="${result.bio}"><br>`;
$("#right_panel").html(output + right_panel_buffer); $("#right_panel").html(output + right_panel_buffer);
} }

View File

@ -1,4 +1,4 @@
<select class="editable" name="admin"> <select class="editable" id="admin">
<option value="1">Ano</option> <option value="1">Ano</option>
<option value="0">Ne</option> <option value="0">Ne</option>
</select> </select>

View File

@ -1,4 +1,4 @@
<select class="editable" name="sex"> <select class="editable" id="sex">
<option value="0">Nespecifikováno</option> <option value="0">Nespecifikováno</option>
<option value="1">Muž</option> <option value="1">Muž</option>
<option value="2">Žena</option> <option value="2">Žena</option>