I am trying to create an editing screen for a new section in the back office. I followed various tutorials on how to do this, and it works great for regular text fields.
However, my model has 2 date fields as part of this, and I would like to add some date pickers for them. I cannot make them work in my life. I tried connecting to the download and using Bootstrap-DatePicker to enable text input in time collectors, but to no avail.
What is more annoying is that if I use date input types, then the create screen will not work with date selections. However, due to the version of AngularJs in Umbraco, the edit screen does not link correctly, so it tries to find a way around it.
I am using the AngularJS approach to create a view.
Any help on how I can achieve this would be greatly appreciated.
References:
Basic tutorial
Help documents Bootstrap-DatePicker
---- The above question was posted on our.Umbraco.org forum, but I didnβt have an answer, so I thought I would ask you to help you here. ----
Additional Information,
I tried to do something like this:
Plunker Example of Possible Work
However, it does not seem to work when implemented in Umbraco. I get a message that Moment has not yet been found when I look at a page on which I see that the following line exists in it:
<script src="http:////cdnjs.cloudflare.com/ajax/libs/moment.js/2.1.0/moment.min.js"></script>
I would put in the whole Plunker example, but the example itself works fine. It just doesn't work when I use it in my Umbraco module code.
Now I have a complete loss. Ideally, I would like some kind of artificial βdate picker,β but this is not currently possible, so Plunker's approach was my next thought.
Thank you in advance
Nick