Beispiel #1
0
?>
	 <?php 
echo $form->field($model, 'RT')->hiddenInput(['value' => Yii::$app->user->identity->warga, 'readonly' => true])->label(false);
?>
     <?php 
echo $form->field($model, 'KK_NM')->textInput(['maxlength' => true]);
?>
	<div>
		<div style="float:right; width:25%">
		  <?php 
echo $form->field($model, 'noAlfa')->textInput(['maxlength' => true]);
?>
		</div>
		<div style="float:right; width:25%">
			<?php 
echo $form->field($model, 'noInt')->widget(TouchSpin::classname(), ['name' => 't4', 'options' => ['placeholder' => 'No Rumah ...'], 'pluginOptions' => ['buttonup_class' => 'btn btn-primary', 'buttondown_class' => 'btn btn-info', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>
			
		</div>		
		<div style=" width:50%">
			<?php 
echo $form->field($model, 'RUMAH_BLOCK')->dropDownList($dataBlock, ['id' => 'data-warga-block']);
?>
		</div>
	</div>
	<?php 
echo $form->field($model, 'RUMAH_STT')->dropDownList($sttNm, ['id' => 'data-warga-rumastatus']);
?>

      <div class="form-group">
        <?php 
Beispiel #2
0


<div class="kategoricus-form">

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


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

     <?php 
echo $form->field($model, 'JEDA_PEKAN')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'jeda pekan ...']]);
?>

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


    <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();
Beispiel #3
0
?>
        </div>
        <div class="clearfix"></div>
        <div class="col-sm-3">
            <?php 
echo $form->field($model, 'buy_price', ['addon' => ['prepend' => ['content' => '₱'], 'append' => ['content' => '.00']]])->textInput(['class' => 'text-align-right'])->hint('Buy price per item');
?>
        </div>
        <div class="col-sm-3">
            <?php 
echo $form->field($model, 'sell_price', ['addon' => ['prepend' => ['content' => '₱'], 'append' => ['content' => '.00']]])->textInput(['class' => 'text-align-right'])->hint('Selling price per item');
?>
        </div>
        <div class="col-md-3">
            <?php 
echo $form->field($model, 'quantity')->widget(TouchSpin::classname(), ['pluginOptions' => ['min' => 1]])->label('Number of Items');
?>
        </div>
        <div class="clearfix"></div>
    </div>



    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        <?php 
echo Html::a('Cancel', ['index'], ['class' => 'btn btn-danger margin-10-left']);
?>
    </div>
Beispiel #4
0
//echo $form->field($model, 'CUST_NM')->textInput(['maxlength' => true])
?>

    <?php 
echo $form->field($model, 'KD_BARANG')->widget(Select2::classname(), ['data' => $esm_brg, 'options' => ['placeholder' => 'Search for a Item Barang ...'], 'pluginOptions' => ['maximumInputLength' => 3]]);
?>

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

    <?php 
echo $form->field($model, 'STOCK_GUDANG_UNIT')->widget(TouchSpin::classname(), ['name' => 't4', 'options' => ['placeholder' => 'Entry Jumlah Stok per Item Barang ...'], 'pluginOptions' => ['buttonup_class' => 'btn btn-primary', 'buttondown_class' => 'btn btn-info', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>
	<?php 
echo $form->field($model, 'STOCK_GUDANG_PCS')->widget(TouchSpin::classname(), ['name' => 't5', 'options' => ['placeholder' => 'Entry Jumlah Stok per Item Barang ...'], 'pluginOptions' => ['buttonup_class' => 'btn btn-primary', 'buttondown_class' => 'btn btn-info', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>

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

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

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

    <?php 
echo $form->field($model, 'TGL')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date start ...'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

     <!-- $form->field($model, 'STT_DEFAULT')->textInput() ?> -->

     <?php 
echo $form->field($model, 'SCORE_RSLT')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select...'], 'data' => $score]);
?>


     <?php 
echo $form->field($model, 'SCORE_PERCENT_MIN')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
?>

        <?php 
echo $form->field($model, 'SCORE_PERCENT_MAX')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
?>
     

    

  

    
    <!-- $form->field($model, 'KATEGORI')->textInput(['maxlength' => true]) ?> -->

    <!-- $form->field($model, 'BOBOT_PERCENT')->textInput() ?> -->

     <!-- $form->field($model, 'TARGET_MONTH')->textInput() ?> -->

     <!-- $form->field($model, 'TARGET_DAY')->textInput() ?> -->
?>

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 255, 'tabindex' => 1, 'autofocus' => true]);
?>

    <div class="row">
        <div class="col-sm-12 col-md-4 col-lg-3">
            <?php 
echo $form->field($model, 'width')->widget(TouchSpin::classname(), ['options' => ['maxlength' => 5, 'tabindex' => 2], 'pluginOptions' => ['min' => 0, 'max' => 1920, 'step' => 1, 'postfix' => 'px', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>
    
        </div>
        <div class="col-sm-12 col-md-4 col-lg-3">
            <?php 
echo $form->field($model, 'height')->widget(TouchSpin::classname(), ['options' => ['maxlength' => 5, 'tabindex' => 3], 'pluginOptions' => ['min' => 0, 'max' => 99999, 'step' => 1, 'postfix' => 'px', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>
    
        </div>
    </div>

    <div class="buttons 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', 'tabindex' => 4]);
?>
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create & close') : Yii::t('app', 'Update & close'), ['class' => 'btn btn-default', 'name' => 'close', 'tabindex' => 5]);
?>
        <?php 
echo Html::submitButton(Yii::t('app', $model->isNewRecord ? 'Create & new' : 'Update & new'), ['class' => 'btn btn-default', 'name' => 'new', 'tabindex' => 6]);
?>
Beispiel #7
0
?>

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

    <?php 
echo $form->field($model, 'shine')->widget(Select2::classname(), ['language' => $lang, 'data' => ArrayHelper::map(Shine::find()->asArray()->all(), 'id', 'name'), 'options' => ['multiple' => true], 'pluginOptions' => ['tags' => true, 'tokenSeparators' => [',', ' '], 'maximumInputLength' => 10, 'allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'cleavage')->widget(Select2::classname(), ['language' => $lang, 'data' => $model->getCleavageList(), 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'cleavage_way')->widget(TouchSpin::classname(), ['pluginOptions' => ['initval' => 0, 'min' => 0, 'max' => 3, 'step' => 1, 'buttonup_txt' => '<i class="glyphicon glyphicon-plus"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus"></i>']]);
?>

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

    <?php 
echo $form->field($model, 'separate_state')->widget(Select2::classname(), ['language' => $lang, 'data' => $model->getSeparateStates(), 'pluginOptions' => ['allowClear' => true]]);
?>

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

    <?php 
echo $this->render('_flash_messages');
?>

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

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

    <?php 
if (Yii::$app->user->can('Superadmin')) {
    ?>
    <?php 
    echo $form->field($model, 'max_level')->widget(TouchSpin::classname(), ['pluginOptions' => ['initval' => 2, 'min' => $model->isNewRecord ? 1 : $model->getCurrentMaxLevel()]]);
    ?>
    <?php 
}
?>
    
    <div class="form-group">&nbsp;</div>

    <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']);
?>
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create & close') : Yii::t('app', 'Update & close'), ['class' => 'btn btn-default', 'name' => 'close']);
?>
        <?php