⚠ 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. ⚠

  •     

profile picture

Installed Bootstrap - not responsive



darreno

darreno
  • profile picture
  • Member

Posted 03 April 2017 - 20:43 PM

Newbie here,

 

Hello masters!

 

I love Grocerycrud, downloaded and installed the new Bootstrap theme.

 

I appreciate any guidance.

 

Changed $config['grocery_crud_default_theme'] = 'bootstrap';

 

Theme seems to be in an iframe, is not responsive. Image attached shows result.

 

examples.php view was not changed:

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php 
foreach($css_files as $file): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
<script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
</head>
<body>
<div>
<a href='<?php echo site_url('examples/customers_management')?>'>Customers</a> |
<a href='<?php echo site_url('examples/orders_management')?>'>Orders</a> |
<a href='<?php echo site_url('examples/products_management')?>'>Products</a> |
<a href='<?php echo site_url('examples/offices_management')?>'>Offices</a> | 
<a href='<?php echo site_url('examples/employees_management')?>'>Employees</a> |
<a href='<?php echo site_url('examples/film_management')?>'>Films</a> |
<a href='<?php echo site_url('examples/multigrids')?>'>Multigrid [BETA]</a>
 
</div>
<div style='height:20px;'></div>  
    <div>
<?php echo $output; ?>
    </div>
</body>
</html>

 


seth

seth
  • profile picture
  • Member

Posted 04 April 2017 - 00:27 AM

Hey, have you tried putting this syntax to our controller? to set your bootstrap theme..

Have you clicked already the maximize button?

is it running or you want it in full screen ?

 

I guess if you would like it to input into a page you should have edit the height and width in the <iframe> tag

 

$crud->set_theme('bootstrap');


darreno

darreno
  • profile picture
  • Member

Posted 04 April 2017 - 12:10 PM

This is the syntax for the examples controller.

 

Yes I did try with the maximize button

 

We would like full screen like the live demo video.

 

I tried setting the theme in the config and also in the page $crud->set_theme('bootstrap'); 

 

I don't want an iframe with scroll bar.