本文整理匯總了PHP中TbHtml::formActions方法的典型用法代碼示例。如果您正苦於以下問題:PHP TbHtml::formActions方法的具體用法?PHP TbHtml::formActions怎麽用?PHP TbHtml::formActions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TbHtml
的用法示例。
在下文中一共展示了TbHtml::formActions方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<p class="text-center"><?php
echo Yii::t('app', 'Please input new password for ');
?>
<strong><?php
echo $model->username;
?>
</strong>
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'password', array('class' => 'span4', 'placeholder' => Yii::t('app', 'new password')));
?>
</div>
<?php
echo TbHtml::formActions([TbHtml::submitButton(Yii::t('app', 'Change password'), ['color' => TbHtml::BUTTON_COLOR_PRIMARY])]);
?>
<?php
}
?>
<?php
$this->endWidget();
?>
</div>
</div><!-- form -->
示例2: array
/* @var $model Pengadaan */
$this->breadcrumbs = array('Pengadaan' => array('index'), 'Rekap Pengadaan');
$this->menu = array();
?>
<h1>Rekap Pengadaan</h1>
<div class="search-form">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<div align="right">
<?php
echo TbHtml::formActions(array(TbHtml::linkButton('Cetak Laporan', array('submit' => array('Cetaklaporan', 'tgl_awal' => $model->from_date, 'tgl_akhir' => $model->to_date, 'toko' => $model->NAMA_TOKO, 'status' => $model->STATUS), 'target' => '_blank', 'style' => 'text-decoration:none;', 'color' => TbHtml::BUTTON_COLOR_PRIMARY))));
?>
<p></p>
<?php
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'pengadaan-grid', 'type' => TbHtml::GRID_TYPE_HOVER, 'dataProvider' => $model->search2(), 'template' => "{items}\n{pager}", 'columns' => array(array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'), array('name' => 'No Po', 'value' => '$data->NO_PO'), array('name' => 'Tanggal Pengadaan', 'value' => function ($data, $row) {
if ($data->TGL_PENGADAAN != "0000-00-00") {
return date("d-M-y", strtotime($data->TGL_PENGADAAN));
} else {
return '-';
}
}), array('name' => 'Permintaan', 'value' => '$data->PERMINTAAN'), array('name' => 'Nama Toko', 'value' => '$data->NAMA_TOKO'), array('name' => 'Harga Total', 'value' => '$data->HARGA_TOTAL'), array('name' => 'Status', 'value' => '$data->STATUS'), array('name' => 'Aksi', 'type' => 'raw', 'value' => function ($data, $row) {
if ($data->STATUS == "BARU") {
return TbHtml::link("Pilih Sparepart", array("sparepart/admin", "id" => $data->ID_PENGADAAN), array('style' => 'font-weight:900;text-decoration:none;'));
} else {
示例3: array
<p class="help-block">Campos con <span class="required">*</span> con necesarios.</p>
<?php
echo $form->textFieldControlGroup($model, 'username');
?>
<?php
echo $form->passwordFieldControlGroup($model, 'password');
?>
<?php
echo $form->checkBoxControlGroup($model, 'rememberMe');
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton('Iniciar sesión', array('color' => TbHtml::BUTTON_COLOR_PRIMARY))));
?>
<?php
//Yii::app()->user->ui->tbutton(CrugeTranslator::t('logon', "Login"));
?>
<?php
echo Yii::app()->user->ui->passwordRecoveryLink;
?>
<?php
if (Yii::app()->user->um->getDefaultSystem()->getn('registrationonlogin') === 1) {
echo Yii::app()->user->ui->registrationLink;
}
?>
示例4: createFormActions
/**
* Generates the form actions container (i.e. submit button, etc).
* @param mixed $actions the actions.
* @param array $htmlOptions additional HTML attributes.
* @return string
*/
public function createFormActions($actions, $htmlOptions = array())
{
$htmlOptions['formLayout'] = $this->layout;
$htmlOptions['labelWidthClass'] = TbArray::getValue('labelWidthClass', $htmlOptions, $this->labelWidthClass);
$htmlOptions['controlWidthClass'] = TbArray::getValue('controlWidthClass', $htmlOptions, $this->controlWidthClass);
return TbHtml::formActions($actions, $htmlOptions);
}
示例5: array
<div class="row">
<div class="span6 offset3 well">
<h3 class="text-center"><?php
echo Yii::t('app', 'Recovery user password');
?>
</h3>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'recovery-password-form', 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
?>
<p class="muted text-center">
<?php
echo Yii::t('app', 'Please input your email address below, you will be sent a link to reset your password.');
?>
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'email', array('class' => 'span4', 'placeholder' => Yii::t('app', 'email')));
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton(Yii::t('user', 'Recovery password'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS)), TbHtml::btn(TbHtml::BUTTON_TYPE_LINK, Yii::t('user', 'Remember password?'), array('color' => TbHtml::BUTTON_COLOR_LINK, 'url' => '/user/login'))));
?>
<?php
$this->endWidget();
?>
</div>
</div><!-- form -->
示例6: array
?>
<?php
echo $form->textFieldControlGroup($model, 'append', array('append' => '.00'));
?>
<?php
echo $form->checkBoxControlGroup($model, 'disabledCheckbox', array('disabled' => true));
?>
<?php
echo $form->inlineCheckBoxListControlGroup($model, 'inlineCheckboxes', array('1', '2', '3'));
?>
<?php
echo $form->checkBoxListControlGroup($model, 'checkboxes', array('Option one is this and that—be sure to include why it\'s great', 'Option two can also be checked and included in form results', 'Option three can—yes, you guessed it—also be checked and included in form results'), array('help' => '<strong>Note:</strong> Labels surround all the options for much larger click areas.'));
?>
<?php
echo $form->radioButtonControlGroup($model, 'radioButton');
?>
<?php
echo $form->radioButtonListControlGroup($model, 'radioButtons', array('Option one is this and that—be sure to include why it\'s great', 'Option two can is something else and selecting it will deselect option one'));
?>
</fieldset>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset')));
?>
<?php
$this->endWidget();
?>
</div>
示例7: array
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'username', array('placeholder' => Yii::t('app', 'username')));
?>
<?php
echo $form->textFieldControlGroup($model, 'email', array('placeholder' => Yii::t('app', 'email')));
?>
<?php
echo $form->passwordFieldControlGroup($model, 'password', array('placeholder' => Yii::t('app', 'password')));
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton(Yii::t('user', 'Sign Up!'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS))));
?>
<?php
$this->endWidget();
?>
<div class="well">
<div class="span3 offset1">
<?php
echo TbHtml::btn(TbHtml::BUTTON_TYPE_LINK, Yii::t('user', 'Already registered?'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'url' => '/user/login'));
?>
</div>
</div>
</div>
</div>
示例8: array
/* @var $model Config */
/* @var $form CActiveForm */
?>
<div class="form">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'id' => 'config-form', 'enableAjaxValidation' => false));
?>
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'key', array('size' => 60, 'maxlength' => 100, 'readonly' => $model->isNewRecord ? false : true));
?>
<?php
echo $form->textFieldControlGroup($model, 'value');
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton($model->isNewRecord ? '創建' : '保存', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('重填')));
?>
<?php
$this->endWidget();
?>
</div><!-- form -->
示例9: array
<?php
echo $form->dropDownList($affiliate, 'payment_cycle', array(Yii::t('traveller', 'Select'), 'Quincenal', 'Mensual'), array('disabled' => true));
?>
</div>
<div class="span4">
<p><?php
echo Yii::t('traveller', 'Status');
?>
</p>
<?php
echo $form->dropDownList($affiliate, 'status', CHtml::listData(Status::model()->findAll(), 'idstatu', 'name'), array('disabled' => true));
?>
</div>
</div>
<?php
}
}
?>
</fieldset>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton(Yii::t('traveller', 'Save'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY))));
?>
<?php
$this->endWidget();
$this->endWidget();
示例10: array
<div>
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL,
'focus'=>array($model,'username'),
)); ?>
<h2 class="ui-widget-header centrado ">Ingrese sus credenciales</h2>
<fieldset style="margin-top: 20px;">
<!--<legend></legend>-->
<?php echo $form->textFieldControlGroup($model, 'username', array('span' => 2,'style'=>'text-transform:lowercase;'));?>
<?php echo $form->passwordFieldControlGroup($model, 'password', array('span' => 2,'style'=>'text-transform:lowercase;'));?>
</fieldset>
<?php echo TbHtml::formActions(array(
TbHtml::submitButton(Yii::t('app', 'Login'), array(
'style' =>'margin-left:42px;',
'icon'=>'user',
'color' => TbHtml::BUTTON_COLOR_SUCCESS)),
)); ?>
<?php $this->endWidget(); ?>
</div><!-- form -->
示例11: array
?>
<?php
echo $form->labelEx($model, 'verifyCode');
?>
<?php
$this->widget('CCaptcha');
?>
<?php
echo $form->textFieldControlGroup($model, 'verifyCode', array('help' => CrugeTranslator::t("por favor ingrese los caracteres o digitos que vea en la imagen")));
?>
<?php
echo $form->error($model, 'verifyCode');
?>
<?php
}
?>
</fieldset>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton('Recuperar la Clave', array('color' => TbHtml::BUTTON_COLOR_PRIMARY))));
?>
<?php
$this->endWidget();
?>
<?php
}
示例12: array
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
?>
<fieldset>
<legend ></legend>
<?php
echo $form->textFieldControlGroup($model, 'cityName', array('help' => 'Введите город', 'size' => 60, 'maxlength' => 128));
?>
<?php
if ($model->error != GameUtils::ERROR_SUCCESS) {
?>
<div id="error_wrapper">
<?php
echo TbHtml::labelTb($model->error, array('color' => TbHtml::LABEL_COLOR_IMPORTANT, 'id' => 'error_label'));
?>
</div>
<?php
}
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton('Ходить', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::linkButton('Сдаться', array('color' => TbHtml::BUTTON_COLOR_INFO, 'url' => array('game/delete', 'id' => Yii::app()->session['gameId'])))));
?>
</fieldset>
<?php
$this->endWidget();
示例13: array
</h3>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'login-form', 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'htmlOptions' => ['class' => 'well']));
?>
<?php
//echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'username', array('class' => 'span3', 'placeholder' => Yii::t('user', 'username or email')));
?>
<?php
echo $form->passwordFieldControlGroup($model, 'password', array('class' => 'span3', 'placeholder' => Yii::t('user', 'password')));
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton(Yii::t('user', 'Log In'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::btn(TbHtml::BUTTON_TYPE_LINK, Yii::t('user', 'Forgot password?'), array('color' => TbHtml::BUTTON_COLOR_LINK, 'url' => '/user/passrecovery'))));
?>
<?php
$this->endWidget();
?>
<div class='well'>
<div class="span2"><?php
echo Yii::t('user', 'New user?');
?>
</div>
<div class="span2">
<?php
echo TbHtml::btn(TbHtml::BUTTON_TYPE_LINK, Yii::t('user', 'Sign Up!'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'url' => '/user/registration'));
?>
示例14: testFormActions
public function testFormActions()
{
$I = $this->codeGuy;
$html = TbHtml::formActions('<div class="action"></div><div class="action"></div>');
$this->assertEquals('<div class="form-actions"><div class="action"></div><div class="action"></div></div>', $html);
$actions = $I->createNode($html, 'div.form-actions');
$I->seeNodeChildren($actions, array('div.action', 'div.action'));
$html = TbHtml::formActions(array('<div class="action"></div>', '<div class="action"></div>'));
$actions = $I->createNode($html, 'div.form-actions');
$I->seeNodeChildren($actions, array('div.action', 'div.action'));
}
示例15: array
<input
type="checkbox" value="0" name="LoginForm[rememberMe]" id="LoginForm_rememberMe">
Remember me next time<span style="display: none" id="LoginForm_rememberMe_em_"
class="help-inline error"></span></label></div>
</div>-->
<?php
if ($model->getRequireCaptcha()) {
?>
<?php
$this->widget('application.extensions.recaptcha.EReCaptcha', array('model' => $user, 'attribute' => 'verify_code', 'theme' => 'red', 'language' => 'en', 'publicKey' => Yii::app()->params['recaptcha_public_key']));
?>
<?php
echo CHtml::error($model, 'verify_code');
?>
<?php
}
?>
<?php
echo TbHtml::formActions(array(TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset'), TbHtml::linkButton('Forgot My Password,Dammit!', array('url' => $this->createUrl('site/email_for_reset'), 'icon' => 'exclamation-sign'))));
?>
<?php
$this->endWidget();
?>
</div><!-- form -->
</div>