#-- ---------------- Bootstrap Material Kit datepicker ------------ # http://eonasdan.github.io/bootstrap-datetimepicker # https://github.com/moment/moment/tree/develop/locale : List of available locale -default is us for the datetimepicker plugin- --> <#-- getDatePickerBootstrap # Get a simple datepicker # idField The id of the text field # language The locale language # # Implementation example : # # <@getDatePickerBootstrap idField="my_date" language=locale.language /> # --> <#macro getDatePickerBootstrap idField language > <#local idt18n><@getRegional language=language />#local> <#local dtFormat>#local> <#switch idt18n> <#case 'fr'> <#case 'es'> <#case 'it'> <#local dtFormat='DD/MM/YYYY' /> <#break> <#case 'en'> <#case 'en-ca'> <#case 'en-nz'>- <#local dtFormat='MM/DD/YYYY' /> <#break> <#case 'ru'> <#case 'hu'> <#local dtFormat='YYYY.MM.DD' /> <#break> #switch> #macro> <#macro getDatePickerBootstrapClass idForm language > <#local idt18n><@getRegional language=language />#local> <#local dtFormat>#local> <#switch idt18n> <#case 'fr'> <#case 'es'> <#local dtFormat='DD/MM/YYYY' /> <#break> <#case 'en-gb'> <#case 'en-CA'> <#local dtFormat='MM/DD/YYYY' /> <#break> <#case 'hu'> <#local dtFormat='YYYY.MM.DD' /> <#break> #switch> #macro> <#-- getDatePickerRangeBootstrap # Get a simple datepicker # idField The id of the text field # language The locale language # # Implementation example : # # <@getDatePickerBootstrap idField="my_date" language=locale.language /> # --> <#macro getDatePickerRangeBootstrap language > <#-- The range must be defined with id "datetimepicker_start" for start date input and another id "datetimepicker_end" for end date input. Example: