public function run() { parent::run(); $model = new \app\models\ProjectSimpleForm(); $form = ActiveForm::begin(['id' => 'project-simple-form', 'action' => ['/project/simplecreate'], 'layout' => 'inline', 'validateOnChange' => false, 'validateOnBlur' => false]); echo $form->field($model, 'title')->textInput(['maxlength' => 255, 'class' => 'form-control input-sm'])->label(false); echo '<div class="form-group">' . Html::submitButton(Yii::t('app', 'Create'), ['class' => 'btn btn-sm btn-success', 'style' => 'margin: 5px 5px 5px 0;']) . Html::resetButton(Yii::t('app', 'Cancel'), ['class' => 'btn btn-xs', 'style' => 'margin: 5px;']) . '</div>'; ActiveForm::end(); $this->registerJs(); }
/** * Get the actions supported for replying */ public function getActions($hidden = false) { $ret_val = ''; foreach ($this->_actions as $type => $action) { switch ($type) { case 'reset': $ret_val .= Html::resetButton(Html::tag($action['tag'], $action['text'], $action['tagOptions']), $action['options']); break; case 'submit': $ret_val .= Html::submitButton(Html::tag($action['tag'], $action['text'], $action['tagOptions']), $action['options']); break; } } return Html::tag('div', $ret_val, ['role' => 'replyActions', 'class' => 'text-right ' . ($hidden == true ? 'hidden' : '')]); }
/** * Get the actions supported for replying */ public function getActions($hidden = false) { $ret_val = ''; $actions = array_merge($this->defaultActions(), $this->actions); foreach ($actions as $type => $action) { switch ($type) { case 'submit': $ret_val .= Html::submitButton(Html::tag($action['tag'], $action['text'], $action['tagOptions']), $action['options']); break; case 'reset': $ret_val .= Html::resetButton(Html::tag($action['tag'], $action['text'], $action['tagOptions']), $action['options']); break; } } return Html::tag('div', Html::tag('div', $ret_val, ['class' => 'btn-group']), ['role' => 'replyActions', 'class' => 'form-group pull-right' . ($hidden == true ? ' hidden ' : ''), "style" => "padding-right: 15px"]); }
echo $form->field($model, 'appilcant_id')->hiddenInput(['maxlength' => true])->label(false); } ?> <?php //$form->field($model, 'appilcant_id')->textInput(['maxlength' => true, 'value' => $id])->label(false) ?> <div class="row"> <div class="col-md-6 col-xs-6"> <?php echo Html::submitButton($model->isNewRecord ? '<i class="glyphicon glyphicon-plus"></i> เพิ่มข้อมูล' : 'อัพเดทข้อมูล', ['class' => ($model->isNewRecord ? 'btn btn-success' : 'btn btn-primary') . ' btn-lg btn-block']); ?> </div> <div class="col-md-6 col-xs-6"> <?php echo Html::resetButton($model->isNewRecord ? '<i class="glyphicon glyphicon-refresh"></i> เคลียร์ข้อมูล' : 'คืนค่าเดิม', ['class' => ($model->isNewRecord ? 'btn btn-danger' : 'btn btn-warning') . ' btn-lg btn-block']); ?> </div> </div> </div> <?php ActiveForm::end(); $script = <<<JS \$('form#xxx').on('afterSubmit', function(e) { var \$form = \$(this); \$.post( \$form.attr("action"), // serialize Yii2 form \$form.serialize() )
<?php use yii\helpers\Html; use app\models\hrd\Corp; use app\models\hrd\Dept; use app\models\hrd\Jabatan; use app\models\hrd\Status; use app\models\hrd\Employe; use kartik\widgets\ActiveForm; use kartik\builder\Form; use kartik\builder\FormGrid; use kartik\widgets\FileInput; use yii\helpers\ArrayHelper; $form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL]); //$form = ActiveForm::begin(['type'=>ActiveForm::TYPE_VERTICAL]); $nlDigit = Employe::find()->count() + 1; $nl = 'LG' . $nlDigit; echo FormGrid::widget(['model' => $model, 'form' => $form, 'autoGenerateColumns' => true, 'rows' => [['contentBefore' => '<legend class="text-info"><small>EMPLOYE IDENTITY</small></legend>', 'columns' => 1, 'autoGenerateColumns' => false, 'attributes' => ['employe_identity' => ['label' => 'Employee.ID', 'columns' => 5, 'attributes' => ['EMP_ID' => ['type' => Form::INPUT_TEXT, 'Form::SIZE_LARGE', 'options' => ['value' => $nl], 'columnOptions' => ['colspan' => 3]], 'EMP_NM' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter First Name...'], 'columnOptions' => ['colspan' => 4]], 'EMP_NM_BLK' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter Last Name...'], 'columnOptions' => ['colspan' => 4]]]]]], ['contentBefore' => '<legend class="text-info"><small>CORPORATE IDENTITY</small></legend>', 'columns' => 2, 'autoGenerateColumns' => false, 'attributes' => ['employe_identity' => ['label' => 'Company', 'columns' => 2, 'attributes' => ['EMP_CORP_ID' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(Corp::find()->orderBy('SORT')->asArray()->all(), 'CORP_ID', 'CORP_NM'), 'columnOptions' => ['colspan' => 1]], 'DEP_ID' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(Dept::find()->orderBy('SORT')->asArray()->all(), 'DEP_ID', 'DEP_NM'), 'hint' => 'Select Department', 'columnOptions' => ['colspan' => 1]], 'JAB_ID' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(Jabatan::find()->orderBy('SORT')->asArray()->all(), 'JAB_ID', 'JAB_NM'), 'hint' => 'Select Position ', 'columnOptions' => ['colspan' => 1]], 'EMP_STS' => ['type' => Form::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(Status::find()->orderBy('SORT')->asArray()->all(), 'STS_ID', 'STS_NM'), 'hint' => 'Select Employee Status', 'columnOptions' => ['colspan' => 1]], 'EMP_JOIN_DATE' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\DatePicker', 'options' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]], 'hint' => 'Enter Join Date (yyyy-mm-dd)', 'columnOptions' => ['colspan' => 1]], 'EMP_RESIGN_DATE' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\DatePicker', 'options' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]], 'hint' => 'Enter Resign Date (yyyy-mm-dd)', 'columnOptions' => ['colspan' => 1]]]]]], ['contentBefore' => '<legend class="text-info"><small>EMPLOYEE PROFILE</small></legend>', 'columns' => 3, 'autoGenerateColumns' => false, 'attributes' => ['address_detail' => ['label' => 'Address', 'columns' => 6, 'attributes' => ['EMP_KTP' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter NO KTP...'], 'columnOptions' => ['colspan' => 2]], 'EMP_ALAMAT' => ['type' => Form::INPUT_TEXTAREA, 'options' => ['placeholder' => 'Enter address...'], 'columnOptions' => ['colspan' => 6]], 'EMP_ZIP' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Zip...'], 'columnOptions' => ['colspan' => 1]], 'EMP_HP' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Phone...'], 'columnOptions' => ['colspan' => 2]], 'EMP_GENDER' => ['type' => Form::INPUT_RADIO_LIST, 'items' => ['Male' => 'Male', 'Female' => 'Female'], 'options' => ['inline' => 'Male'], 'columnOptions' => ['colspan' => 4]], 'EMP_TGL_LAHIR' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\DatePicker', 'options' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]], 'hint' => 'Enter birthday (yyyy-mm-dd)', 'columnOptions' => ['colspan' => 3]], 'EMP_EMAIL' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'acount@domain.com...', 'addon' => ['prepend' => ['content' => '@']]], 'columnOptions' => ['colspan' => 3]]]]]], ['columns' => 3, 'attributes' => ['address_detail' => ['label' => 'Picture', 'columns' => 6, 'attributes' => ['EMP_IMG' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\FileInput', 'columnOptions' => ['colspan' => 2]]]]]], ['attributes' => ['actions' => ['type' => Form::INPUT_RAW, 'value' => '<div style="text-align: right; margin-top: 20px">' . Html::resetButton('Reset', ['class' => 'btn btn-default']) . ' ' . Html::submitButton('Submit', ['class' => 'btn btn-primary']) . '</div>']]]]]); ActiveForm::end();
'action' => ['index'], 'method' => 'get', ]); ?> <?= $form->field($model, 'id') ?> <?= $form->field($model, 'name') ?> <?= $form->field($model, 'product_group_id') ?> <?= $form->field($model, 'code') ?> <?= $form->field($model, 'detail') ?> <?php // echo $form->field($model, 'created_time') ?> <?php // echo $form->field($model, 'last_update') ?> <?php // echo $form->field($model, 'user_id') ?> <?php // echo $form->field($model, 'product_unit_id') ?> <div class="form-group"> <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?> <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'sortOrder'); ?> <?php echo $form->field($model, 'title'); ?> <?php echo $form->field($model, 'body'); ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('backend/slide', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('backend/slide', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div> </div> </div> </div>
<?php // echo $form->field($model, 'contact_person') ?> <?php // echo $form->field($model, 'industry') ?> <?php // echo $form->field($model, 'size') ?> <?php // echo $form->field($model, 'description') ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('model', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('model', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <!-- <?php echo $form->field($model, 'idRebanho'); ?> --> <?php echo $form->field($model, 'designacao'); ?> <?php echo $form->field($model, 'idNucleo'); ?> <div class="form-group"> <?php echo Html::submitButton('Pesquisar', ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton('Limpar', ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php // echo $form->field($model, 'p2CroquisUbicacion') ?> <?php // echo $form->field($model, 'p2Pago') ?> <?php // echo $form->field($model, 'p2Alineamiento') ?> <?php // echo $form->field($model, 'p2PropuestaRelotificacion') ?> <?php // echo $form->field($model, 'p3Escrituras') ?> <?php // echo $form->field($model, 'p3ReciboDerechos') ?> <?php // echo $form->field($model, 'p3CroquisUbicacion') ?> <?php // echo $form->field($model, 'p3Pago') ?> <?php // echo $form->field($model, 'p3Alineamiento') ?> <?php // echo $form->field($model, 'p3PropuestaRelotificacion') ?> <?php // echo $form->field($model, 'p4Imprimir') ?> <div class="form-group"> <?= Html::submitButton('Buscar', ['class' => 'btn btn-primary']) ?> <?= Html::resetButton('Reemplazar', ['class' => 'btn btn-default']) ?> </div> <?php ActiveForm::end(); ?> </div>
* |___//_//____/ /_/ /_/ |_||_| |_| * @link http://vistart.name/ * @copyright Copyright (c) 2016 vistart * @license http://vistart.name/license/ */ use yii\widgets\ActiveForm; use yii\helpers\Html; use rhopress\Module; /* @var $article rhopress\models\Article */ ?> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($article, 'title', ['template' => "{input}\n{hint}\n{error}"]); ?> <?php echo $form->field($article, 'content', ['template' => "{input}\n{hint}\n{error}"])->textarea(['rows' => 2]); ?> <hr> <div class="form-group"> <?php echo Html::submitButton('<span class="glyphicon glyphicon-plus"></span> ' . Module::t('views/article', 'Publish'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton('<span class="glyphicon glyphicon-refresh"></span> ' . Module::t('views/article', 'Reset'), ['class' => 'btn btn-danger']); ?> </div> <?php ActiveForm::end();
</div> </div> <div class="form-group"> <label class="col-lg-2 control-label">品牌描述</label> <div class="col-lg-3"> <?php echo $form->field($model, 'desc', ['options' => ['class' => ''], 'inputOptions' => ['placeholder' => '255个字内', 'class' => 'form-control']])->textarea(['rows' => 4])->label(false); ?> </div> </div> <div class="form-group"> <div class="col-sm-4 col-sm-offset-2"> <?php echo Html::resetButton('取消', ['class' => 'btn btn-default', "data-dismiss" => "modal"]); ?> <?php echo Html::submitButton('添加', ['class' => 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end(); ?> </div> </div> </div>
<?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'parent'); ?> <?php echo $form->field($model, 'route'); ?> <?php echo $form->field($model, 'data'); ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('rbac-admin', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('rbac-admin', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
</div> <?php echo $form->field($model, 'clogo')->label('品牌logo(灰色)')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]); ?> <?php echo $form->field($model, 'blogo')->label('品牌logo(彩色)')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]); ?> <?php echo $form->errorSummary($model, ['header' => false]); ?> <div class="form-group"> <?php echo Html::submitButton('确定', ['class' => 'btn btn-primary', 'name' => 'add-seller-button', 'error' => 'ss']); ?> <?php echo Html::resetButton('重置', ['class' => 'btn btn-primary', 'name' => 'reset-button', 'error' => 'ss']); ?> <a class="btn-cancel" href="<?php echo \common\widgets\Variable::$customerBrand_url; ?> ">返回</a> </div> <?php ActiveForm::end(); ?> </div> </div> </div> </div> </div>
?> <div class="product-relation-search"> <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <?php echo $form->field($model, 'main'); ?> <?php echo $form->field($model, 'sub'); ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('app/product', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('app/product', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <?php echo $form->field($model, 'id'); ?> <?php echo $form->field($model, 'key'); ?> <?php echo $form->field($model, 'value'); ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('prototype', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('prototype', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
?> <?php echo $form->field($model, 'period')->dropDownList(Status::getPeriodList(), ['prompt' => 'Pilih']); ?> </div> <div class="col-lg-12"> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', '<i class="fa fa-save"></i> Simpan') : Yii::t('app', '<i class="fa fa-edit"></i> Update'), ['class' => $model->isNewRecord ? 'btn btn-lg btn-success' : 'btn btn-lg btn-primary']); ?> <?php echo Html::resetButton('<i class="fa fa-refresh"></i> ' . Yii::t('app', 'Batal'), ['class' => 'btn btn-lg btn-default']); ?> <?php echo Html::a('<i class="fa fa-arrow-left"></i> ' . Yii::t('app', 'Kembali'), ['index'], ['class' => 'btn btn-lg btn-warning']); ?> </div> </div> </div> <?php ActiveForm::end(); ?> </div> <?php Panel::end();
<?php // echo $form->field($model, 'photos') ?> <?php // echo $form->field($model, 'primary_photo') ?> <?php // echo $form->field($model, 'email') ?> <?php // echo $form->field($model, 'password') ?> <?php echo Html::submitButton('Пошук', ['class' => 'btn btn-primary', 'style' => 'margin-top: 26px;']); ?> <?php echo Html::resetButton('Сбити', ['class' => 'btn btn-default', 'style' => 'margin-top: 26px;']); ?> </div> <?php ActiveForm::end(); ?> </div>
?> <?php echo $form->field($model, 'taxonomy_pn'); ?> <?php echo $form->field($model, 'taxonomy_smb')->dropDownList($model->smb, ['prompt' => '']); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton(Yii::t('content', 'Search'), ['class' => 'btn btn-flat btn-primary']); ?> <?php echo Html::resetButton(Yii::t('content', 'Reset'), ['class' => 'btn btn-flat btn-default']); ?> <?php echo Html::button(Html::tag('i', '', ['class' => 'fa fa fa-level-up']), ['class' => 'index-search-button btn btn-flat btn-default', "data-toggle" => "collapse", "data-target" => "#taxonomy-search"]); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'created_at'); ?> <?php // echo $form->field($model, 'created_by') ?> <?php // echo $form->field($model, 'updated_at') ?> <?php // echo $form->field($model, 'updated_by') ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('traduccion', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('traduccion', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php use yii\helpers\Html; use lukisongroup\hrd\models\Dept; use kartik\widgets\ActiveForm; use kartik\builder\Form; use kartik\builder\FormGrid; use kartik\widgets\FileInput; use yii\helpers\ArrayHelper; $this->sideMenu = 'hrd'; $form = ActiveForm::begin(['type' => ActiveForm::TYPE_VERTICAL]); $nlDigit = Dept::find()->count() + 1; $nl = 'LG' . $nlDigit; ?> <?php echo FormGrid::widget(['model' => $model, 'form' => $form, 'autoGenerateColumns' => true, 'rows' => [['contentBefore' => '<legend class="text-info"><small>DEPARTMENT IDENTITY</small></legend>', 'columns' => 1, 'autoGenerateColumns' => false, 'attributes' => ['employe_identity' => ['label' => 'Dept.ID', 'columns' => 5, 'attributes' => ['DEP_ID' => ['type' => Form::INPUT_TEXT, 'Form::SIZE_LARGE', 'options' => [], 'columnOptions' => ['colspan' => 3]], 'DEP_NM' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Department Name...'], 'columnOptions' => ['colspan' => 4]], 'DEP_DCRP' => ['type' => Form::INPUT_TEXTAREA, 'options' => ['placeholder' => 'Department Description ...'], 'columnOptions' => ['colspan' => 4]], 'SORT' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'SORT...'], 'columnOptions' => ['colspan' => 4]]]]]], ['attributes' => ['actions' => ['type' => Form::INPUT_RAW, 'value' => '<div style="text-align: right; margin-top: 20px">' . Html::resetButton('Reset', ['class' => 'btn btn-default']) . ' ' . Html::submitButton('Submit', ['class' => 'btn btn-primary']) . '</div>']]]]]); ActiveForm::end();
<?php use yii\helpers\Html; //use yii\widgets\ActiveForm; use kartik\widgets\ActiveForm; use kartik\builder\Form; use yii\helpers\ArrayHelper; /* @var $this yii\web\View */ /* @var $model common\models\Answers */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="answers-form"> <?php $form = ActiveForm::begin(); echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 2, 'attributes' => ['questions_id' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\kartik\\widgets\\Select2', 'options' => ['data' => ArrayHelper::map($model->getAllQuestions(), 'id', 'questions'), 'options' => ['placeholder' => 'Выберите Вопрос', 'id' => 'season-id'], 'pluginOptions' => ['allowClear' => true]]], 'answer' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Введите ответ...']], 'actions' => ['type' => Form::INPUT_RAW, 'value' => '<div style="margin-top: 20px">' . Html::resetButton('Сбросить', ['class' => 'btn btn-default']) . ' ' . Html::submitButton($model->isNewRecord ? 'Создать' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) . '</div>']]]); ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'invited_by'); ?> <?php echo $form->field($model, 'status'); ?> <?php // echo $form->field($model, 'created_at') ?> <?php // echo $form->field($model, 'updated_at') ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('frontend', 'Search'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('frontend', 'Reset'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'updated_at'); ?> <?php // echo $form->field($model, 'created_by') ?> <?php // echo $form->field($model, 'updated_by') ?> <?php // echo $form->field($model, 'status') ?> <div class="form-group"> <?php echo Html::submitButton(Yii::t('app', 'Buscar'), ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton(Yii::t('app', 'Limpiar'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
<legend>添加用户组</legend> <!--<?php echo $form->errorSummary($model); ?> --> <?php echo $form->field($model, 'group_name', ['template' => '<div class="control-group">{label}<div class="controls">{input}{error}</div></div>'])->textInput(['class' => 'input-xlarge focused'])->label('用户组名<span class="required">*</span>'); ?> <div class="form-actions"> <?php echo \yii\helpers\Html::submitButton('提交', ['class' => 'btn btn-primary']); ?> <?php echo \yii\helpers\Html::resetButton('取消', ['class' => 'btn']); ?> </div> </fieldset> <?php \yii\widgets\ActiveForm::end(); ?> </div> </div> </div> <!-- /block --> </div> </div>
public function testResetButton() { $this->assertEquals('<button type="reset">Reset</button>', Html::resetButton()); $this->assertEquals('<button type="reset" class="t" name="test" value="value">content<></button>', Html::resetButton('content<>', ['name' => 'test', 'value' => 'value', 'class' => 't'])); }
<?php echo $form->field($model, 'author'); ?> <?php echo $form->field($model, 'views'); ?> <?php // echo $form->field($model, 'created_at') ?> <?php // echo $form->field($model, 'updated_at') ?> <div class="form-group"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton('Reset', ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?> </div>
echo $form->field($model, 'entry_date')->widget(DatePicker::className(), ['inline' => false, 'dateFormat' => 'php:' . $phpFmShortDate, 'options' => ['class' => 'form-control']]); ?> <?php echo $form->field($model, 'account_source')->dropDownList($arrFinAccount, ['prompt' => '']); ?> <?php echo $form->field($model, 'account_target')->dropDownList($arrFinAccount, ['prompt' => '']); ?> <?php echo $form->field($model, 'entry_value')->textInput(['type' => 'number', 'readonly' => 'readonly']); ?> <?php echo $form->field($model, 'entry_adjust')->textInput(['type' => 'number']); ?> <?php echo $form->field($model, 'arr_entry_log')->inline(true)->checkboxList($arrEntryLog); ?> <div class="form-group"> <?php echo Html::resetButton(Yii::t('button', 'Reset'), ['class' => 'btn btn-default btn-lg btn-block']); ?> <?php echo Html::submitButton(Yii::t('button', 'Confirm'), ['class' => 'btn btn-info btn-lg btn-block', 'name' => MasterValueUtils::SM_MODE_NAME, 'value' => MasterValueUtils::SM_MODE_INPUT]); ?> </div> <?php ActiveForm::end(); ?> </div> </div></div></div><?php }
echo $form->field($model, 'post_type_sn'); ?> <?php echo $form->field($model, 'post_type_pn'); ?> <?php echo $form->field($model, 'post_type_smb')->dropDownList($model->getSmb(), ['prompt' => '']); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton(Yii::t('writesdown', 'Search'), ['class' => 'btn btn-flat btn-primary']); ?> <?php echo Html::resetButton(Yii::t('writesdown', 'Reset'), ['class' => 'btn btn-flat btn-default']); ?> <?php echo Html::button(Html::tag('i', '', ['class' => 'fa fa fa-level-up']), ['class' => 'index-search-button btn btn-flat btn-default', "data-toggle" => "collapse", "data-target" => "#post-type-search"]); ?> </div> <?php ActiveForm::end(); ?> </div>
<label for="rdb12">Discounts Offered to Students</label> </li> <li> <input type="checkbox" id="rdb13"> <label for="rdb13">Other College Admission Topics</label> </li> </ul> </div> </div> </div> </div> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', array('class' => 'btn btn-default addmarginR10')); ?> <?php echo Html::resetButton('Cancle', array('class' => 'btn btn-default addmarginR10')); ?> </div> <?php ActiveForm::end(); ?> </div> </div> </div> </div> <script> //-------show image from temp location (preview) before submit form function previewimg(input) { if (input.files && input.files[0]) { var reader = new FileReader();