Greetings... I am converting the views for yii-user and yii-rights to leverage this module... it's starting to look really nice. (happy to contribute back for anyone that would want it).
I am having a little trouble with converting one item that when rendered with the CMenu widget, works, but I can not seem to get it to work with TbButton.
Here is the original code from the yii-user module view:
$this->menu=array(
array('label'=>UserModule::t('Delete User'), 'url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>UserModule::t('Are you sure to delete this item?')))
);
Here is how I currently have it in my theme/view:
$this->widget('bootstrap.widgets.TbButton', array(
'buttonType'=>'link',
'icon'=>'trash',
'type'=>'danger',
'label'=>UserModule::t('Delete User'),
'url'=>array('delete','id'=>$model->id),
'htmlOptions'=>array('confirm'=>UserModule::t('Are you sure to delete this item?')),
'size'=>'Large'
));
It does the prompt,but then goes to the URL (which requires a POST not a GET). Any advice?
Many Thanks. And Chris -> Love this module and yii-rights... thank you for your constant contributions.
~SOL