ltx/.lifetracker-python/templates/forms/update-entry.html

14 lines
327 B
HTML

<td class="activity-{{hour.activity.code}}">
<input
id="update-hour-{{hour.hour_id}}"
class="update-entry-form"
type="text"
value="{{hour.activity.code}}"
hx-trigger="change"
hx-post="/update-entry"
>
</input>
</td>
<script language="javascript">
document.querySelector("#update-hour-{{hour.hour_id}}").focus()
</script>