saska, on 02 April 2012 - 11:44 PM, said:
+1
Posted 04 April 2012 - 05:36 PM
Posted 04 April 2012 - 10:48 PM
Chris83, on 04 April 2012 - 02:14 PM, said:
menu item.jpg (8.83K)
Posted 04 April 2012 - 11:47 PM
<?php $form=$this->beginWidget('ext.bootstrap.widgets.BootActiveForm',array(
'id'=>'contatos-form',
'stacked'=>true,
'enableAjaxValidation'=>false,
)); ?>
<div class="hidden">
<?php echo $form->textFieldRow($model,'id',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'data_cri',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'data_alt',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'criado_por',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'alterado_por',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'id_cliente',array('class'=>'span5')); ?>
</div>
<?php echo $form->dropDownListRow($model,'tipo',array('Residencial'=>'Residencial', 'Comercial'=>'Comercial', 'Celular'=>'Celular', 'Rádio'=>'Rádio'),array('class'=>'span5','maxlength'=>30)); ?>
<?php echo $form->textFieldRow($model,'ddd',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'numero',array('class'=>'span5')); ?>
<?php $this->endWidget(); ?>
Posted 05 April 2012 - 01:21 AM
saska, on 04 April 2012 - 10:48 PM, said:
<?php $this->widget('bootstrap.widgets.BootButtonGroup', array(
'type'=>'primary',
'buttons'=>array(
array('label'=>'Edit', 'url'=>array('update', 'id'=>1)),
array('items'=>array(
array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array(
'submit'=>array('item/delete', 'id'=>1),
'confirm'=>'Are you sure?')
),
)),
),
)); ?>
Posted 05 April 2012 - 02:35 AM
Coowboy, on 04 April 2012 - 11:47 PM, said:
<?php $form=$this->beginWidget('ext.bootstrap.widgets.BootActiveForm',array(
'id'=>'contatos-form',
'stacked'=>true,
'enableAjaxValidation'=>false,
)); ?>
<div class="hidden">
<?php echo $form->textFieldRow($model,'id',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'data_cri',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'data_alt',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'criado_por',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'alterado_por',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'id_cliente',array('class'=>'span5')); ?>
</div>
<?php echo $form->dropDownListRow($model,'tipo',array('Residencial'=>'Residencial', 'Comercial'=>'Comercial', 'Celular'=>'Celular', 'Rádio'=>'Rádio'),array('class'=>'span5','maxlength'=>30)); ?>
<?php echo $form->textFieldRow($model,'ddd',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'numero',array('class'=>'span5')); ?>
<?php $this->endWidget(); ?>
Posted 05 April 2012 - 09:13 AM
Chris83, on 05 April 2012 - 02:35 AM, said:
Posted 06 April 2012 - 10:47 AM
cyphos, on 06 April 2012 - 06:06 AM, said:
Posted 07 April 2012 - 01:01 PM
$this->widget('bootstrap.widgets.BootMenu', array(... works well, but when I use gii to generate CRUD code, it still generates the normal code (e.g. admin.php still contains zii.widgets.grid.CGridView) instead of the code provided in extensions/bootstrap/gii/bootstrap/templates/default/.
Posted 07 April 2012 - 02:00 PM
Neuni, on 07 April 2012 - 01:01 PM, said:
$this->widget('bootstrap.widgets.BootMenu', array(... works well, but when I use gii to generate CRUD code, it still generates the normal code (e.g. admin.php still contains zii.widgets.grid.CGridView) instead of the code provided in extensions/bootstrap/gii/bootstrap/templates/default/.
Posted 08 April 2012 - 11:12 AM
'events'=>array(
'slide'=>"js:function() { console.log('Carousel slide.'); }",
'slid'=>"js:function() { console.log('Carousel slid.'); }",
),
Posted 09 April 2012 - 10:01 PM
protected function renderItems ($items)
....
if (isset($item['customHtml'])) {
echo $item['customHtml'];
}
...
}
Posted 10 April 2012 - 09:52 PM
swampone, on 08 April 2012 - 11:12 AM, said:
'events'=>array(
'slide'=>"js:function() { console.log('Carousel slide.'); }",
'slid'=>"js:function() { console.log('Carousel slid.'); }",
),$cs->registerScript(__CLASS__.'#'.$id, "jQuery('{$id}').carousel({$options});");$cs->registerScript(__CLASS__.'#'.$this->id, "jQuery('#{$id}').carousel({$options});");
Posted 11 April 2012 - 07:46 AM
Posted 13 April 2012 - 01:59 AM
<?php $this->widget('bootstrap.widgets.BootButton', array('fn'=>'submit', 'type'=>'primary', 'icon'=>'ok white', 'label'=>'Submit')); ?><input class="btn btn-primary" type="submit" name="yt1" value="<i class="icon-ok icon-white"></i> Submit">
Posted 13 April 2012 - 04:32 AM
Bildschirmfoto 2012-04-13 um 11.20.22.png (259.09K)
Posted 13 April 2012 - 07:08 AM
Fredi, on 13 April 2012 - 01:59 AM, said:
<?php $this->widget('bootstrap.widgets.BootButton', array('fn'=>'submit', 'type'=>'primary', 'icon'=>'ok white', 'label'=>'Submit')); ?><input class="btn btn-primary" type="submit" name="yt1" value="<i class="icon-ok icon-white"></i> Submit">