Update web/templates/entry_add.html

This commit is contained in:
Joshua Laymon 2025-08-31 01:09:59 +00:00
parent 254d624302
commit d94f87ba12

View File

@ -169,5 +169,11 @@
dateAddedEl.value = `${yyyy}-${mm}-${dd}`; dateAddedEl.value = `${yyyy}-${mm}-${dd}`;
} }
})(); })();
// ----- Prefill Entry Code with current username -----
const entryCodeEl = document.getElementById("id_entry_code");
if (entryCodeEl && !entryCodeEl.value) {
entryCodeEl.value = "{{ request.user.username }}";
}
</script> </script>
{% endblock %} {% endblock %}