The search bar and paging in bootstrap 2.0 look bad.
The search bar and paging in bootstrap 2.0 look bad.
elfozi
Posts: 3Questions: 0Answers: 0
Good afternoon and sorry for my bad English thing is that I am using a translator.
I tell them my problem, I'm using bootstrap version 2.0 with the DataTables 1.9 and I have problems when I use it as follows
[code]
Seleccione Especialidad
Especialidades
Seleccionar
<?php if(count($this->especialidades)): ?>
<?php foreach($this->especialidades as $e):?>
<?php if($e->NOMBRE!=""):?>
<?php echo $e->NOMBRE?>
Seleccionar
<?php endif;?>
<?php endforeach;?>
<?php else: ?>
No hay registros
<?php endif;?>
Holaa
[/code]
The combobox to select the number of records, the text field to search and the pager buttons look out of place
But if I use it as follows looks good.
[code]
Pueden anotarse:
Nombre
Apellido
Tipo Documento
Nro Documento
Estado
Seleccionar
<?php if(count($this->puede)>=1):?>
<?php foreach($this->puede as $s):?>
<?php echo unserialize($s)->getNombre(); ?>
<?php echo unserialize($s)->getApellido(); ?>
<?php echo unserialize($s)->getTipoDoc(); ?>
<?php echo unserialize($s)->getDocumento(); ?>
<?php echo unserialize($s)->getEstado(); ?>
Seleccionar
<?php endforeach; ?>
<?php else: ?>
No hay registros
No hay registros
No hay registros
No hay registros
No hay registros
No hay registros
<?php endif;?>
No Pueden anotarse:
Nombre
Apellido
Tipo Documento
Nro Documento
Estado
<?php foreach($this->noPuede as $p){?>
<?php echo unserialize($p)->getNombre(); ?>
<?php echo unserialize($p)->getApellido(); ?>
<?php echo unserialize($p)->getTipoDoc(); ?>
<?php echo unserialize($p)->getDocumento(); ?>
<?php echo unserialize($p)->getEstado(); ?>
<?php };?>
[/code]
Any ideas?
Greetings and thank you very much everyone!
I have modified the CSS to work with bootstrap2 and js.
I tell them my problem, I'm using bootstrap version 2.0 with the DataTables 1.9 and I have problems when I use it as follows
[code]
Seleccione Especialidad
Especialidades
Seleccionar
<?php if(count($this->especialidades)): ?>
<?php foreach($this->especialidades as $e):?>
<?php if($e->NOMBRE!=""):?>
<?php echo $e->NOMBRE?>
Seleccionar
<?php endif;?>
<?php endforeach;?>
<?php else: ?>
No hay registros
<?php endif;?>
Holaa
[/code]
The combobox to select the number of records, the text field to search and the pager buttons look out of place
But if I use it as follows looks good.
[code]
Pueden anotarse:
Nombre
Apellido
Tipo Documento
Nro Documento
Estado
Seleccionar
<?php if(count($this->puede)>=1):?>
<?php foreach($this->puede as $s):?>
<?php echo unserialize($s)->getNombre(); ?>
<?php echo unserialize($s)->getApellido(); ?>
<?php echo unserialize($s)->getTipoDoc(); ?>
<?php echo unserialize($s)->getDocumento(); ?>
<?php echo unserialize($s)->getEstado(); ?>
Seleccionar
<?php endforeach; ?>
<?php else: ?>
No hay registros
No hay registros
No hay registros
No hay registros
No hay registros
No hay registros
<?php endif;?>
No Pueden anotarse:
Nombre
Apellido
Tipo Documento
Nro Documento
Estado
<?php foreach($this->noPuede as $p){?>
<?php echo unserialize($p)->getNombre(); ?>
<?php echo unserialize($p)->getApellido(); ?>
<?php echo unserialize($p)->getTipoDoc(); ?>
<?php echo unserialize($p)->getDocumento(); ?>
<?php echo unserialize($p)->getEstado(); ?>
<?php };?>
[/code]
Any ideas?
Greetings and thank you very much everyone!
I have modified the CSS to work with bootstrap2 and js.
This discussion has been closed.
Replies
Allan
"Sodom": "<'row' <'span6'l> <' span6'f> r> t <'row' <'span6'i> <' span6'p >>"
I realized that the problem is with the span are already defined in bootstrap then CSS elements move and do not stay in position.
It's like the divs take up more space than it actually occupies the containing element and there is a difference.
Is there any way you could add or subtract pixels to compensate for the added or subtracted to bootstrap your CSS?
That is something like this:
example:
"Sodom": "<'row' <'span6 +10 px'l> <' span6-5px'f> r> t <'row' <'span6 +15 px'i> <' span6-2px'p >>"
Greetings and thank you very much again!.
To solve my problem instead of using fluid please use the common grid.
Being as follows:
[code]
Seleccione Especialidad
Especialidades
Seleccionar
<?php if(count($this->especialidades)): ?>
<?php foreach($this->especialidades as $e):?>
<?php if($e->NOMBRE!=""):?>
<?php echo $e->NOMBRE?>
Seleccionar
<?php endif;?>
<?php endforeach;?>
<?php else: ?>
No hay registros
<?php endif;?>
Holaa
[/code]
Greetings and thank you very much! :)