Closed Kateattardo closed 1 year ago
Did you add the javascript cdn link to the base.html?
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
Yes I did
On Sep 19, 2023, at 10:14 AM, Ashley Sands @.***> wrote:
Did you add the javascript cdn link to the base.html?
— Reply to this email directly, view it on GitHub https://github.com/sei-ec-remote/team-project-issues/issues/161#issuecomment-1725691462, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA3RBG6EHVDQ5I6XYYJXD33X3GSDDANCNFSM6AAAAAA46KY7O4. You are receiving this because you authored the thread.
You maye need to try something like this based on the name of your model fields
<script>
const dateEl = document.getElementById('id_due_date');
// M is Materialize's global variable
M.Datepicker.init(dateEl, {
format: 'yyyy-mm-dd',
defaultDate: new Date(),
setDefaultDate: true,
autoClose: true
});
</script>
You can also use your dev tools to tell you what the ID is by hovering over that field.
Still nothing I’ve tried A LOT of (‘…_date’)
On Sep 19, 2023, at 10:23 AM, Ashley Sands @.***> wrote:
You maye need to try something like this based on the name of your model fields
— Reply to this email directly, view it on GitHub https://github.com/sei-ec-remote/team-project-issues/issues/161#issuecomment-1725709696, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA3RBG6BG77G32EQSVVTKCTX3GTFHANCNFSM6AAAAAA46KY7O4. You are receiving this because you authored the thread.
Describe the bug A clear and concise description of what the bug is. The Materialize date picker functionality isn't working.
What is the problem you are trying to solve? The Materialize date picker functionality isn't working.
Expected behavior A clear and concise description of what you expected to happen. I expect the date picker functionality to work when selecting the due date for a project
What is the actual behavior? A clear and concise description of what actually happened. No errors generated but the date picker does not pop up
Post any code you think might be relevant (one fenced block per file)
What is your best guess as to the source of the problem? Somthing I'm missing in the forms
What things have you already tried to solve the problem?