I am Using grocery Crud 1.4.
date-time picker not shown when i set theme default to bootstrap. it's only show datepicker for datetime field.
but for default theme it show date-time picker correctly. Please Tell me Why?
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 03 September 2013 - 11:46 AM
I am Using grocery Crud 1.4.
date-time picker not shown when i set theme default to bootstrap. it's only show datepicker for datetime field.
but for default theme it show date-time picker correctly. Please Tell me Why?
Posted 04 September 2013 - 02:42 AM
Please bear in mind that the bootstrap theme is not ready for production sites yet. It is there mostly as a proof of concept that such a theme can work with GC.
Please help the core developer and post this issue here.
Also make sure you have downloaded the latest updated version as stated here.
Thank you.
Posted 08 September 2013 - 13:35 PM
I had the same problem check the jquery-ui its loaded twice in the bootstrap theme :)
i posted the problem on github.
Posted 09 December 2013 - 10:28 AM
I solved making this on Grocery_CRUD.php :
protected function get_datetime_input($field_info,$value){ $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); $this->set_css($this->default_css_path.'/jquery_plugins/jquery.ui.datetime.css'); $this->set_css($this->default_css_path.'/jquery_plugins/jquery-ui-timepicker-addon.css'); $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); //this is only for bootstrap template if( $this->theme='twitter-bootstrap' ){ $this->set_js($this->default_theme_path.'/twitter-bootstrap/js/jquery-ui/jquery-ui-1.9.2.custom.js'); }
I know is an smelly hack and is changing the core of GC, but the other optioni can think about is to reorder the array in js_files variable.