Display elements properly for bootstrap. Also fixed element id's

This commit is contained in:
Kyle Johnson 2013-09-12 20:03:41 -04:00
parent d32bab4248
commit 34b4ec0b94
2 changed files with 19 additions and 3 deletions

View File

@ -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();
?> ?>

View File

@ -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 {