Update web/templates/entry_add.html
This commit is contained in:
parent
254d624302
commit
d94f87ba12
@ -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 %}
|
||||||
Loading…
Reference in New Issue
Block a user