I'm trying to create an edit screen for a new section in the back office. I've followed various tutorials on how to go about this and it is working fine for normal text fields.
However, my model has 2 date fields as part of it and I would like to put in some date pickers for them. I cannot for the life of me get them to work. I've tried hooking into bootstrap and using Bootstrap-DatePicker to turn text input's into date time pickers but to no avail.
What's more annoying is that if I use input types of date, then the create screen works no problem, with date pickers. However due to the version of AngularJs within Umbraco, the edit screen does not bind correctly hence trying to find a way around it.
I am using the AngularJS approach to creating the view.
Any help on how I can achieve this would be greatly appreciated.
Links:
Bootstrap-DatePicker help documents
---- The above question was posted on the our.Umbraco.org forum but has not had a response so I thought I would ask you helpful folk here. ----
Further information,
I've tried to do something like this:
Plunker Example of a possible work around
However, it doesn't seem to work when implemented in Umbraco. I am getting an error saying that Moment is not found yet when I examine the page I can see 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 paste the entire Plunker example here but the example itself works fine. It just doesn't work when I use it within my Umbraco Plugin code.
I'm at a complete loss right now. Ideally I would like some sort of artificial "date picker" but that currently doesn't seem to be a feasible option so the Plunker approach was my next thought.
Thanks in advance
Nik