Example #1
0
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Registrar</h3>
        </div>
        <div class="panel-body">
            <div class="row">

                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'id_departamento')->widget(Select2::classname(), ['data' => ArrayHelper::map(\app\models\Divipola::find()->all(), 'id_dpto', 'dpto'), 'options' => ['placeholder' => 'Seleccione una opción'], 'pluginOptions' => ['allowClear' => true]]);
?>

                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'id_municipio')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'pluginOptions' => ['depends' => ['detalleproyecto-id_departamento'], 'loadingText' => 'Cargando...', 'placeholder' => 'Seleccione ciudad', 'url' => Url::to(['divipola/ciudades'])]]);
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'latitud')->textInput();
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'longitud')->textInput();
?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
Example #2
0


    <?php 
echo $form->field($model, 'risk_ref_no')->textInput(['maxlength' => true]);
?>
        
        
        <div class="col-sm-6 col-md-6">
       <?php 
echo $form->field($model, 'prohead')->dropdownList(ArrayHelper::map(Prohead::find()->all(), 'PROHEAD_ID', 'PROHEAD_NAME'), ['id' => 'ddl-prohead', 'prompt' => 'เลือกโปรแกรมความเสี่ยง']);
?>
    </div>
     <div class="col-sm-6 col-md-6">
       <?php 
echo $form->field($model, 'prodetail')->widget(DepDrop::classname(), ['options' => ['id' => 'ddl-prodetail'], 'data' => $prodetail, 'pluginOptions' => ['depends' => ['ddl-prohead'], 'placeholder' => 'เลือกหัวข้ออุบัติการณ์...', 'url' => Url::to(['/riskhead/get-prodetail'])]]);
?>
    </div>

    <div class="col-sm-6 col-md-6 col-md-6">
    <?php 
echo $form->field($model, 'program_text')->textInput(['maxlength' => true]);
?>
  </div>
    
    <div class="col-sm-6 col-md-6">
   <?php 
echo $form->field($model, 'risk_simple')->widget(Select2::classname(), ['data' => ArrayHelper::map(Simple::find()->all(), 'SIMPLE_ID', 'SIMPLE_NAME'), 'options' => ['placeholder' => 'เลือกหัวข้อตาม simple ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
    
Example #3
0
    <?php 
$form = ActiveForm::begin(['id' => 'roInput', 'enableClientValidation' => true, 'method' => 'post', 'action' => ['/purchasing/request-order/simpanfirst']]);
?>
	<?php 
//= $form->errorSummary($model);
?>
	
    <?php 
echo $form->field($roDetail, 'CREATED_AT', ['template' => "{input}"])->hiddenInput(['value' => date('Y-m-d H:i:s'), 'readonly' => true]);
?>

    <?php 
echo $form->field($roDetail, 'KD_CORP')->dropDownList($userCorp, ['id' => 'rodetail-kd_corp', 'prompt' => ' -- Pilih Salah Satu --'])->label('Perusahaan');
echo $form->field($roDetail, 'KD_TYPE')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgType, 'options' => ['id' => 'rodetail-kd_type'], 'pluginOptions' => ['depends' => ['rodetail-kd_corp'], 'url' => Url::to(['/purchasing/sales-order/corp-type']), 'initialize' => true]])->label('Type');
echo $form->field($roDetail, 'KD_KATEGORI')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgKtg, 'options' => ['id' => 'rodetail-kd_kategori'], 'pluginOptions' => ['depends' => ['rodetail-kd_corp', 'rodetail-kd_type'], 'url' => Url::to(['/purchasing/sales-order/type-kat']), 'initialize' => true]]);
echo $form->field($roDetail, 'KD_BARANG')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgProdak, 'options' => ['id' => 'rodetail-kd_barang'], 'pluginOptions' => ['depends' => ['rodetail-kd_kategori'], 'url' => Url::to(['/purchasing/sales-order/brgkat']), 'initialize' => true]]);
echo $form->field($roDetail, 'NM_BARANG')->hiddenInput(['value' => ''])->label(false);
echo $form->field($roDetail, 'UNIT')->widget(Select2::classname(), ['data' => $brgUnit, 'options' => ['placeholder' => 'Pilih Unit Barang ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($roDetail, 'RQTY')->textInput(['maxlength' => true, 'placeholder' => 'Jumlah Barang']);
?>

    <?php 
echo $form->field($roDetail, 'NOTE')->textarea(array('rows' => 2, 'cols' => 5))->label('Informasi');
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($roDetail->isNewRecord ? 'Create' : 'Update', ['class' => $roDetail->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
Example #4
0
$this->registerMetaTag(['property' => 'og:description', 'content' => $met_description]);
$this->registerMetaTag(['name' => 'description', 'content' => $met_description]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $met_description]);
?>
<div class="row">
    <div class="col-md-2">
        <?php 
$form = ActiveForm::begin(['id' => $searchModel->formName(), 'enableAjaxValidation' => false, 'enableClientValidation' => false, 'method' => 'get']);
?>
        <?php 
echo $form->field($searchModel, 'category_id')->widget(Select2::classname(), ['language' => Yii::$app->helper->getTwoCharLanguage(), 'size' => Select2::MEDIUM, 'options' => [], 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 2, 'ajax' => ['url' => $categoriesListUrl, 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {search:params.term}; }'), 'results' => new JsExpression('function(data,page) { return {results:data.results}; }')], 'initSelection' => new JsExpression($initCategoriesListScript)]]);
?>
        <?php 
echo $form->field($searchModel, 'country_id')->widget(Select2::className(), ['data' => ArrayHelper::map(Country::find()->asArray()->all(), 'id', 'name'), 'language' => Yii::$app->helper->getTwoCharLanguage(), 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'pluginOptions' => ['allowClear' => true]]);
echo $form->field($searchModel, 'province_id')->widget(DepDrop::classname(), ['data' => !$searchModel->country_id ? [] : ArrayHelper::map(Province::find()->where(['country_id' => $searchModel->country_id])->asArray()->all(), 'id', 'name'), 'type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'select2Options' => ['pluginOptions' => ['allowClear' => true], 'language' => Yii::$app->helper->getTwoCharLanguage()], 'pluginOptions' => ['depends' => ['search-country_id'], 'url' => Url::to(['/province/dep-list']), 'loadingText' => Yii::t('app', 'Loading...')]]);
echo $form->field($searchModel, 'city_id')->widget(DepDrop::classname(), ['data' => !$searchModel->province_id ? [] : ArrayHelper::map(City::find()->where(['province_id' => $searchModel->province_id])->asArray()->all(), 'id', 'name'), 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true], 'language' => Yii::$app->helper->getTwoCharLanguage()], 'pluginOptions' => ['depends' => ['search-province_id'], 'url' => Url::to(['/city/dep-list']), 'loadingText' => Yii::t('app', 'Loading...')]]);
?>
            <?php 
echo $form->field($searchModel, 'title')->textInput();
?>
            <?php 
echo $form->field($searchModel, 'address')->textInput();
?>
            <?php 
echo Html::hiddenInput('view', $adverView, ['id' => 'hiddenViewMode']);
?>
        <div class="form-group">
            <?php 
echo Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']);
?>
        </div>
Example #5
0
    <?php 
$form = (include \Yii::getAlias("@nitm/views/layouts/form/header.php"));
?>
	<?php 
echo $form->field($model, 'action')->widget(Select2::className(), ['data' => $model->setting('actions'), 'theme' => Select2::THEME_KRAJEE, 'options' => ['id' => 'alert-action' . $uniqid, 'placeholder' => 'Alert me...', "allowClear" => true]])->label("Action");
?>
    
	<?php 
echo $form->field($model, 'remote_type')->widget(DepDrop::className(), ['value' => $model->remote_type, 'data' => [$model->remote_type => $model->properName($model->remote_type)], 'options' => ['placeholder' => ' select something ', 'id' => 'alert-type' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-remote-type' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-action' . $uniqid], 'url' => Url::to(['/alerts/list/types']), 'loadingText' => '...', 'placeholder' => ' type of ']])->label("Remote Type");
?>
    
	<?php 
echo $form->field($model, 'remote_for')->widget(DepDrop::className(), ['value' => $model->remote_for, 'data' => [$model->remote_for => $model->properName($model->remote_for)], 'options' => ['placeholder' => ' for ', 'id' => 'alert-for' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-remote-type' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-type' . $uniqid], 'url' => Url::to(['/alerts/list/for']), 'loadingText' => '...', 'placeholder' => ' and it\'s for a/an ']])->label("Remote For");
?>
	<?php 
echo $form->field($model, 'priority')->widget(DepDrop::className(), ['value' => $model->priority, 'data' => [$model->priority => $model->properName($model->priority)], 'options' => ['placeholder' => ' and it if has a priority of ', 'id' => 'priority' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-priority' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-type' . $uniqid], 'url' => Url::to(['/alerts/list/priority']), 'loadingText' => '...', 'placeholder' => ' and has a proiority of ']])->label("Priority");
?>
	<?php 
echo $form->field($model, 'methods')->widget(Select2::className(), ['value' => explode(',', $model->methods), 'options' => ['id' => 'alert-methods' . $uniqid, 'placeholder' => ' then alert me using'], 'data' => \nitm\helpers\alerts\DispatcherData::supportedMethods()])->label("Priority");
?>
	
		
	<?php 
if (!\Yii::$app->request->isAjax) {
    ?>
	<div class="btn-group">
		<?php 
    echo Html::submitButton(ucfirst($action), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
    ?>
	</div>
	<?php 
Example #6
0
}
?>


<div id="address"  style="display: <?php 
echo isset($viewId) ? 'block' : 'none';
?>
">
    <?php 
$form = \kartik\form\ActiveForm::begin();
/* @var \yincart\customer\models\CustomerAddress $model */
echo $form->field($model, 'province')->dropDownList($catList, ['id' => 'cat-id']);
// Child # 1
echo $form->field($model, 'city')->widget(DepDrop::classname(), ['data' => [$model->city => isset($model->cityArea) ? $model->cityArea->name : ''], 'options' => ['id' => 'subcat-id'], 'pluginOptions' => ['depends' => ['cat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/customer/get-cities'])]]);
// Child # 2
echo $form->field($model, 'district')->widget(DepDrop::classname(), ['data' => [$model->district => isset($model->districtArea) ? $model->districtArea->name : ''], 'pluginOptions' => ['depends' => ['cat-id', 'subcat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/customer/get-district'])]]);
?>

    <?php 
echo $form->field($model, 'address')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'zip_code')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'phone')->textInput(['maxlength' => 255]);
?>

    <?php 
Example #7
0
echo isset($viewId) || $count == 0 ? 'block' : 'none';
?>
">
    <?php 
if (!isset($viewId)) {
    $model = new DeliveryAddress();
}
$form = \yii\widgets\ActiveForm::begin(['requiredCssClass' => '', 'options' => ['class' => 'type_2'], 'fieldConfig' => ['labelOptions' => ['class' => 'required'], 'template' => "<div class=\"col-lg-2\">{label}</div><div class=\"col-lg-10\">{input}</div>\n<div class=\"col-lg-12\">{error}\n{hint}</div>"]]);
$select = ['' => '请选择...'];
$catList = $select + $catList;
/* @var \star\member\models\DeliveryAddress $model */
echo $form->field($model, 'province')->dropDownList($catList, ['id' => 'cat-id']);
// Child # 1
echo $form->field($model, 'city')->widget(DepDrop::classname(), ['data' => [$model->city => isset($model->cityArea) ? $model->cityArea->name : ''], 'options' => ['id' => 'subcat-id'], 'pluginOptions' => ['depends' => ['cat-id'], 'placeholder' => '请选择...', 'loadingText' => '载入中...', 'url' => Url::to(['/member/address/get-cities'])]]);
// Child # 2
echo $form->field($model, 'district')->widget(DepDrop::classname(), ['data' => [$model->district => isset($model->districtArea) ? $model->districtArea->name : ''], 'pluginOptions' => ['depends' => ['cat-id', 'subcat-id'], 'placeholder' => '请选择...', 'loadingText' => '载入中...', 'url' => Url::to(['/member/address/get-district'])]]);
?>

    <?php 
echo $form->field($model, 'address')->textInput(['maxlength' => 45]);
?>

    <?php 
echo $form->field($model, 'zip_code')->textInput(['maxlength' => 6]);
?>

    <?php 
echo $form->field($model, 'phone')->textInput(['maxlength' => 11]);
?>

    <?php 
Example #8
0
?>
</a></li>
    </ul>
    <br/>
    <div class="tab-content">
        <div id="main" class="tab-pane active">
            <?php 
echo $form->field($model, 'menu_type_id')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + \yii\helpers\ArrayHelper::map(\gromver\platform\common\models\MenuType::find()->all(), 'id', 'title'), ['id' => 'menu_type_id']);
?>

            <?php 
echo $form->field($model, 'language')->dropDownList(Yii::$app->getLanguagesList(), ['prompt' => Yii::t('gromver.platform', 'Select ...'), 'id' => 'language']);
?>

            <?php 
echo $form->field($model, 'parent_id')->widget(\kartik\widgets\DepDrop::className(), ['pluginOptions' => ['depends' => ['menu_type_id', 'language'], 'placeholder' => Yii::t('gromver.platform', 'Select ...'), 'url' => \yii\helpers\Url::to(['type-items', 'update_item_id' => $model->isNewRecord ? null : $model->id, 'selected' => $model->parent_id])]]);
?>

            <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 1024, 'placeholder' => isset($sourceModel) ? $sourceModel->title : null]);
?>

            <?php 
echo $form->field($model, 'alias')->textInput(['maxlength' => 255, 'placeholder' => Yii::t('gromver.platform', 'Auto-generate')]);
?>

            <?php 
echo $form->field($model, 'status')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + $model->statusLabels());
?>

            <?php 
Example #9
0
<div class="pembukuan-form">

   <?php 
$form = ActiveForm::begin(['id' => 'create-lap', 'enableClientValidation' => true]);
?>

    <?php 
echo $form->field($model, 'TGL')->textInput(['value' => $tglSkarang, 'readonly' => true])->label('Tanggal');
?>

   <?php 
echo $form->field($model, 'TYPE')->dropDownList($filterTypeNm, ['id' => 'pembukuan-type'])->label('Type Pembukuan');
?>
	<?php 
echo $form->field($model, 'CHILD')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $filterChildNm, 'options' => ['id' => 'pembukuan-child'], 'pluginOptions' => ['depends' => ['pembukuan-type'], 'url' => Url::to(['/dashboard/pembukuan-harian/ktg-type']), 'initialize' => true]])->label('Kategori Pembukuan');
?>
    <?php 
// $form->field($model, 'CHILD')->textInput(['maxlength' => true])->label('Kategori Pembukuan');
?>

    <?php 
//$form->field($model, 'SRC')->hiddenInput(['value'=>$idWarga,'maxlength' => true])->label(false);
?>

    <?php 
//$form->field($model, 'SRC_DSC_REF')->hiddenInput(['maxlength' => true])
?>

    <?php 
echo $form->field($model, 'SRC_DSC')->dropDownList($valSource, ['maxlength' => true]);
Example #10
0
    <h2>@<?php 
echo Html::encode($model->user->screen_name);
?>
</h2>

    <p class="well well-sm"><?php 
echo Html::encode($model->text);
?>
</p>  

    <?php 
echo $form->field($model, 'contest_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Contest::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'Select a Contest ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'entry_id')->widget(DepDrop::classname(), ['data' => ArrayHelper::map(Entry::find()->where(['contest_id' => $model->contest_id])->all(), 'id', 'name'), 'options' => ['placeholder' => Yii::t('app', 'Select a Entry ...')], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['tweet-contest_id'], 'url' => Url::to(['/entry/contest-entries']), 'loadingText' => Yii::t('app', 'Loading Entries ...')]]);
?>

    <?php 
echo $form->field($model, 'rating')->textInput(['maxlength' => 4]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Example #11
0
<div class="kategori-form">

    <?php 
$form = ActiveForm::begin(['id' => 'createkat', 'enableClientValidation' => true, 'type' => ActiveForm::TYPE_HORIZONTAL, 'method' => 'post', 'action' => ['kategori/simpan']]);
?>

    <?php 
echo $form->field($model, 'PARENT')->dropDownList($valParent, ['id' => 'kategori-parent']);
?>
	
	<?php 
echo $form->field($model, 'CORP_ID')->dropDownList($userCorp, ['id' => 'kategori-kd_corp'])->label('Corporate');
?>
	
	<?php 
echo $form->field($model, 'KD_TYPE')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $typeBrg, 'options' => ['id' => 'kategori-kd_type'], 'pluginOptions' => ['depends' => ['kategori-parent', 'kategori-kd_corp'], 'url' => Url::to(['/master/kategori/ktg-type']), 'initialize' => true]]);
?>
	
    <?php 
echo $form->field($model, 'NM_KATEGORI')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'NOTE')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'STATUS')->radioList(['1' => 'Aktif', '0' => 'Tidak Aktif']);
?>
	
  <div class="form-group">
Example #12
0
    echo $form->field($model, 'urls')->widget(Select2::classname(), ['data' => array_merge(["" => ""], app\models\Article::makeLink($model->langs)), 'options' => ['placeholder' => 'เลือกเนื้อหาเว็บไซต์ หรือ บทความ', 'class' => 'form-control'], 'pluginOptions' => ['allowClear' => true]]);
} else {
    if ($type == 'links') {
        echo $form->field($model, 'urls')->input('text', ['placeholder' => 'เช่น http://www.nongkhai.go.th']);
    }
}
?>
                <?php 
echo $form->field($model, 'description')->textarea();
?>
            </div>
            <div class="col-sm-4">
                <?php 
echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 150px;']);
echo $form->field($model, 'type')->widget(Select2::classname(), ['data' => \app\models\TblMenutype::makeDropDown($model->langs), 'hideSearch' => true, 'options' => ['placeholder' => 'เลือก...', 'class' => 'form-control ', 'multiple' => false, 'style' => 'width: 98%;']]);
echo $form->field($model, 'parent_id')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => [$model->parent_id => ''], 'options' => ['style' => 'width: 98%;'], 'select2Options' => ['hideSearch' => true], 'pluginOptions' => ['depends' => [Html::getInputId($model, 'type')], 'placeholder' => 'เลือก...', 'url' => Url::to(["getsubmenu"]), 'initialize' => true]]);
?>
            
                <?php 
echo $form->field($model, 'published')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal'], 'inlineLabel' => false]);
?>
                <?php 
echo $form->field($model, 'target')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onText' => 'หน้าต่างใหม่', 'offText' => 'หน้าต่างเดิม'], 'inlineLabel' => false]);
?>
            </div>
        </div>

        <?php 
echo $form->field($model, 'id', ['options' => ['class' => 'sr-only']])->hiddenInput();
?>
        <?php 
Example #13
0
<?php

/**
 * @author Niko Gasco
 * @copyright 2015
 */
use kartik\widgets\DepDrop;
// Parent
echo $form->field($model, 'cat')->dropDownList($catList, ['id' => 'cat-id']);
// Child # 1
echo $form->field($model, 'subcat')->widget(DepDrop::classname(), ['options' => ['id' => 'subcat-id'], 'pluginOptions' => ['depends' => ['cat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/subcat'])]]);
// Child # 2
echo $form->field($model, 'prod')->widget(DepDrop::classname(), ['pluginOptions' => ['depends' => ['cat-id', 'subcat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/prod'])]]);
Example #14
0
$dropunit = ArrayHelper::map(Unitbarang::find()->all(), 'KD_UNIT', 'NM_UNIT');
$dropsup = ArrayHelper::map(Suplier::find()->all(), 'KD_SUPPLIER', 'NM_SUPPLIER');
?>

<div class="barang-form">

    <?php 
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL, 'method' => 'post', 'id' => 'form-prodak-id', 'enableClientValidation' => true, 'options' => ['enctype' => 'multipart/form-data']]);
?>
		<?php 
echo $form->field($model, 'PARENT')->hiddenInput(['value' => 1, 'maxlength' => true])->label(false);
?>
		<?php 
echo $form->field($model, 'KD_CORP')->dropDownList($drop, ['id' => 'barang-kd_corp', 'readonly' => true])->label('Perusahaan');
echo $form->field($model, 'KD_TYPE')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $droptype, 'options' => ['id' => 'barang-kd_type'], 'pluginOptions' => ['depends' => ['barang-kd_corp'], 'url' => Url::to(['/dashboard/gsn-product/prodak-corp-type']), 'initialize' => true]]);
echo $form->field($model, 'KD_KATEGORI')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $dropkat, 'options' => ['id' => 'barang-kd_kategori'], 'pluginOptions' => ['depends' => ['barang-kd_corp', 'barang-kd_type'], 'url' => Url::to(['/dashboard/gsn-product/prodak-type-kat']), 'initialize' => true]]);
?>
		<?php 
echo $form->field($model, 'NM_BARANG')->textInput(['maxlength' => true]);
?>
		<?php 
echo $form->field($model, 'KD_UNIT')->widget(Select2::classname(), ['data' => $dropunit, 'options' => ['placeholder' => 'Pilih KD UNIT ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
		
		<?php 
echo $form->field($model, 'KD_SUPPLIER')->widget(Select2::classname(), ['data' => $dropsup, 'options' => ['placeholder' => 'Pilih  Nama Supplier ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
		
		
		<?php 
/* $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), [
Example #15
0
/* @var $form yii\widgets\ActiveForm */
?>

<div class="draft-plan-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

    <?php 
echo $form->field($model, 'TGL')->widget(Select2::classname(), ['data' => $year, 'options' => ['placeholder' => 'Pilih Tahun ...'], 'pluginOptions' => ['allowClear' => true]])->label('YEAR');
?>


	<?php 
echo $form->field($model, 'CUST_ID')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => 'Select ...'], 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['draftplandetail-tgl'], 'initialize' => true, 'loadingText' => 'Loading  ...', 'url' => Url::to(['/mastercrm/draft-plan/lis-ganti'])]])->label('Pilih Customers');
?>
   


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Reschedule' : 'Reschedule', ['class' => $model->isNewRecord ? 'btn btn-primary' : 'btn btn-primary', 'data-confirm' => 'Anda yakin ingin Ganti Jadwal']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Example #16
0
<div class="categories-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 200]);
?>
    
    <?php 
echo $form->field($model, 'mod_table')->dropDownList($model::pdModules(), ['id' => 'mod_table-id']);
?>

    <?php 
echo $form->field($model, 'parent')->widget(DepDrop::classname(), ['options' => ['id' => 'parent-id'], 'pluginOptions' => ['depends' => ['mod_table-id'], 'placeholder' => 'Select ...', 'url' => Url::to(['/categories/categories/jsoncategories'])]]);
?>
    
    <div class="form-group navbar navbar-primary">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Example #17
0
// 		'depends'=>['additemvalidation-kd_corp','additemvalidation-kd_type'],
// 		'url'=>Url::to(['/purchasing/request-order/type-kat']),
// 		'initialize'=>true,
// 	],
// ]);
?>
			<?php 
echo $form->field($roDetail, 'cREATED_AT', ['template' => "{input}"])->hiddenInput(['value' => date('Y-m-d H:i:s'), 'readonly' => true]);
?>
			<?php 
echo $form->field($roDetail, 'kD_RO', ['template' => "{input}"])->textInput(['value' => $roHeader->KD_RO, 'type' => 'hidden']);
?>

			<?php 
echo $form->field($roDetail, 'hARGA')->hiddenInput(['value' => ''])->label(false);
echo $form->field($roDetail, 'kD_BARANG')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgUmum, 'options' => ['id' => 'additemvalidation-kd_barang'], 'pluginOptions' => ['depends' => ['additemvalidation-kd_kategori'], 'url' => Url::to(['/purchasing/request-order/brgkat']), 'initialize' => true]]);
/* echo $form->field($roDetail, 'uNIT')->widget(DepDrop::classname(), [
				'type'=>DepDrop::TYPE_DEFAULT,
				'data' => $brgUnit,
				'options' => ['id'=>'unit-id','readonly'=>true,'selected'=>false],
				'pluginOptions' => [
					'depends'=>['additemvalidation-kd_kategori','additemvalidation-kd_barang'],
					'url'=>Url::to(['/purchasing/request-order/brgunit']),
					'initialize'=>true,
					'placeholder' => false,
				],
			]);   */
echo $form->field($roDetail, 'uNIT')->widget(Select2::classname(), ['data' => $brgUnit, 'options' => ['placeholder' => 'Pilih Unit Barang ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

			<?php 
Example #18
0
<div class="coloei-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'distname')->dropdownList(ArrayHelper::map(CoDistrict::find()->all(), 'distid', 'distname'), ['id' => 'district', 'prompt' => 'เลือกอำเภอ']);
?>

    <?php 
echo $form->field($model, 'subdist')->widget(DepDrop::classname(), ['options' => ['id' => 'subdist'], 'pluginOptions' => ['depends' => ['district'], 'placeholder' => 'เลือกตำบล...', 'url' => Url::to(['/coloei/get-tambon']), 'loadingText' => 'กำลังโหลดข้อมูล']]);
?>

    <?php 
echo $form->field($model, 'office')->widget(DepDrop::classname(), ['options' => ['id' => 'office'], 'pluginOptions' => ['depends' => ['district', 'subdist'], 'placeholder' => 'เลือกหน่วยบริการ...', 'url' => Url::to(['/coloei/get-office']), 'loadingText' => 'กำลังโหลดข้อมูล']]);
?>

    <div class="form-group">
        <?php 
/* = Html::submitButton($model->isNewRecord ? 'Process' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) */
?>
        <button type="submit" class="btn btn-warning">Process</button>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Example #19
0
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            
        <?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

        <?php 
echo $form->field($model_day, 'OPT')->widget(Select2::classname(), ['data' => $opt, 'options' => ['placeholder' => 'Pilih ...'], 'pluginOptions' => ['allowClear' => true]])->label('Options Jeda Pekan');
?>

        <?php 
echo $form->field($model, 'DAY_ID')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => 'Select ...'], 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['dayname-opt'], 'initialize' => true, 'loadingText' => 'Loading  ...', 'url' => Url::to(['/master/draft-plan/lisday'])]])->label('Setel Hari');
?>

       <!--   $form->field($model, 'DAY_ID')->widget(Select2::classname(), [
                // 'data' => $opt,
                'options' => ['placeholder' => 'Pilih ...'],
                'pluginOptions' => [
                    'allowClear' => true,

                     ],
            ]);?> -->


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
Example #20
0
            </div>
            <div class="secondary-context cont">
                <p><i class="fa fa-lightbulb-o"></i>&nbsp;Birajte delatnost, zatim aktivnost i na kraju predmet usluge i naručite uslugu. 
                            Npr.: Treba mi... <b>arhitekta</b> za <b>projektovanje kuće</b></p>
            </div>
            <div class="secondary-context cont">
                
                <?php 
echo $form->field(new \common\models\CsServices(), 'industry_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(\common\models\CsIndustries::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'Izaberi delatnost ...', 'id' => 'ind_id'], 'pluginOptions' => ['allowClear' => true]]);
?>

                <?php 
echo $form->field(new \common\models\CsServices(), 'action_id')->widget(DepDrop::classname(), ['options' => ['id' => 'act_id'], 'pluginOptions' => ['depends' => ['ind_id'], 'placeholder' => 'Izaberi akciju...', 'url' => Url::to(['/glob-nav-act-services'])]]);
?>
                <?php 
echo $form->field(new \common\models\CsServices(), 'object_id')->widget(DepDrop::classname(), ['options' => ['id' => 'obj_id'], 'pluginOptions' => ['depends' => ['act_id'], 'placeholder' => 'Izaberi predmet...', 'url' => Url::to(['/glob-nav-ser-objects'])]]);
?>
                
            </div>
            <div class="action-area right gray">
                <?php 
echo Html::submitButton('<i class="fa fa-shopping-cart"></i>&nbsp;' . Yii::t('app', 'Order'), ['class' => 'btn btn-info']);
?>
            </div>
    <?php 
kartik\widgets\ActiveForm::end();
?>
        
    </div>    

    <div class="promote_service_process">
Example #21
0
                <div class="form-group container">
                    <?php 
echo Html::activeLabel($model, 'detail_text');
?>
                    <div>
                        <?php 
echo \mihaildev\ckeditor\CKEditor::widget(['model' => $model, 'attribute' => 'detail_text', 'editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('grom/media/manager', ['extraPlugins' => 'codesnippet'])]);
?>
                    </div>
                </div>
                <?php 
echo $form->field($model, 'language')->dropDownList(Yii::$app->getLanguagesList(), ['prompt' => Yii::t('gromver.platform', 'Select ...'), 'id' => 'language']);
?>

                <?php 
echo $form->field($model, 'category_id')->widget(\kartik\widgets\DepDrop::className(), ['pluginOptions' => ['depends' => ['language'], 'placeholder' => Yii::t('gromver.platform', 'Select ...'), 'url' => \yii\helpers\Url::to(['categories', 'selected' => $model->category_id])]]);
?>

                <?php 
echo $form->field($model, 'status')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + $model->statusLabels());
?>

                <?php 
echo $form->field($model, 'published_at')->widget(\kartik\widgets\DateTimePicker::className(), ['options' => ['value' => date('d.m.Y H:i', is_int($model->published_at) ? $model->published_at : time())], 'pluginOptions' => ['format' => 'dd.mm.yyyy hh:ii', 'autoclose' => true]]);
?>
            </div>

            <div id="advanced-options" class="tab-pane">
                <?php 
echo $form->field($model, 'preview_text')->textarea(['rows' => 6]);
?>
Example #22
0
use kartik\widgets\DatePicker;
use kartik\label\LabelInPlace;
use lukisongroup\master\models\Kategoricus;
use lukisongroup\master\models\Province;
use lukisongroup\master\models\Kota;
use yii\web\JsExpression;
use yii\bootstrap\Modal;
use yii\helpers\Url;
use kartik\widgets\DepDrop;
$config = ['template' => "{input}\n{error}\n{hint}"];
// $dropparent = ArrayHelper::map(\lukisongroup\master\models\Kategori::find()->all(),'CUST_KTG_PARENT', 'CUST_KTG_NM');
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
echo $form->field($model, 'CusNm')->Textinput(['value' => $readonly['CUST_NM'], 'readonly' => true]);
// echo $form->field($model, 'CUST_NM', $config)->widget(LabelInPlace::classname());
echo $form->field($model, 'PROVINCE_ID')->widget(Select2::classname(), ['options' => ['id' => 'customers-province_id', 'placeholder' => 'Select provinsi ...'], 'data' => $droppro]);
echo $form->field($model, 'CITY_ID')->widget(DepDrop::classname(), ['options' => ['id' => 'customers-city_id', 'placeholder' => 'Select Kota'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['customers-province_id'], 'url' => Url::to(['/master/customers/lisarea']), 'loadingText' => 'Loading data ...']]);
echo $form->field($model, 'ALAMAT', $config)->widget(LabelInPlace::classname());
// echo $form->field($model, 'CUST_TYPE')->widget(Select2::classname(),[
// 	'options'=>[  'placeholder' => 'Select Customers parent ...'
// 	],
// 	'data' => $dropparentkategori
// ]);
//
// echo $form->field($model, 'CUST_KTG')->widget(DepDrop::classname(), [
// 	'options' => [//'id'=>'customers-cust_ktg',
// 	'placeholder' => 'Select Customers kategory'],
// 	'type' => DepDrop::TYPE_SELECT2,
// 	'select2Options'=>['pluginOptions'=>['allowClear'=>true]],
// 	'pluginOptions'=>[
// 		'depends'=>['customers-cust_type'],
// 		'url' => Url::to(['/master/customers/lisdata']),
Example #23
0
echo $form->field($model, 'name')->textInput(['maxlength' => 200]);
?>
    
    
    <?php 
echo $form->field($model, 'type')->dropDownList(['' => 'Select', '0' => 'Other', '1' => 'Hotel', '2' => 'Mall', '3' => 'Shopping Complex', '4' => '4/5 Star Hotel']);
?>
    
    
    
    
    
    
    <?php 
echo $form->field($model, 'cityId')->dropDownList(ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\City::find()->andWhere(['status' => 1])->All(), 'Id', 'name')));
echo $form->field($model, 'localityId')->widget(DepDrop::classname(), ['options' => ['id' => strtolower($model->formName()) . '-localityid'], 'data' => ArrayHelper::merge(['' => 'Select'], ArrayHelper::map(\common\models\Locality::find()->andWhere(['status' => 1, 'cityId' => $model->cityId])->All(), 'Id', 'name')), 'type' => DepDrop::TYPE_SELECT2, 'pluginOptions' => ['depends' => [strtolower($model->formName()) . '-cityid', strtolower($model->formName()) . '-zoneid'], 'placeholder' => 'Select Locality', 'url' => Url::to(['/locality/locality/autosuggest'])]]);
?>
    
    
    
    
  
    <?php 
echo $form->field($model, 'status')->hiddenInput(['value' => 1])->label('');
?>
    

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
Example #24
0
?>



<div class="kategoricus-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>
    
    <?php 
echo $form->field($model, 'cus_Type')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Category ...'], 'data' => $dropparentkategori])->label('Kategori');
?>

  <?php 
echo $form->field($model, 'cust_ktga')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => 'Select ...', 'id' => 'customers-cust_ktga'], 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['customers-cus_type'], 'initialize' => true, 'loadingText' => 'Loading  ...', 'url' => Url::to(['/master/customers/lisdata'])]])->label('Type');
?>

 <!-- $form->field($model, 'CUST_GRP')->widget(DepDrop::classname(), [
    'type'=>DepDrop::TYPE_SELECT2,
    'options'=>['placeholder'=>'Select ...'],
    'select2Options'=>['pluginOptions'=>['allowClear'=>true]],
    'pluginOptions'=>[
        'depends'=>['customers-cust_ktg'],
         // 'initialize' => true,
         'loadingText' => 'Loading  ...',
        'url'=>Url::to(['/master/customers/lis-cus']),
    ]
]) ?> -->

  <?php 
Example #25
0
 */
$this->registerJs("\n\n\t\t\t \$.fn.modal.Constructor.prototype.enforceFocus = function(){};\n\t\t\t\t \$('#ModulEvent').on('beforeSubmit',function(){\n\t\t\t\t\t var tgl2 = \$('#modalTitle').val();\n\t\t\t\t\t var tgl1 = \$('#tglawal').val();\n\t\t\t\t\t var parent = \$('#modelevent-modul_prn').val();\n\t\t\t\t\t var modulid = \$('#modelevent-modul_id').val();\n\t\t\t\t\t\$.ajax({\n\t\t\t\t\t\t\turl: '/sistem/personalia/save-event',\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: {title :tgl2,modulid :modulid,tgl1:tgl1,parent:parent},\n\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\tsuccess: function(result) {\n\t\t\t\t\t\t\t\tif (result == 1){\n\t\t\t\t\t\t\t\t\t\t\t\t \$(document).find('#confirm-permission-alert').modal('hide');\n\t\t\t\t\t\t\t\t\t\t\t\t    \$.pjax.reload({container:'#gv-event'});\n\t\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t});\n\t\t", $this::POS_READY);
Modal::begin(['id' => 'confirm-permission-alert', 'size' => Modal::SIZE_SMALL]);
/* echo  '<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span> <span class="sr-only">close</span></button>
                <h4 id="modalTitle" class="modal-title"></h4>
            </div>
			 <div id="modalBody" class="modal-body"></div>
			'; */
$form = ActiveForm::begin(['id' => $modelEvent->formName()]);
echo $form->field($modelEvent, 'title')->Hiddeninput(['id' => 'modalTitle'])->label(false);
?>
				<input type="hidden" id="tglawal">
				<?php 
echo $form->field($modelEvent, 'MODUL_ID')->dropDownList($aryModulID, ['id' => 'modelevent-modul_id'])->label('Attendance Parent');
echo $form->field($modelEvent, 'MODUL_PRN')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $droptype, 'options' => ['id' => 'modelevent-modul_prn'], 'pluginOptions' => ['depends' => ['modelevent-modul_id'], 'url' => Url::to(['/sistem/personalia/modul-child']), 'initialize' => true]])->label('Attendance Child');
// echo FileInput::widget([
// 'name'=>'import_file',
// 'name' => 'attachment_48[]',
// 'options'=>[
// 'multiple'=>true
// ],
// 'pluginOptions' => [
// 'uploadUrl' => Url::to(['/sales/import-data/upload']),
// 'showPreview' => false,
// 'showUpload' => false,
// 'showCaption' => true,
// 'showRemove' => true,
// 'uploadExtraData' => [
// 'album_id' => 20,
// 'cat_id' => 'Nature'
?>

    <?php 
echo $form->field($model, 'module')->dropDownList(ArrayHelper::merge(['' => 'Select Module'], $modulesmap->getModuleList()), ['id' => 'module']);
?>

    
    
    <?php 
echo $form->field($model, 'controller')->widget(DepDrop::classname(), ['options' => ['id' => 'controller'], 'data' => $modulesmap->getControllerList($model->module), 'pluginOptions' => ['depends' => ['module'], 'placeholder' => 'Select Controller', 'url' => Url::to(['/metadata/default/controllers'])]]);
?>
    

    
    <?php 
echo $form->field($model, 'action')->widget(DepDrop::classname(), ['options' => ['id' => 'actions'], 'data' => $modulesmap->getActionsList($model->module, $model->controller), 'pluginOptions' => ['depends' => ['module', 'controller'], 'placeholder' => 'Select Action', 'url' => Url::to(['/metadata/default/actions'])]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        <?php 
echo Html::button('Back', ['class' => 'btn btn-default', 'onclick' => 'history.go(-1);return true;']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Example #27
0
        </div>
    </div>
    <div class="row">
        <div class="col-xs-3 col-sm-3 col-md-3">           
            <?php 
echo $form->field($model, 'chw')->widget(Select2::classname(), ['data' => ArrayHelper::map(app\models\Provinces::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), 'language' => 'th', 'options' => ['placeholder' => 'เลือกจังหวัด ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>  
        <div class="col-xs-3 col-sm-3 col-md-3">           
            <?php 
echo $form->field($model, 'ampur')->widget(DepDrop::className(), ['data' => $amp, 'options' => ['placeholder' => '<--คลิกเลือกอำเภอ-->'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['employees-chw'], 'url' => yii\helpers\Url::to(['/employees/get-amp']), 'loadingText' => 'กำลังค้นข้อมูล...']]);
?>
        </div>     
        <div class="col-xs-3 col-sm-3 col-md-3">
            <?php 
echo $form->field($model, 'tumbon')->widget(DepDrop::className(), ['data' => $tum, 'options' => ['placeholder' => '<--คลิกเลือกตำบล-->'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['employees-chw', 'employees-ampur'], 'url' => yii\helpers\Url::to(['/employees/get-dist']), 'loadingText' => 'กำลังค้นข้อมูล...']]);
?>
        </div>
        <div class="col-xs-3 col-sm-3 col-md-3">
            <?php 
echo $form->field($model, 'tel')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '999-999-9999']);
?>
        </div>
        <div class="col-xs-3 col-sm-3 col-md-3">            
            <?php 
echo $form->field($model, 'comein')->widget(DatePicker::className(), ['language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'clientOptions' => ['changeMonth' => true, 'changeYear' => true], 'options' => ['class' => 'form-control']]);
?>
        </div>
        <div class="col-xs-3 col-sm-3 col-md-3">            
            <?php 
echo $form->field($model, 'department_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Departments::find()->all(), 'id', 'name'), 'language' => 'th', 'options' => ['placeholder' => 'เลือกแผนก ...'], 'pluginOptions' => ['allowClear' => true]]);
Example #28
0
?>

<div class="kota-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/purchasing/salesman-order/valid-alias-header')]);
?>

    

    <?php 
echo $form->field($model, 'parent_cusid')->widget(Select2::classname(), ['data' => $data_cus, 'options' => ['placeholder' => 'Pilih parent Customers..'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'CUST_ID')->widget(DepDrop::classname(), ['options' => ['placeholder' => 'Select Customers'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['soheader-parent_cusid'], 'url' => Url::to(['/purchasing/salesman-order/lis-child-cus']), 'loadingText' => 'Loading data ...']]);
?>

    <?php 
echo $form->field($model, 'TGL')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => ' pilih ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>


     <?php 
echo $form->field($model, 'USER_SIGN1')->widget(Select2::classname(), ['data' => $data_user, 'options' => ['placeholder' => 'Pilih User..'], 'pluginOptions' => ['allowClear' => true]]);
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
Example #29
0
    <?php 
$form = ActiveForm::begin(['id' => 'roInput', 'enableClientValidation' => true, 'method' => 'post', 'action' => ['/purchasing/request-order/simpanfirst']]);
?>
	<?php 
//= $form->errorSummary($model);
?>
	
    <?php 
echo $form->field($roDetail, 'CREATED_AT', ['template' => "{input}"])->textInput(['value' => date('Y-m-d H:i:s'), 'readonly' => true]);
?>

    <?php 
echo $form->field($roDetail, 'NM_BARANG')->hiddenInput(['value' => ''])->label(false);
echo $form->field($roDetail, 'KD_KATEGORI')->dropDownList($brgKtg, ['id' => 'rodetail-kd_kategori']);
echo $form->field($roDetail, 'KD_BARANG')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgUmum, 'options' => ['id' => 'rodetail-kd_barang'], 'pluginOptions' => ['depends' => ['rodetail-kd_kategori'], 'url' => Url::to(['/purchasing/request-order/brgkat']), 'initialize' => true]]);
echo $form->field($roDetail, 'UNIT')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_DEFAULT, 'data' => $brgUnit, 'options' => ['id' => 'rodetail-unit', 'readonly' => true, 'selected' => false], 'pluginOptions' => ['depends' => ['rodetail-kd_kategori', 'rodetail-kd_barang'], 'url' => Url::to(['/purchasing/request-order/brgunit']), 'placeholder' => false]]);
?>

    <?php 
echo $form->field($roDetail, 'RQTY')->textInput(['maxlength' => true, 'placeholder' => 'Jumlah Barang']);
?>

    <?php 
echo $form->field($roDetail, 'NOTE')->textarea(array('rows' => 2, 'cols' => 5))->label('Informasi');
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($roDetail->isNewRecord ? 'Create' : 'Update', ['class' => $roDetail->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Example #30
0
							<div class="row">
								<div class="col-md-12">
									<?php 
echo $form->field($model, 'PLACE')->textInput(['disabled' => $mode == 'view' ? true : false]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'PROVINCE_CODE')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfThaiProvince::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), 'options' => ['placeholder' => 'กรุณาเลือกจังหวัด', 'disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['allowClear' => false]]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'AMPHOE_CODE')->widget(DepDrop::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfThaiAmphur::find()->where(['AMPHUR_ID' => $model->AMPHOE_CODE])->all(), 'AMPHUR_ID', 'AMPHUR_NAME'), 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => false]], 'options' => ['disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['depends' => $mode == 'view' ? [''] : ['efproject-province_code'], 'initialize' => $model->isNewRecord ? false : true, 'url' => Url::to(['/common/ajax/get-amphur-list']), 'loadingText' => 'Loading ...', 'placeholder' => 'เลือกจังหวัดก่อน']]);
?>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<div class="">
					<div class="panel panel-primary dummy-data">
						<div class="panel-heading">
							<h3 class="panel-title">รายละเอียดโครงการ</h3>
						</div>