resetButton() public static method

Generates a reset button.
public static resetButton ( string $label = 'Reset', array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
return string the generated button.
Example #1
0
?>
        <?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>
    
Example #2
0
                        // tampilkan pesan error
                        $("#"+key+"_em_").text(val);
                        $("#"+key+"_em_").show();

                        });
						

                    }
					$("html, body").animate({ scrollTop: 0 }, "slow");   

                 }', 'error' => 'js:function(data) {

                // sembunyikan loader progress
                $("#loader").hide();
				 
                // tampilkan jika status server error
                errorMsgBox("An Error Ocurred Please Try Again");
				$("html, body").animate({ scrollTop: 0 }, "slow");

                }'), array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncommand'));
echo "&nbsp;&nbsp;";
// Tombol untuk batal
echo TbHtml::resetButton('<i class="icon-fa-remove-circle icon-fa-large"></i> Cancel', array('color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncancel'));
?>
        &nbsp;&nbsp;
        <img id="loader" style="display:none" src="<?php 
echo Yii::app()->baseurl;
?>
/images/25.GIF"/>
    </div>
Example #3
0
<?php

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'acl-controller-form', 'enableAjaxValidation' => false));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php 
echo $form->errorSummary($model);
echo $form->textFieldControlGroup($model, 'controller', array('class' => 'span5', 'maxlength' => 150));
echo $form->textFieldControlGroup($model, 'title', array('class' => 'span5', 'maxlength' => 150));
echo $form->dropDownListControlGroup($model, 'controller_type', array('1' => 'Backend', '0' => 'Frontend'), array('class' => 'span5'));
echo $form->dropDownListControlGroup($model, 'status', array('1' => 'Active', '0' => 'Inactive'), array('class' => 'span5'));
?>

<div class="form-actions">
    <?php 
echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
    <?php 
echo TbHtml::resetButton('Reset', array('color' => TbHtml::BUTTON_COLOR_INFO));
?>
</div>

<?php 
$this->endWidget();
Example #4
0
/* @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 -->
Example #5
0
echo $form->label($model, 'rememberMe', array('style' => 'display:inline;'));
?>
</span>
                                </label>                                
                            </div>
                            <div class="space-4"></div>
                        </fieldset>                        
                    </div><!-- /widget-main -->
                    <div class="toolbar clearfix">
                        <div class="row-fluid">
                            <div class="span2"></div>
                            <div class="span5">
                                <?php 
echo TbHtml::submitButton('Login', array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_DEFAULT));
?>
                            </div>   
                            <div class="span5">
                                <?php 
echo TbHtml::resetButton('Reset', array('color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_DEFAULT));
?>
                            </div>
                        </div>
                    </div>
                </div><!-- /widget-body -->
            </div><!-- /login-box -->
        </div><!-- /position-relative -->
        <?php 
$this->endWidget();
?>
    </div>
</div>
Example #6
0
 public function testResetButton()
 {
     $I = $this->codeGuy;
     $html = TbHtml::resetButton('Reset', array('class' => 'button', 'name' => 'button'));
     $button = $I->createNode($html, 'button[type=reset].btn');
     $I->seeNodeCssClass($button, 'button');
     $I->seeNodeAttribute($button, 'name', 'button');
     $I->seeNodeText($button, 'Reset');
 }
Example #7
0
?>
    <fieldset>
        <?php 
echo $form->hiddenField($status, 'cv_id', ['value' => $model->id]);
?>

        <?php 
echo $form->textAreaControlGroup($status, 'message', ['rows' => 5, 'cols' => 100, 'placeholder' => Yii::t('main', 'cv_status.massage.placeholder'), 'style' => 'width: 98%;']);
?>

        <?php 
echo $form->textFieldControlGroup($status, 'vacancyIds', ['placeholder' => Yii::t('main', 'vacancy.ids.placeholder')]);
?>

        <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Додати', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Очистити')));
?>
    </fieldset>

<?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'))));
?>
Example #8
0
            <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>
Example #9
0
    if ($profileFields) {
        foreach ($profileFields as $field) {
            if ($field->widgetEdit($profile)) {
                echo $field->widgetEdit($profile);
            } elseif ($field->range) {
                echo $form->dropDownListControlGroup($profile, $field->varname, Profile::range($field->range));
            } elseif ($field->field_type == "TEXT") {
                echo $form->textAreaControlGroup($profile, $field->varname, array('rows' => 6, 'cols' => 50));
            } else {
                echo $form->textFieldControlGroup($profile, $field->varname, array('size' => 60, 'maxlength' => $field->field_size ? $field->field_size : 255));
            }
        }
    }
    ?>

		    <?php 
    if (UserModule::doCaptcha('registration')) {
        ?>

			<?php 
        $this->widget('CCaptcha');
        ?>
			<?php 
        echo $form->textFieldControlGroup($model, 'verifyCode', array('hint' => UserModule::t("Please enter the letters as they are shown in the image above.") . UserModule::t("Letters are not case-sensitive.")));
        ?>

		    <?php 
    }
    ?>
		
		    <?php 
Example #10
0
              "url"      : "?r=/transaction/TenantInformation/SearchDataTenant",
              "data"     : {term:ui.item.id},
              "dataType" : "json",
              "type"     : "GET",
              "success"  : function(data){
               
                  $("#tenant_name").text(data[0].value);
                  $("#pic").text(data[0].pic);
                  $("#phone").text(data[0].phone);
                  $("#location").text(data[0].location);
                  
               }
            });
       }'), 'htmlOptions' => array('style' => 'width:60%', 'class' => 'search-query clearable')));
echo "&nbsp;&nbsp;";
echo TbHtml::resetButton('<i class="icon-fa-remove-circle icon-fa-large" style="margin-top:5px;"></i> Cancel', array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_DEFAULT, 'id' => 'btncancel'));
?>
 
<?php 
echo TbHtml::endForm();
?>

<fieldset>
  <legend>Data Tenant</legend>
  <?php 
echo TbHtml::formTb(TbHtml::FORM_LAYOUT_HORIZONTAL, $this->createUrl('master/member/carimember'));
?>
  
  <div class="control-group">
   <?php 
echo TbHtml::label('Tenant Name', 'lbltenant_name', array('class' => 'control-label'));