lead() public static method

Generates a paragraph that stands out.
public static lead ( string $text, array $htmlOptions = [] ) : string
$text string the lead text.
$htmlOptions array additional HTML attributes.
return string the generated paragraph.
Beispiel #1
0
 public function testLead()
 {
     $I = $this->codeGuy;
     $html = TbHtml::lead('Lead text');
     $p = $I->createNode($html, 'p.lead');
     $I->seeNodeText($p, 'Lead text');
 }
<link rel="stylesheet" type="text/css"
	href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/users.css" />
        
<p> <b>Questionnaire - Windows Phone</b></p>


<div class="well">
    	<?php 
$testes_selecionados = array();
?>
		<?php 
echo TbHtml::lead('Characteristics ');
?>
		<?php 
echo TbHtml::small('To improve the quality of testing in  your app, please answer the questions simply check the functionality required by your app.', array('class' => 'help-block'));
?>
		
		<p><?php 
echo TbHtml::b('Connectivity');
?>
</p>
			<?php 
echo TbHtml::checkBoxList('checkConnectivity', '', array('3.1, 3.2' => CHtml::encode('Does your app use Network Connection?')));
?>
		<p><?php 
echo TbHtml::b('Content Interaction');
?>
Beispiel #3
0
<div class="span9">

<!-- Typography
    ================================================== -->
<section id="typography">

    <div class="page-header">
        <h1>Typography</h1>
    </div>

    <h2>Lead</h2>

    <div class="bs-docs-example">
        <?php 
echo TbHtml::lead('Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.');
?>
    </div>
    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::lead('...'); ?></pre>

    <hr class="bs-docs-separator">

    <h2>Emphasis</h2>

    <h3>Small</h3>

    <div class="bs-docs-example">
        <p><?php 
echo TbHtml::small('This line of text is meant to be treated as fine print.');
?>
Beispiel #4
0
<?php 
$this->endWidget();
?>

<p><?php 
echo TbHtml::submitButton('Редагувати анкету', array('submit' => array('/manage/profiles/update', 'id' => $model->id), 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</p>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('type' => 'bordered condensed', 'data' => $model, 'attributes' => array(array('name' => 'status', 'value' => $model->statusTypes[$model->status]), 'first_name', 'last_name', array('name' => 'gender', 'value' => $model->genderTypes[$model->gender]), array('name' => 'birth_date', 'value' => Yii::app()->dateFormatter->formatDateTime($model->birth_date, "long", false) . " (" . $this->getTimeDiff($model->birth_date) . ")"), 'contact_phone', 'email:email', array('name' => 'residenciesIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesResidence, 'city_index', 'city_name')))), array('name' => 'education', 'value' => $model->educationTypes[$model->education]), 'eduction_info:ntext', 'work_experience:ntext', 'skills:ntext', 'summary:ntext', array('name' => 'categoryIds', 'value' => implode(', ', array_values(CHtml::listData($model->categories, 'id', 'name'))), 'type' => 'html'), 'desired_position', array('name' => 'positionsIds', 'value' => implode(', ', array_values(CHtml::listData($model->positions, 'id', 'name')))), 'salary', array('name' => 'jobLocationsIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesJobLocations, 'city_index', 'city_name')))), 'documents', array('name' => 'driverLicensesIds', 'value' => implode(', ', array_values(CHtml::listData($model->driverLicensesTypes, 'id', 'name')))), 'applicant_type', 'cv_file:url', array('name' => 'assistanceIds', 'value' => $model->assistances, 'type' => 'html'), array('name' => 'recruiter_id', 'value' => isset($model->recruiter->last_name) ? CHtml::link($model->recruiter->first_name . " " . $model->recruiter->last_name, array('/manage/reqruiter', 'id' => $model->recruiter->id)) : '', 'type' => 'html'), 'recruiter_comments:ntext', 'who_filled', array('name' => 'added_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->added_time, "long"), 'type' => 'html'))));
?>

<?php 
echo TbHtml::lead('Можливі вакансії:');
?>


<?php 
$this->widget('bootstrap.widgets.TbGridView', ['dataProvider' => $vacanciesDataProvider, 'filter' => null, 'columns' => ['id', 'name', 'city.city_name', ['class' => CDataColumn::class, 'value' => function (Vacancy $object) {
    return $object->company->name;
}, 'header' => Yii::t('main', 'vacancy.label.company')], ['class' => CDataColumn::class, 'value' => function (Vacancy $object) {
    return $object->user->first_name . " " . $object->user->phone;
}, 'header' => Yii::t('main', 'vacancy.label.user')], ['name' => 'close_time', 'value' => function (Vacancy $vacancy) {
    return Yii::app()->dateFormatter->formatDateTime($vacancy->close_time, "long", false);
}], ['class' => CDataColumn::class, 'value' => function (Vacancy $vacancy) {
    return VacancyHelper::statusName($vacancy);
}, 'header' => Yii::t('main', 'vacancy.label.status')], ['class' => CDataColumn::class, 'value' => function (Vacancy $object) {
    return CHtml::link(TbHtml::icon(TbHtml::ICON_EYE_OPEN), ["vacancies/view", 'id' => $object->id]) . ' ' . CHtml::link(TbHtml::icon(TbHtml::ICON_EDIT), ["vacancies/update", 'id' => $object->id]);
}, 'type' => 'raw']]]);
Beispiel #5
0
<?php

/* @var $this ProfilesController */
/* @var $model CvList */
?>

<?php 
$this->breadcrumbs = array('Cv Lists' => array('index'), $model->id => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('label' => 'Список претендентів', 'url' => array('index')));
?>

<?php 
echo TbHtml::lead('Редагувати анкету &laquo;' . $model->first_name . ' ' . $model->last_name . '&raquo;');
$this->renderPartial('_form', array('model' => $model));
Beispiel #6
0
<?php

/* @var $this UsersController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), $model->id => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('label' => 'Управління'), array('label' => 'Список користувачів', 'url' => array('index')), array('label' => 'Перегляд анкети', 'url' => array('view', 'id' => $model->id)));
?>

<?php 
echo TbHtml::lead('Редагувати дані користувача &laquo;' . $model->first_name . ' ' . $model->last_name . '&raquo;');
$this->renderPartial('_form', array('model' => $model));
<?php

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'client-selected-form', 'enableAjaxValidation' => false, 'layout' => TbHtml::FORM_LAYOUT_INLINE));
?>
 
         <?php 
//echo TbHtml::labelTb(ucwords($customer) . ' - ' . $customer_mobile_no, array('color' => TbHtml::LABEL_COLOR_INFO));
?>

          <?php 
echo TbHtml::lead(ucwords($customer) . ' - ' . $customer_mobile_no);
?>

         <?php 
echo TbHtml::linkButton(Yii::t('app', 'Detach'), array('color' => TbHtml::BUTTON_COLOR_WARNING, 'size' => TbHtml::BUTTON_SIZE_MINI, 'icon' => 'remove white', 'class' => 'detach-customer'));
?>
            
<?php 
$this->endWidget();