Closed lexruee closed 9 years ago
Just a small note: Maybe we could use the datepicker from UIKit, it looks more consitent with the UI? :) http://getuikit.com/docs/addons_datepicker.html
@wanze You're the UI chief :-)
In that case application.js must be changed as follows:
$(function (){
var dateInput = $(".datepicker");
$.UIkit.datepicker(dateInput,{format: 'YYYY-MM-DD'})
});
Sure, we should use the "right" datepicker! I overlooked it, thought there was no datepicker function in UIKit. I'll try to fix things right away.
14 Nov 2014, в 00:19, Stefan Wanzenried notifications@github.com написал(а):
Just a small note: Maybe we could use the datepicker from UIKit, it looks more consitent with the UI? :) http://getuikit.com/docs/addons_datepicker.html
— Reply to this email directly or view it on GitHub.
@svetakrasikova I hope it doesn't bother you that this issue is assigned to you. Sry that me and Stefan are a little bit picky :-).
Not all :) It's good that this came up and I can do this. Let me know if I can do something else (without danger of messing up too much:) 14 Nov 2014, в 10:23, Alexander Rüedlinger notifications@github.com написал(а):
@svetakrasikova I hope it doesn't bother you that this issue is assigned to you. Sry that me and Stefan are a little bit picky :-).
— Reply to this email directly or view it on GitHub.
I've replaced the datepicker. it should be fine now. Alex, you are doing everything and just let me copy/paste :) And then you are telling me that you are picky ... no comment. Thank you for the links, was instructive.
@svetakrasikova Sorry, I'm a real scrum pig :-). I know that's not a nice way to let you do things by doing copy / paste stuff. If this issue is fixed I suggest you can close it :-).
The following views are affected:
This line breaks the controller method create, because property entry_date is always nil.
So the above html line should be changed as follows:
To integrate the date picker use the html class property:
So application.js must be changed as follows ($(".datepicker") instead of $("#datepicker")):
1) Version using jquery UI date picker
2) Version using ukit date picker
Me and Stefan would suggest to use the second version.
See:
This issue fixes also issue #59.