Пример #1
0
<!--    --><?php 
//echo $form->field($model, 'id')
?>

<!--    --><?php 
//echo $form->field($model, 'home_id')
?>

<!--    --><?php 
//echo $form->field($model, 'guest_id')
?>
    <div class="row">
        <div class="col-xs-4">
            <?php 
echo $form->field($model, 'season_id')->widget(Select2::classname(), ['data' => ArrayHelper::map($model->getAllSeasons(), 'id', 'name'), 'options' => ['placeholder' => 'Выберите сезон ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
        <div class="col-xs-4">
            <?php 
echo $form->field($model, 'category_id')->widget(Select2::className(), ['data' => ArrayHelper::map($model->getAllCategories(), 'id', 'name'), 'options' => ['placeholder' => 'Выберите категорию ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
        <div class="col-xs-4">
            <div class="form-group" style="margin-top: 25px">
                <?php 
echo Html::submitButton('Поиск', ['class' => 'btn btn-primary']);
?>
<!--                --><?php 
//echo Html::resetButton('Сбросить', ['class' => 'btn btn-default'])
?>
Пример #2
0
?>
    
    <?php 
echo $form->field($model, 'cargaHoraria')->textInput(['type' => 'number']);
?>

    <?php 
echo $form->field($model, 'palestrante_idPalestrante')->widget(Select2::classname(), ['data' => $arrayPalestrante, 'options' => ['placeholder' => 'Selecione um palestrante ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <p><?php 
echo Html::a('Novo Palestrante', ['palestrante/index'], ['class' => 'btn btn-primary']);
?>
<p>
    
    <?php 
echo $form->field($model, 'local_idlocal')->widget(Select2::classname(), ['data' => $arrayLocal, 'options' => ['placeholder' => 'Selecione um Local ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <p><?php 
echo Html::a('Novo Local', ['local/index'], ['class' => 'btn btn-primary']);
?>
<p>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Criar Item de Programação' : 'Salvar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Пример #3
0
<?php

use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\builder\Form;
use kartik\datecontrol\DateControl;
use kartik\widgets\Select2;
/**
 * @var yii\web\View $this
 * @var common\models\empresa\Osconfemp $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="osconfemp-form">

    <?php 
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL]);
echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 1, 'attributes' => ['coe_nombre' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => '\\yii\\widgets\\MaskedInput', 'options' => ['mask' => 'A{3,10}9{0,5}']], 'coe_descri' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter Descripción...', 'maxlength' => 60]], 'coe_tipo' => ['type' => Form::INPUT_WIDGET, 'widgetClass' => Select2::classname(), 'options' => ['data' => Yii::$app->orcsis->getOpcTab($model->tableName(), 'coe_tipo'), 'options' => ['placeholder' => 'Enter Tipo de Dato...']]], 'coe_data' => ['type' => Form::INPUT_TEXTAREA, 'options' => ['placeholder' => 'Enter Coe Data...', 'rows' => 6]]]]);
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
ActiveForm::end();
?>

</div>
Пример #4
0
         $form->field($model, 'idcliente')->widget(Select2::classname(), [
                 'pluginOptions' => [
                         'allowClear'         => true,
                         'minimumInputLength' => 2,
                         'ajax'               => [
                                 'url'      => $url_cliente,
                                 'dataType' => 'json',
                                 'data'     => new JsExpression('function(params) { return {search:params.term};}')
                         ],
                 ],
                 'options'       => ['placeholder' => 'Selecione um cliente...'],
         ]) ?>
     </div>
     <div class="col-md-4"><?= $form->field($model, 'valor')->widget(MaskMoney::classname()) ?></div>
     <?=
         $form->field($model, 'forma_pagamento_id')->widget(Select2::classname(), [
                 'pluginOptions' => [
                         'allowClear'         => true,
                         'minimumInputLength' => 2,
                         'ajax'               => [
                                 'url'      => $url_forma_pagamento,
                                 'dataType' => 'json',
                                 'data'     => new JsExpression('function(params) { return {search:params.term};}')
                         ],
                 ],
                 'options'       => ['placeholder' => 'Selecione um cliente...'],
         ]) ?>
 </div>
 <div class="row">
     <div class="col-md-4"><?= $form->field($model, 'data_vencimento')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['pluginOptions' => ['autoclose' => true]]]) ?></div>
     <div class="col-md-4"><?= $form->field($model, 'data_pagamento')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['pluginOptions' => ['autoclose' => true]]]) ?></div>
Пример #5
0
?>
	<?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']);
?>
    </div>
Пример #6
0
use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\widgets\DatePicker;
use yii\helpers\ArrayHelper;
use kartik\widgets\Select2;
use lukisongroup\master\models\Nmperusahaan;
$addressCorp = ArrayHelper::map(Nmperusahaan::find()->orderBy('NM_ALAMAT')->all(), 'ID', 'NM_ALAMAT');
?>

	<?php 
$form = ActiveForm::begin(['id' => 'frm-bil-proccess', 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'method' => 'post', 'action' => ['/purchasing/purchase-order/billing-save']]);
?>
	
		<?php 
//echo  $form->field($poHeaderVal, 'bILLING')->textInput()->label('Billing');
echo $form->field($poHeaderVal, 'bILLING')->widget(Select2::classname(), ['data' => $addressCorp, 'options' => ['placeholder' => 'Select Address for Billing ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
		<?php 
echo $form->field($poHeaderVal, 'kD_PO')->hiddenInput(['value' => $poHeader->KD_PO, 'maxlength' => true, 'readonly' => true])->label(false);
?>
		
		<div style="text-align: right;"">
			<?php 
echo Html::submitButton('simpan', ['class' => 'btn btn-primary']);
?>
		</div>
    
	<?php 
ActiveForm::end();
?>
	
Пример #7
0
\$('#mod_entity_type_add').on('click',opencentitytypemod);

MODALJS;
$this->registerJs($modalJS);
?>

<div class="entity-form">

    <?php 
$form = ActiveForm::begin(['id' => 'EntityCreateForm', 'action' => Url::to(['/entity/default/create'])]);
?>

    <div class="row">
        <div class="col-md-12">
    <?php 
echo $form->field($model, 'entity_type_id')->widget(Select2::classname(), ['data' => EntityType::pdEntityType(), 'options' => ['placeholder' => 'Entity Type...'], 'addon' => ['prepend' => ['content' => Html::icon('globe')], 'append' => ['content' => Html::button(Html::icon('plus'), ['class' => 'btn btn-default', 'id' => 'mod_entity_type_add', 'title' => 'add new entity', 'data-toggle' => 'tooltip', 'href' => Url::to(['/entity/entity-type/create'])]), 'asButton' => true]], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <?php 
echo $form->field($model, 'prename')->textInput(['maxlength' => 100]);
?>
        </div>
        <div class="col-md-6">
            <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 140]);
?>
        </div>
Пример #8
0
    <?php 
$form = Adm::begin('ActiveForm');
?>

    <div class="row">
        <div class="col-xs-12 col-sm-4 col-md-4 readonly-cont">
            <?php 
echo $form->field($model, 'host')->textInput(['maxlength' => 250]);
?>

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

            <?php 
echo $form->field($model, 'encryption')->widget(\kartik\widgets\Select2::classname(), ['data' => $model::encryptionList()]);
?>
        </div>

        <div class="col-xs-12 col-sm-4 col-md-4">
            <?php 
echo $form->field($model, 'from_email')->textInput(['maxlength' => 250]);
?>

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

            <div class="m-b-lg">
                <label class="control-label"><?php 
echo Adm::t('adm_email_config', 'Send copy to:', ['dot' => true]);
Пример #9
0
echo $form->field($model, 'status')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]);
?>
		
				</div>						
			</div>

			<?php 
echo $form->field($model, 'description')->textArea(['maxlength' => 155, 'placeholder' => Yii::t('app', 'This description also used as meta description')]);
?>
			
						
		</div>	
		
		<div class="col-md-6 well">
			<?php 
echo $form->field($model, 'parent_id')->widget(Select2::classname(), ['model' => $model, 'attribute' => 'parent_id', 'data' => $listParent, 'options' => ['placeholder' => Yii::t('app', 'Select a account parent...')], 'pluginOptions' => ['allowClear' => true], 'pluginEvents' => ["change" => 'function() { 														
								}']]);
?>
   
			
			<?php 
if ($module->enableUpload) {
    echo $form->field($model, 'image')->widget(KCFinderInputWidget::className(), ['multiple' => false, 'kcfOptions' => $kcfOptions, 'kcfBrowseOptions' => ['type' => 'images']]);
} else {
    echo $form->field($model, 'image')->textInput(['placeholder' => Yii::t('app', 'Url of image')]);
}
?>
							
						
		</div>	
    </div>	
Пример #10
0
    }
    var markup =
'<div class="row">' +
    '<div class="col-sm-1">' + image + '</div>'+
    '<div class="col-sm-3"><b style="margin-left:5px">' + repo.brand_name + '</b></div>' +
    '<div class="col-sm-3">SN:' + repo.brand_store_sn + '</div>' +
'</div>';
    return '<div style="overflow:hidden;">' + markup + '</div>';
};
JS;
$this->registerJs($formatJs, View::POS_HEAD);
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
<div class="brand-form box-body">
    <?php 
echo $form->field($model, 'sn')->widget(\kartik\widgets\Select2::classname(), ['initValueText' => $model->sn, 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 1, 'ajax' => ['url' => \yii\helpers\Url::to(['/admin/brand/get-brand']), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }')], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('formatRepo'), 'templateSelection' => new JsExpression('function (brand) {return brand.id;}')]]);
?>
    <?php 
echo $form->field($model, 'cn_name')->textInput(['maxlength' => true]);
?>

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

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

    <?php 
echo $form->field($model, 'initial')->widget(\yii\widgets\MaskedInput::className(), ['mask' => 'A']);
Пример #11
0
				</div>
				<div class="col-md-12">
					<?php 
echo $gvScdlHeader;
?>
				</div>
			</div>
		</div>
	</div>
</div>

<?php 
// save via ajax : author wawan
$this->registerJs("\n     \$.fn.modal.Constructor.prototype.enforceFocus = function(){};\n       \$('#Scheduleheader').on('beforeSubmit',function(){\n\t\t\t\t var val = \$('#scheduleheader-scdl_group').val();\n\t\t\t\t var val1 = \$('#scheduleheader-user_id').val();\n\t\t\t\t if(val == '' && val1 == '')\n\t\t\t\t {\n\t\t\t\t\t \talert('your check field dont exist');\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t var tgl2 = \$('#tglakhir').val();\n\t\t\t\t\t var tgl1 = \$('#tglawal').val();\n\t\t\t\t\t var scdl_group = \$('#scheduleheader-scdl_group').val();\n\t\t\t\t\t var user_id = \$('#scheduleheader-user_id').val();\n\t\t\t\t\t var note = \$('#note').val();\n\t\t\t\t\t\$.ajax({\n\t\t\t\t\t\t\turl: '/master/schedule-header/jsoncalendar_add',\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: {tgl2 :tgl2,scdl_group :scdl_group,tgl1:tgl1,user_id:user_id,note:note},\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\t\$(document).find('#confirm-permission-alert').modal('hide');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\$.pjax.reload({container:'#gv-schedule-id'});\r\n\t\t\t\t\t\t\t\t\t\t\t\t \$('form#Scheduleheader').trigger('reset');\n\t\t\t\t\t\t\t\t\t\t\t\t \$.pjax.reload({container:'#calendar'});\r\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t alert('maaf untuk tanggal ini sudah di booking');\n\t\t\t\t\t\t\t\t\t\t\$('form#Scheduleheader').trigger('reset');\n\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 // \$.pjax.reload({container:'#gv-schedule-id'});\n\t\t\t\t\t\t\t\t\t\t\t // \$.pjax.reload({container:'#calendar'});\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t});\n\n\t\t\t\t }\n\n          return false;\n        });\n  ", $this::POS_READY);
// author wawan
Modal::begin(['id' => 'confirm-permission-alert', 'size' => Modal::SIZE_SMALL]);
$form = ActiveForm::begin(['id' => $model->formName()]);
echo $form->field($model, 'TGL1')->Hiddeninput(['id' => 'tglawal'])->label(false);
echo $form->field($model, 'TGL2')->Hiddeninput(['id' => 'tglakhir'])->label(false);
echo $form->field($model, 'SCDL_GROUP')->widget(Select2::classname(), ['data' => $datagroup, 'options' => ['placeholder' => 'Select Group ...'], 'pluginOptions' => ['allowClear' => true]]);
echo $form->field($model, 'USER_ID')->widget(Select2::classname(), ['data' => $datauser, 'options' => ['placeholder' => 'Select User ...'], 'pluginOptions' => ['allowClear' => true]]);
echo $form->field($model, 'NOTE')->Textarea(['rows' => 2, 'id' => 'note'])->label('KETERANGAN');
echo '<div style="text-align:right; padding-top:10px">';
echo Html::submitButton('save', ['class' => 'btn btn-success']);
echo '</div>';
ActiveForm::end();
Modal::end();
// create user crm via modal : author wawan
$this->registerJs("\n\t \$.fn.modal.Constructor.prototype.enforceFocus = function(){};\n\t \$('#modal-create').on('show.bs.modal', function (event) {\n\t\tvar button = \$(event.relatedTarget)\n\t\tvar modal = \$(this)\n\t\tvar title = button.data('title')\n\t\tvar href = button.attr('href')\n\t\t//modal.find('.modal-title').html(title)\n\t\tmodal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\n\t\t\$.post(href)\n\t\t\t.done(function( data ) {\n\t\t\t\tmodal.find('.modal-body').html(data)\n\t\t\t});\n\t\t})\n", $this::POS_READY);
Modal::begin(['id' => 'modal-create', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-book"></div><div><h4 class="modal-title">User</h4></div>', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(97, 211, 96, 0.3)']]);
Modal::end();
Пример #12
0
/* @var $this yii\web\View */
/* @var $model backend\models\HospitalAssignment */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="hospital-assignment-form">

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

    <?php 
echo $form->field($model, 'user_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(User::find()->all(), 'id', 'username'), 'options' => ['placeholder' => 'เลือกผู้ใช้งาน ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'hospital_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Hospital::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'เลือกผู้ใช้งาน ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <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();
?>

</div>
Пример #13
0
        </div>
    </div>

    <div class="row">
      <div class="col-xs-12 col-sm-8 col-md-5">
        <?php 
$data = ArrayHelper::map(State::find()->select(['id', 'name'])->asArray()->all(), 'id', 'name');
echo $form->field($model, 'stateIds')->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Pilih Kecamatan ...'], 'pluginOptions' => ['allowClear' => true, 'multiple' => true]])->label('Kecamatan');
?>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12 col-sm-8 col-md-5">
        <?php 
$data = ArrayHelper::map(TypeTools::find()->select(['id', 'name'])->asArray()->all(), 'id', 'name');
echo $form->field($model, 'typeToolsIds')->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Pilih Jenis Alat ...'], 'pluginOptions' => ['allowClear' => true, 'multiple' => true]])->label('Jenis Alat');
?>
      </div>
    </div>

    <div class="form-group">
        <?php 
echo Html::submitButton('Tampilkan', ['class' => 'btn btn-primary']);
?>
    </div>

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

</div>
Пример #14
0
			<div role="tabpanel" class="tab-pane panel-body" id="payment">				
				<div class="row">		
					<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
						<h3 class="text-center"><?php 
echo Yii::t("app", "Payment & Submit");
?>
</h3>
						<div class="form-group">
							<label for="Order[data][payment]"><?php 
echo Yii::t('app', 'Payment method');
?>
</label>
							<?php 
$field = $form->field($model, "data[payment]");
$field->template = "{input}";
echo $field->widget(Select2::classname(), ['data' => $listPayment, 'options' => ['placeholder' => Yii::t('app', 'Select payment method ...'), 'multiple' => false, 'template' => '{input}']]);
?>
						</div>

						<div class="form-group">
						<?php 
echo Html::label(Yii::t("app", "Additional Notes"));
?>
	
						<?php 
$data = $model->data;
if (!isset($data["note"])) {
    $model->data = ["note" => "-"];
}
$field = $form->field($model, "data[note]");
$field->template = "{input}";
Пример #15
0
?>
                        
                        </div> <!-- col-lg-6 -->
                    
                    </div> <!-- #image -->
                    
                    <div id="video" class="tab-pane fade">
                    
                    	<div class="col-lg-6">
                        
                        	<?php 
echo $form->field($model, 'video', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-film"></i>']]])->textInput(['maxlength' => true]);
?>
                        
                        	<?php 
echo $form->field($model, 'video_type')->widget(Select2::classname(), ['data' => $select2videotype, 'addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-film"></i>']]]);
?>
   
                            
                        </div> <!-- end col-lg-6 -->
                        
                        <div class="col-lg-6">
                            
                            <?php 
echo $form->field($model, 'video_caption', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-facetime-video"></i>']]])->textarea(['maxlength' => 255, 'rows' => 6]);
?>
                            
                            <?php 
echo $form->field($model, 'video_credits', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-barcode"></i>']]])->textInput(['maxlength' => 255]);
?>
                            
Пример #16
0
				</div>
				<div class="col-xs-4">
			<?php 
echo $form->field($model, 'status')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]);
?>
		
				</div>						
			</div>

			<?php 
echo $form->field($model, 'description')->textArea(['rows' => 4, 'maxlength' => 155, 'placeholder' => Yii::t('app', 'This description also used as meta description')]);
?>
			
			
			<?php 
echo $form->field($model, 'tags')->widget(Select2::classname(), ['options' => ['placeholder' => Yii::t('app', 'Put additional tags ...')], 'data' => $model->getTags(), 'pluginOptions' => ['tags' => true, 'tokenSeparators' => [',', ' ']]]);
?>
					
		</div>	
		
		<div class="col-md-6">
			<div class="well">
			<?php 
echo $form->field($model, 'time')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Select media time ...', 'readonly' => true], 'removeButton' => false, 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd HH:i:s', 'todayHighlight' => true]]);
?>
						
			
			<div class="row">
				<div class="col-md-12">
				<?php 
if ($module->enableUpload) {
Пример #17
0
?>

    <?php 
echo $form->field($model, 'title')->label(false)->textInput(['placeholder' => 'freetext search']);
?>

    <?php 
if (isset($afterSearchTextCallback)) {
    call_user_func($afterSearchTextCallback, $this, $form, $model);
}
echo $form->field($model, 'date_published', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-calendar"></i>']], 'options' => ['class' => 'drp-container form-group']])->widget(DateRangePicker::classname(), ['useWithAddon' => true, 'convertFormat' => true, 'presetDropdown' => true, 'pluginOptions' => ['locale' => ['format' => 'd M Y', 'separator' => ' to '], 'opens' => 'left']]);
if (isset($afterSearchCalendarCallback)) {
    call_user_func($afterSearchCalendarCallback, $this, $form, $model);
}
// Normal select with ActiveForm & model
echo $form->field($model, 'keywords')->widget(Select2::classname(), ['id' => 'search-label', 'data' => \humanized\scoopit\models\gui\SearchLabel::getSelectData(), 'options' => ['placeholder' => 'Select keywords ...'], 'pluginOptions' => ['multiple' => true, 'allowClear' => true]])->label(false);
if (isset($afterSearchKeywordCallback)) {
    call_user_func($afterSearchKeywordCallback, $this, $form, $model);
}
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Search', ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::resetButton('Reset', ['class' => 'btn btn-default']);
?>
    </div>

    <?php 
Пример #18
0
            <?php 
echo $form->field($model, 'next_type')->radioButtonGroup($model->NextTypeArray, ['id' => 'next_type-create', 'itemOptions' => ['labelOptions' => ['class' => 'btn btn-primary btn-sm']]])->label(false);
?>
            <?php 
echo Html::error($model, 'next_type', ['data-activity' => 'form-summary', 'class' => 'help-block hidden']);
?>
        </div>    
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="col-md-9">
                <?php 
$userDesc = empty($model->next_by) ? '' : $model->responsible->username;
$url = \yii\helpers\Url::to(['/activity/default/responsible-list']);
echo $form->field($model, 'next_by')->widget(Select2::classname(), ['initValueText' => $userDesc, 'options' => ['placeholder' => 'responsible ...'], 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 3, 'ajax' => ['url' => $url, 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }')], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(user) { return user.text; }'), 'templateSelection' => new JsExpression('function (user) { return user.text; }')]])->label(false);
?>
            </div>
            <div class="col-md-3">
                <?php 
echo Html::submitButton('<i class="fa fa-check"></i> ' . \Yii::t('net_frenzel_activity', 'submit'), ['class' => 'btn btn-success btn-block']);
?>
            </div>
        </div>
    </div>
</div>

<?php 
echo Html::activeHiddenInput($model, 'entity');
echo Html::activeHiddenInput($model, 'entity_id');
ActiveForm::end();
Пример #19
0
        'pluginOptions' => [
            'allowClear' => true,
            'multiple'=>true
             ],
        
    ]);?> -->

    <?php 
$options = ['multiple' => true];
// echo $form->field($model, $attribute)->listBox($items, $options);
echo $form->field($model, 'DEP_SUB_ID')->widget(DualListbox::className(), ['items' => $dep, 'options' => $options, 'clientOptions' => ['moveOnSelect' => false, 'selectedListLabel' => 'Selected Items', 'nonSelectedListLabel' => 'Available Items']]);
?>


    <?php 
echo $form->field($model, 'DESTINATION_TO')->widget(Select2::classname(), ['data' => $dropemploy, 'options' => ['placeholder' => 'Pilih Karyawan ...'], 'pluginOptions' => ['allowClear' => true]]);
$options = ['multiple' => true];
// echo $form->field($model, $attribute)->listBox($items, $options);
echo $form->field($model, 'USER_CC')->widget(DualListbox::className(), ['items' => $dropemploy, 'options' => $options, 'clientOptions' => ['moveOnSelect' => false, 'selectedListLabel' => 'Selected Items', 'nonSelectedListLabel' => 'Available Items']]);
?>
	
 

  <?php 
echo $form->field($model, 'PLAN_DATE1')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter...', 'value' => $tgl], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>


  <?php 
echo $form->field($model, 'PLAN_DATE2')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter...', 'value' => $tgl_1], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>
Пример #20
0
        <div class="col-md-6">
        <?php 
echo $form->field($model, 'title');
?>
        </div>

    <!--?= $form->field($model, 'file') ?-->
        <div class="col-md-6">
            <!--?= $form->field($model, 'share_to') ?-->

            <?php 
$usr = User::find()->all();
$usrs = ArrayHelper::map($usr, function ($model) {
    return $model->_id->{'$id'};
}, 'username');
echo $form->field($model, 'share_to')->label('Share To')->widget(Select2::classname(), ['data' => $usrs, 'options' => ['placeholder' => 'Select User', 'id' => 'file_id'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-8">

                    <!--?= $form->field($model, 'file')->fileInput() ?-->
                    <?php 
echo $form->field($model, 'file')->widget(FileInput::classname(), ['options' => ['accept' => 'file/*'], 'pluginOptions' => ['previewFileType' => 'image', 'showUpload' => false]]);
?>
        </div>
        <?php 
$model->status = 1;
?>
    <?php 
Пример #21
0
?>
	<?php 
echo $form->field($model, 'identification_type', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$identificationType);
?>
    <?php 
echo $form->field($model, 'marital_status', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$maritalStatus);
?>
    <?php 
echo $form->field($model, 'identification_number', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'social_security_number', ['options' => ['class' => 'col-xs-6']])->widget(MaskedInput::className(), ['mask' => '999-99-9999']);
?>

    <?php 
echo $form->field($model, 'identification_state', ['options' => ['class' => 'col-xs-6 padding-right0']])->widget(Select2::classname(), ['data' => ArrayHelper::map(State::find()->all(), 'abbreviation', 'abbreviation'), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <?php 
echo $form->field($model, 'identification_expiration_date', ['options' => ['class' => 'col-xs-6']])->label('ID Expiration Date')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'removeButton' => false, 'options' => ['value' => $model->identification_expiration_date ? date('m/d/Y', $model->identification_expiration_date) : ''], 'pluginOptions' => ['autoclose' => true, 'format' => 'mm/dd/yyyy']]);
?>
    <?php 
echo $form->field($model, 'occupation', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'employer', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'total_annual_income', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$totalAnnualIncome);
?>
    <?php 
echo $form->field($model, 'years_with_advisor', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$yearsWithAdvisor);
Пример #22
0
<div class="tmaster-form">

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

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

  
  <?php 
echo $form->field($model, 'tgllhpsp')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
  <?php 
echo $form->field($model, 'idkapal')->widget(Select2::classname(), ['data' => ArrayHelper::map(Kapal::find()->all(), 'kapal_id', 'kapal_nama'), 'language' => 'en', 'options' => ['placeholder' => 'Pilih Kapal ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
           
   
    <?php 
echo $form->field($model, 'voy')->textInput(['maxlength' => 20]);
?>


   <?php 
echo $form->field($model, 'idagen')->dropDownList(ArrayHelper::map(Tagen::find()->all(), 'id', 'namaagen'), ['prompt' => 'pilih negara pelabuhan asal']);
?>
 
  
      <?php 
echo $form->field($model, 'idpelasal')->dropDownList(ArrayHelper::map(Tnegpelabuhan::find()->all(), 'idpel', 'negarapelabuhan'), ['prompt' => 'pilih negara pelabuhan asal']);
Пример #23
0
    

    <?php 
echo $form->field($model, 'date_input')->textInput();
?>

    <?php 
echo $form->field($model, 'last_update')->textInput();
?>

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

<?php 
echo $form->field($model, 'risk_status')->widget(Select2::classname(), ['data' => ArrayHelper::map(Status::find()->all(), 'STATUS_ID', 'STATUS_NAME'), 'options' => ['placeholder' => 'เลือกสถานะของรายการ ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
      </div>  
        <div class="form-group field-upload_files">
      <label class="control-label" for="upload_files[]"> ภาพถ่าย </label>
    <div>
    <?php 
echo FileInput::widget(['name' => 'upload_ajax[]', 'options' => ['multiple' => true, 'accept' => 'image/*'], 'pluginOptions' => ['overwriteInitial' => false, 'initialPreviewShowDelete' => true, 'initialPreview' => $initialPreview, 'initialPreviewConfig' => $initialPreviewConfig, 'uploadUrl' => Url::to(['/priskhead/upload-ajax']), 'uploadExtraData' => ['ref' => $model->ref], 'maxFileCount' => 100]]);
?>
    </div>
    </div>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => ($model->isNewRecord ? 'btn btn-success' : 'btn btn-primary') . ' btn-lg btn-block']);
Пример #24
0
$data1 = Terminvest::find()->all();
$to1 = "ID";
$from1 = "INVES_TYPE";
$config = ['template' => "{input}\n{error}\n{hint}"];
?>

<?php 
$form = ActiveForm::begin(['id' => $budget->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/term-customers/valid-inves')]);
?>

 <?php 
echo $form->field($budget, 'ID_TERM')->hiddenInput(['value' => $id])->label(false);
?>

<?php 
echo $form->field($budget, 'INVES_TYPE')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Type Investasi ...'], 'data' => $budget->data($data1, $to1, $from1)]);
?>

<?php 
echo $form->field($budget, 'PERIODE_START')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Dari  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>

<?php 
echo $form->field($budget, 'PERIODE_END')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Sampai'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {error}"]]);
?>

<?php 
echo $form->field($budget, 'PROGRAM')->textArea(['options' => ['rows' => 5]]);
?>

<?php 
Пример #25
0
?>

        <?php 
echo $form->field($model, 'id', ['template' => '{input}'])->textInput(['style' => 'display:none']);
?>

        <?php 
$template = '<div><p class="nikkes">{{value}}</p></div>';
echo $form->field($model, 'nikkes')->widget(Typeahead::classname(), ['options' => ['placeholder' => 'Ketik NIKKES yang diinginkan'], 'pluginOptions' => ['highlight' => true], 'dataset' => [['datumTokenizer' => "Bloodhound.tokenizers.obj.whitespace('value')", 'display' => 'value', 'templates' => ['notFound' => '<div class="text-danger" style="padding:0 8px"> Nikkes tidak terdaftar </div>', 'suggestion' => new JsExpression("Handlebars.compile('{$template}')")], 'remote' => ['url' => Url::to(['peserta/get-nikkes-list']) . '?q=%QUERY', 'wildcard' => '%QUERY'], 'limit' => 10]]]);
?>
        

        

        <?php 
echo $form->field($model, 'hak_kacamata_id')->widget(Select2::classname(), ['data' => $model->hakkacamataList, 'options' => ['placeholder' => 'Please Choose One', 'disabled' => true], 'pluginOptions' => ['allowClear' => true]]);
?>

        <?php 
echo $form->field($model, 'tgl_ambil')->widget(\kartik\widgets\DatePicker::classname(), ['options' => ['placeholder' => 'Choose Tanggal Pengambilan'], 'type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
?>


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

        <?php 
ActiveForm::end();
Пример #26
0
// $dropdis = ArrayHelper::map(\lukisongroup\master\models\Distributor::find()->all(), 'KD_DISTRIBUTOR', 'NM_DISTRIBUTOR');
$config = ['template' => "{input}\n{error}\n{hint}"];
// $dropparent = ArrayHelper::map(\lukisongroup\master\models\Kategori::find()->all(),'CUST_KTG_PARENT', 'CUST_KTG_NM');
// $dropparentkategori = ArrayHelper::map(Kategoricus::find()->where('CUST_KTG_PARENT = CUST_KTG')
//  ->asArray()
//  ->all(),'CUST_KTG', 'CUST_KTG_NM');
// $droppro = ArrayHelper::map(Province::find()->asArray()
// ->all(),'PROVINCE_ID','PROVINCE');
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/customers/valid')]);
echo $form->field($model, 'parentnama')->checkbox();
echo $form->field($model, 'CUST_NM', $config)->widget(LabelInPlace::classname());
echo $form->field($model, 'ALAMAT', $config)->widget(LabelInPlace::classname());
?>
		<div id="grp">
			<?php 
echo $form->field($model, 'CUST_GRP')->widget(Select2::classname(), ['data' => $parent, 'options' => ['id' => 'customers-cust_grp', 'placeholder' => 'Pilih Group Customers ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
	</div>
	<?php 
echo $form->field($model, 'TLP1', $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'],
Пример #27
0
use yii\helpers\Url;
use evgeniyrru\yii2slick\Slick;
/* @var $this yii\web\View */
$this->title = 'EMTOL - бронирование экскурсий';
$this->params['fluid'] = true;
?>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="false" data-pause="false">
    <div class="container">
        <div class="tour-form">
            <?php 
NavBar::begin();
$form = ActiveForm::begin(['method' => 'post', 'action' => ['/tour/index'], 'options' => ['class' => 'form-inline']]);
?>

            <?php 
echo $form->field($model, 'search_data', ['options' => ['class' => 'search-data form-group']])->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Введите ключевые слова...'], 'pluginOptions' => ['allowClear' => true]]);
?>

            <!-- /.search-data -->
            <?php 
echo $form->field($model, 'date_begin')->widget(\yii\jui\DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'yyyy-MM-dd']);
?>
            <div class="form-group btn-search">
                <?php 
echo Html::submitButton('Вперед!', ['class' => 'btn btn-success']);
?>
            </div>
            <?php 
ActiveForm::end();
NavBar::end();
?>
Пример #28
0
    </div>
</section>

<input type="hidden" name="DynamicContent[apply_if_params]" id="apply_if_params">


<?php 
BackendWidget::begin(['title' => Yii::t('app', 'Match settings'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]);
?>
<div id="properties">
    <?php 
$url = Url::to(['/shop/backend-category/autocomplete']);
$category = $model->apply_if_last_category_id > 0 ? \app\modules\shop\models\Category::findById($model->apply_if_last_category_id) : null;
?>
    <?php 
echo $form->field($model, 'apply_if_last_category_id')->widget(Select2::classname(), ['options' => ['placeholder' => 'Search for a category ...'], 'pluginOptions' => ['allowClear' => true, 'ajax' => ['url' => $url, 'dataType' => 'json', 'data' => new JsExpression('function(term,page) { return {search:term}; }'), 'results' => new JsExpression('function(data,page) { return {results:data.results}; }')]], 'initValueText' => !is_null($category) ? $category->name : '']);
?>
    <div class="row">
        <div class="col-md-10 col-md-offset-2">
            <a href="#" class="btn btn-md btn-primary add-property">
                <?php 
echo Icon::show('plus');
?>
                <?php 
echo Yii::t('app', 'Add property');
?>
            </a>
            <br>
            <br>
        </div>
    </div>
Пример #29
0
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'status')->dropDownList(Document::getStatusArray());
?>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'parent_id')->widget(Select2::classname(), ['data' => Document::getAll(), 'options' => ['placeholder' => '', 'class' => 'parent_id'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'template_id')->widget(Select2::classname(), ['data' => Template::getAll(), 'options' => ['placeholder' => '', 'class' => 'template_id'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'meta_keywords')->textarea(['rows' => 2]);
?>
        </div>
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'meta_description')->textarea(['rows' => 2]);
?>
        </div>
Пример #30
0
?>

    <div class="row">

        <div class="col-lg-4">

            <?php 
echo $form->field($model, 'name', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-plus"></i>']]])->textInput(['maxlength' => 255]);
?>

            <?php 
echo $form->field($model, 'alias', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-bookmark"></i>']]])->textInput(['maxlength' => 255]);
?>

            <?php 
echo $form->field($model, 'state')->widget(Select2::classname(), ['data' => [1 => Yii::t('articles', 'Published'), 0 => Yii::t('articles', 'Unpublished')], 'addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-check"></i>']]]);
?>

        </div>

        <div class="col-lg-8">

            <?php 
if ($editor == "ckeditor") {
    ?>
                <?php 
    echo $form->field($model, 'description')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'basic']);
    ?>
            <?php 
} elseif ($editor == "tinymce") {
    ?>