How to unset Minimize and Maximize Option in Grocery Crud (CodeIgniter) -


how disable/unset minimize , maximize option added default in grocery crud table

i guess happens in flexgrid theme (the default theme of grocery).

to achieve change default theme of grocery in order use twitter bootstrap or datatables theme. use function called set_theme that. here code sample of how this:

//this controller method function offices_management() {     $crud = new grocery_crud();      $crud->set_theme('twitter-bootstrap'); //change theme here      $crud->set_table('offices');     $crud->set_subject('office');     $crud->required_fields('city');     $crud->columns('city','country','phone','addressline1','postalcode');      $output = $crud->render();      $this->_example_output($output); } 

if need / want use default theme, have following steps:

1 - open file ../assets/grocery_crud/themes/flexigrid/views/list_template.php using editor (for example notepad++ ou sublime text)

2 - add comment around mdiv block, in case (grocery 1.4.1) @ line of number 46

<!-- <div class="mdiv">     <div class="ftitle">         &nbsp;     </div>     <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle">         <span></span>     </div> </div> --> 

3 - save file , test application again (be sure erase browser cache)


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -