Beispiel #1
0
<tr>
    <td>
        <?php 
echo app\models\ItemVatCat::findName($model->itemVatCat_id);
echo $form->field($model, "[{$i}]itemVatCat_id", ['template' => '{input}'])->hiddenInput();
?>
    </td>
    <td>
        <?php 
echo $form->field($model, "[{$i}]account_id", ['template' => '{input}'])->widget(kartik\select2\Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(3), 'id', 'name')]);
?>
    </td> 
</tr>
Beispiel #2
0
<?php

$this->params["menu"] = array();
app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Bank Account Reconciliations")));
?>

<?php 
$form = kartik\form\ActiveForm::begin(array('id' => 'extmatch-form'));
$temp = \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(7), 'id', 'name');
$temp[0] = Yii::t('app', 'Choose Bank');
$model->account_id = 0;
//echo $form->error($extmatch, 'account_id');
echo $form->field($extmatch, "account_id")->widget(kartik\select2\Select2::className(), ['data' => $temp]);
//echo $form->error($extmatch, 'account_id');
?>
<div id ="result">
</div>
<div class="row">
    <div class="col-md-3">
        <?php 
//echo $form->labelEx($extmatch, 'ext_total');
echo $form->field($extmatch, 'ext_total');
//echo $form->error($extmatch, 'ext_total');
//echo $form->labelEx($extmatch, 'int_total');
echo $form->field($extmatch, 'int_total');
//echo $form->error($extmatch, 'int_total');
?>
    </div>  
</div>
<div class="form-actions">
    <?php 
Beispiel #3
0
        <?php 
echo ($model->hasCert() ? Yii::t('app', "Has certifcate file") : '') . "<br>";
?>
        <?php 
echo $form->field($model, 'certpasswd');
?>
        <?php 
app\widgets\TbPanel::end();
?>
    </div>     
    <div class="col-md-4 col-sm-6">
        <?php 
app\widgets\TbPanel::begin(array('header' => Yii::t('app', "User Warehouse and VAT Configuration")));
?>
        <?php 
echo $form->field($model, 'warehouse')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Accounts::findAllByType(8), 'id', 'name')]);
?>
        <table  data-role="table" class="table" ><!-- docdetalies -->
            <thead>
                <tr  class="head1">
                    <th><label><?php 
echo Yii::t('app', "Item VAT Cat");
?>
</label></th>
                    <th><label><?php 
echo Yii::t('app', "Account ID");
?>
</label></th>
                </tr>
            </thead>	
            <tfoot>