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');
|
||||
echo $this->Form->create('Logs', array(
|
||||
'default' => false,
|
||||
'role' => 'form'
|
||||
));
|
||||
?>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
echo $this->Form->label('Component');
|
||||
echo $this->Form->select('Component', $componentoptions);
|
||||
echo $this->Form->button('Refresh', array('id' => 'btnComponentRefresh'));
|
||||
echo $this->Form->select('Component', $componentoptions, array('class' => 'form-control'));
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
$optionsend = array(
|
||||
'label' => 'Refresh',
|
||||
'div' => false,
|
||||
'class' => array('btn', 'btn-default'),
|
||||
'id' => 'btnComponentRefresh'
|
||||
);
|
||||
echo $this->Form->end($optionsend);
|
||||
$this->end();
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
// Logs //
|
||||
$("#Component").change(function(){
|
||||
$("#LogsComponent").change(function(){
|
||||
if (!!$(this).val()) {
|
||||
$("#tblComponents").load("/logs/index/Component:" + $(this).val() + ' #tblComponents');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue