ref #4028 - add datepicker and the functionality to fill template-params