Display elements properly for bootstrap. Also fixed element id's
This commit is contained in:
parent
d32bab4248
commit
34b4ec0b94
|
@ -5,9 +5,25 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->start('sidebar');
|
$this->start('sidebar');
|
||||||
|
echo $this->Form->create('Logs', array(
|
||||||
|
'default' => false,
|
||||||
|
'role' => 'form'
|
||||||
|
));
|
||||||
|
?>
|
||||||
|
<div class="form-group">
|
||||||
|
<?php
|
||||||
echo $this->Form->label('Component');
|
echo $this->Form->label('Component');
|
||||||
echo $this->Form->select('Component', $componentoptions);
|
echo $this->Form->select('Component', $componentoptions, array('class' => 'form-control'));
|
||||||
echo $this->Form->button('Refresh', array('id' => 'btnComponentRefresh'));
|
?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
$optionsend = array(
|
||||||
|
'label' => 'Refresh',
|
||||||
|
'div' => false,
|
||||||
|
'class' => array('btn', 'btn-default'),
|
||||||
|
'id' => 'btnComponentRefresh'
|
||||||
|
);
|
||||||
|
echo $this->Form->end($optionsend);
|
||||||
$this->end();
|
$this->end();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// Logs //
|
// Logs //
|
||||||
$("#Component").change(function(){
|
$("#LogsComponent").change(function(){
|
||||||
if (!!$(this).val()) {
|
if (!!$(this).val()) {
|
||||||
$("#tblComponents").load("/logs/index/Component:" + $(this).val() + ' #tblComponents');
|
$("#tblComponents").load("/logs/index/Component:" + $(this).val() + ' #tblComponents');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue