Sampa, on 25 July 2012 - 12:52 PM, said:
I would suggest just a little thing: disable the automatic registration of js and css and register it in your main layout file
Posted 25 July 2012 - 01:04 PM
Sampa, on 25 July 2012 - 12:52 PM, said:
Posted 25 July 2012 - 02:32 PM
Junior - df9, on 25 July 2012 - 01:04 PM, said:
Posted 25 July 2012 - 08:51 PM
Baranek, on 16 April 2012 - 02:47 AM, said:
class Quote_Bizinfo extends CFormModel {
public $user_id;
public $turnover;
public function rules() {
...
}
public function attributeLabels() {
...
}
public function getForm() {
$te = Yii::app()->user->id;
$reps = User::Model()->findAllByAttributes(array('is_rep'=>'1'));
return new CForm(array(
'showErrorSummary'=>true,
'elements'=>array(
'user_id'=>array
(
'type'=>'dropdownlist',
'items'=>array
(
$te=>$te,
),
'hint'=>'This is your unique client number<br>Please use as reference when contacting us',
'layout'=>'{label}{input}{hint}{error}'
),
//'sales_rep_name'=>array(),
'turnover'=>array
(
'type'=>'dropdownlist',
'items'=>array
(
''=>'',
'2'=>'R0m - R1.5m',
'3'=>'R1.5m - R2.5m',
),
'hint'=>'Your yearly turnover',
'layout'=>'{label}{input}{hint}{error}'
),
),
'buttons'=>array(
'save_draft'=>array
(
'type'=>'submit',
'label'=>'Save'
),
'submit'=>array
(
'type'=>'submit',
'label'=>'Next'
)
)
), $this);
}
<?php $this->widget('bootstrap.widgets.BootButton', array(
'label'=>'Primary',
'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
'size'=>'large', // '', 'large', 'small' or 'mini'
)); ?>
Posted 25 July 2012 - 10:10 PM
gdesmedt1, on 25 July 2012 - 08:51 PM, said:
'save_draft'=>array(
'type'=>'submit',
'label'=>'Save',
'htmlOptions'=>array('class'=>'btn btn-primary btn-large'),
),
Posted 26 July 2012 - 04:58 AM
Don Felipe, on 25 July 2012 - 10:10 PM, said:
'save_draft'=>array(
'type'=>'submit',
'label'=>'Save',
'htmlOptions'=>array('class'=>'btn btn-primary btn-large'),
),
PHP warning htmlspecialchars() expects parameter 1 to be string, array given
Posted 26 July 2012 - 05:59 AM
gdesmedt1, on 26 July 2012 - 04:58 AM, said:
PHP warning htmlspecialchars() expects parameter 1 to be string, array given
'buttons'=>array ( 'previous'=>array ( 'type'=>'submit', 'label'=>'Previous', 'class'=>'btn btn-large btn-primary' ), 'save_draft'=>array ( 'type'=>'submit', 'label'=>'Save', 'class'=>'btn btn-large btn-danger' ), 'submit'=>array ( 'type'=>'submit', 'label'=>'Next', 'class'=>'btn btn-large btn-success' ) )
Posted 26 July 2012 - 06:38 AM
<link rel="stylesheet/less" type="text/css" href="/less/styles.less"/> <script src="/js/less.js" type="text/javascript"></script>
/*
IMPORTS
*/
// Import the Bootstrap mixins, operations and functions so that you can use them in this file.
@import "../../protected/extensions/bootstrap/lib/bootstrap/less/mixins.less";
@import "../../protected/extensions/bootstrap/lib/bootstrap/less/navbar.less";
/*
VARIABLES
*/
@navbarBackgroundHighlight: #232051;
@navbarBackground: #3D368B;
// Your variables goes here ...
/*
MIXINS
*/
// Your mixins goes here ...
/*
RULES
*/
// Your rules goes here ...
Posted 26 July 2012 - 06:48 AM
gdesmedt1, on 26 July 2012 - 05:59 AM, said:
'buttons'=>array ( 'previous'=>array ( 'type'=>'submit', 'label'=>'Previous', 'class'=>'btn btn-large btn-primary' ), 'save_draft'=>array ( 'type'=>'submit', 'label'=>'Save', 'class'=>'btn btn-large btn-danger' ), 'submit'=>array ( 'type'=>'submit', 'label'=>'Next', 'class'=>'btn btn-large btn-success' ) )
Posted 26 July 2012 - 06:51 AM
Don Felipe, on 26 July 2012 - 06:48 AM, said:
Posted 28 July 2012 - 03:09 PM
Posted 30 July 2012 - 02:05 AM
Posted 30 July 2012 - 03:57 AM
Chris83, on 28 July 2012 - 03:09 PM, said:
Posted 30 July 2012 - 07:21 AM
Posted 30 July 2012 - 07:33 AM
Posted 30 July 2012 - 07:48 AM
public function actionIndex()
{
Yii::app()->user->setFlash('success', '<strong>Well done!</strong> You successfully read this important alert message.');
$this->widget('ext.bootstrap.widgets.TbAlert');
}
Quote
Quote
Capture.PNG (8.6K)
Posted 30 July 2012 - 08:09 AM
Chris83, on 30 July 2012 - 07:21 AM, said:
Posted 30 July 2012 - 08:54 AM
Posted 30 July 2012 - 10:19 AM
Chris83, on 30 July 2012 - 08:54 AM, said:
h1, h2, h3, h4, h5, h6 {
margin:10px 0; // ??? This isn't good at all!!
......
}
h1 {
font-size:36px;
line-height:40px;
}
h2 {
font-size:30px;
line-height:40px;
}
h3 {
font-size:24px;
line-height:40px;
}
h4 {
font-size:18px;
line-height:20px;
}
h5 {
font-size:14px;
line-height:20px;
}
h6 {
font-size:12px;
line-height:20px;
}
h1 small { font-size:24px; }
h2 small { font-size:18px; }
h3 small { font-size:14px; }
h4 small { font-size:14px; }
Posted 30 July 2012 - 12:46 PM
Chris83, on 30 July 2012 - 08:54 AM, said:
Quote
Posted 30 July 2012 - 02:17 PM
makro, on 30 July 2012 - 10:19 AM, said:
h1, h2, h3, h4, h5, h6 {
margin:10px 0; // ??? This isn't good at all!!
......
}
h1 {
font-size:36px;
line-height:40px;
}
h2 {
font-size:30px;
line-height:40px;
}
h3 {
font-size:24px;
line-height:40px;
}
h4 {
font-size:18px;
line-height:20px;
}
h5 {
font-size:14px;
line-height:20px;
}
h6 {
font-size:12px;
line-height:20px;
}
h1 small { font-size:24px; }
h2 small { font-size:18px; }
h3 small { font-size:14px; }
h4 small { font-size:14px; }