*/ use \yii\widgets\ActiveForm; use \yii\helpers\Html; ?> <div class="caixa-abrir "> <div class="row"> <div class="col-md-6 col-md-offset-3 well"> <h2>Abertura de caixa</h2> <p><b>Data:</b> <?= date('Y-m-d H:i:s')?></p> <?php $form = ActiveForm::begin(); ?> <?php echo $form->errorSummary($caixaAberturaFechamento);?> <?= $form->field($caixaAberturaFechamento, 'valor')->widget(\kartik\money\MaskMoney::classname(), [ ]);?> <?= $form->field($caixaAberturaFechamento, 'observacao')->textarea(['maxlength' => true, 'rows' => 3]) ?> <div class="form-group"> <?= Html::submitButton( 'Abrir caixa' , ['class' => 'btn btn-success btn-block']) ?> </div> <?php ActiveForm::end(); ?> </div>
?> </a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="home"> <p> <?php echo $form->field($model, 'type_id')->radioList(['1' => Yii::t('app', 'Revenue'), '2' => Yii::t('app', 'Expense')], ['itemOptions' => ['class' => 'radio-inline', 'labelOptions' => array('style' => 'padding:4px;')]])->label(''); ?> <?php echo DatePicker::widget(['model' => $model, 'form' => $form, 'attribute' => 'date', 'type' => DatePicker::TYPE_INPUT, 'size' => 'sm', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'value')->widget(MaskMoney::classname(), ['pluginOptions' => ['affixesStay' => true, 'precision' => 2, 'allowZero' => true, 'allowNegative' => true]]); ?> <?php echo $form->field($model, 'category_id', ['inputOptions' => ['class' => 'selectpicker ']])->dropDownList(app\models\Category::getHierarchy(), ['prompt' => Yii::t('app', 'Select'), 'class' => 'form-control required']); ?> <?php echo $form->field($model, 'description')->textInput(['maxlength' => 100]); ?> </div> <div class="tab-pane" id="profile"> <?php echo $form->field($model, 'is_pending')->checkbox(['label' => '', 'labelOptions' => array('class' => 'col-lg-2 control-label')])->label(Yii::t('app', 'Pending'));
<div class="col-md-4"> <?= $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> </form> <div class="row"> <div class="col-md-12"> <h3><?php echo Yii::t('app', '¿Do you want to apply a discount?'); ?> </h3> </div> </div> <div class="row"> <div class="col-md-12"> <?php echo MaskMoney::widget(['id' => 'bill-discount', 'name' => 'bill-discount', 'value' => 0.0, 'pluginOptions' => $maskMoneyOptions]); ?> </div> </div> <div class="row"> <div class="col-md-3"> <?php echo Html::submitButton(Yii::t('app', 'Bill2'), ['class' => 'btn btn-success', 'id' => 'discount-submit-modal']); ?> </div> <div class="col-md-3"> <?php echo Html::submitButton(Yii::t('app', 'Bill draft'), ['class' => 'btn btn-info', 'id' => 'draft-submit-modal']); ?> </div>
<?php echo $form->field($model, 'DIST_KD')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Nama Distributor ...'], 'data' => $data_distributor]); ?> <?php echo $form->field($model, 'PERIOD_START')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Dibuat'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]); ?> <?php echo $form->field($model, 'PERIOD_END')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Berakhir'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]); ?> <?php echo $form->field($model, 'BUDGET_AWAL')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]]); ?> <?php if (!$model->IsNewRecord) { echo $form->field($model, 'STATUS')->dropDownList(['' => ' -- Silahkan Pilih --', '0' => 'Tidak Aktif', '1' => 'Aktif']); } ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
</div> </div> </div> <div class="well"> <h3>Informações Financeiras</h3> <div class="row"> <div class="col-md-3"><?= $form->field($model, 'datanascimento')->widget(DateControl::classname(), [ 'type' => DateControl::FORMAT_DATE, 'ajaxConversion' => false, 'options' =>[ 'pluginOptions' =>['autoclose' => true]]]) ?> </div> <div class="col-md-2"><?= $form->field($model, 'naturalidade_uf')->dropDownList([ 'RN' => 'RN', 'AC' => 'AC', 'AL' => 'AL', 'AP' => 'AP', 'AM' => 'AM', 'BA' => 'BA', 'CE' => 'CE', 'DF' => 'DF', 'ES' => 'ES', 'GO' => 'GO', 'MA' => 'MA', 'MT' => 'MT', 'MS' => 'MS', 'MG' => 'MG', 'PR' => 'PR', 'PB' => 'PB', 'PA' => 'PA', 'PE' => 'PE', 'PI' => 'PI', 'RJ' => 'RJ', 'RS' => 'RS', 'RO' => 'RO', 'RR' => 'RR', 'SC' => 'SC', 'SE' => 'SE', 'SP' => 'SP', 'TO' => 'TO', ], ['prompt' => '']) ?></div> <div class="col-md-2"><?= $form->field($model, 'estadocivil')->dropDownList([ 'Solteiro' => 'Solteiro', 'Casado' => 'Casado', 'Divorciado' => 'Divorciado', 'Viúvo' => 'Viúvo', 'U. Estável' => 'U. Estável', ], ['prompt' => '']) ?></div> <div class="col-md-3"><?= $form->field($model, 'profissao')->textInput(['maxlength' => true]) ?></div> <div class="col-md-2"><?= $form->field($model, 'renda')->widget(MaskMoney::classname()) ?></div> </div> <div class="row"> <div class="col-md-6"><?= $form->field($model, 'mae')->textInput(['maxlength' => true]) ?></div> <div class="col-md-6"><?= $form->field($model, 'pai')->textInput(['maxlength' => true]) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'conjuge')->textInput(['maxlength' => true]) ?></div> <div class="col-md-4"><?= $form->field($model, 'telefone2')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'referencia1')->textInput(['maxlength' => true]) ?></div> <div class="col-md-4"><?= $form->field($model, 'telefone11')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'referencia2')->textInput(['maxlength' => true]) ?></div>
echo $form->field($model, 'color_id')->widget(Select2::classname(), ['options' => ['placeholder' => Yii::t('app', 'Select an option ...')], 'data' => $colors, 'theme' => Select2::THEME_BOOTSTRAP, 'pluginOptions' => ['allowClear' => true, 'ajax' => ['url' => $colorUrl, 'dataType' => 'json']]]); ?> <?php echo $form->field($model, 'damage_id')->widget(Select2::classname(), ['options' => ['placeholder' => Yii::t('app', 'Select an option ...')], 'data' => $damages, 'theme' => Select2::THEME_BOOTSTRAP, 'pluginOptions' => ['allowClear' => true, 'ajax' => ['url' => $damageUrl, 'dataType' => 'json']]]); ?> <?php echo $form->field($modelPrice, 'price')->widget(MaskMoney::classname(), ['pluginOptions' => $maskMoneyOptions]); ?> <?php echo $form->field($modelPrice, 'tax')->widget(MaskMoney::classname(), ['pluginOptions' => $maskPercentOptions]); ?> <?php echo $form->field($modelPrice, 'total')->widget(MaskMoney::classname(), ['pluginOptions' => $maskMoneyOptions]); ?> <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>
use yii\widgets\ActiveForm; use kartik\widgets\Select2; use \kartik\money\MaskMoney; /* @var $this yii\web\View */ /* @var $model app\models\Parcela */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="parcela-form"> <?php $form = ActiveForm::begin(); ?> <? $model->valor_pago = $model->valor_a_pagar; ?> <?= $form->field($model, 'valor_pago')->widget(MaskMoney::classname(), []); ?> <?= $form->field($model, 'forma_pagamento_id')->dropDownList(\app\models\FormaPagamento::map()) ?> <?= $form->field($model, 'obs')->textInput(['maxlength' => true]) ?> <div class="form-group"> <?= Html::submitButton('Quitar parcela', ['class' => 'btn btn-success']) ?> </div> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/purchasing/salesman-order/valid-alias-barang')]); ?> <?php echo $form->field($model, 'KODE_REF')->textInput(['value' => $kode_som, 'readonly' => true]); ?> <?php echo $form->field($model, 'KD_BARANG')->widget(Select2::classname(), ['data' => $data_barang, 'options' => ['placeholder' => 'Pilih Barang..'], 'pluginOptions' => ['allowClear' => true]])->label('NM Barang'); ?> <?php echo $form->field($model, 'SO_QTY')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]])->label('Qty'); ?> <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(); ?> </div>
<div id="Kdbg"> <?php echo $form->field($roDetail, 'kD_BARANG')->widget(Select2::classname(), ['data' => $brgUmum, 'options' => ['placeholder' => 'Pilih Barang ...'], 'pluginOptions' => ['allowClear' => true]])->label('Nama Barang'); ?> </div> <div id="Nbrg"> <?php echo $form->field($roDetail, 'nM_BARANG')->textInput(['maxlength' => true])->label('Nama Item Baru'); ?> </div> <div id="hrg"> <?php echo $form->field($roDetail, 'hARGA')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Rp', 'precision' => 2, 'allowNegative' => false]])->label('Harga'); ?> </div> <?php 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');
use yii\widgets\ActiveForm; use kartik\money\MaskMoney; use kartik\widgets\DatePicker; use kartik\datecontrol\DateControl; /* @var $this yii\web\View */ /* @var $model app\models\Despesa */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="despesa-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'nomedespesa')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'valordespesa')->widget(MaskMoney::classname(), [ 'pluginOptions' => [ 'prefix' => 'R$ ', 'allowNegative' => false, ] ]); ?> <?= $form->field($model, 'situacaopagamento')->dropDownList([1=>'Pago',0=>'Não Pago'], ['prompt'=>'Selecione a situação de pagamento da despesa']) ?> <?= $form->field($model, 'datavencimento')->widget(DateControl::classname(), [ 'type'=>DateControl::FORMAT_DATE, 'ajaxConversion'=>false, 'options' => [ 'pluginOptions' => [
<? //= $form->field($model, 'data')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['pluginOptions' => ['autoclose' => true]]]) ?> </div>--> <div class="col-md-3"> <?= $form->field($model, 'valortotal')->widget(MaskMoney::classname(), [ ]); ?> </div> <div class="col-md-3"> <?= $form->field($model, 'desconto')->widget(MaskMoney::classname(), [ ]); ?> </div> <div class="col-md-3"> <? echo $form->field($model, 'forma_pagamento_idforma_pagamento')->widget(Select2::classname(), [ 'data' => \app\models\FormaPagamento::map(), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => [ 'allowClear' => true ],
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use kartik\money\MaskMoney; ?> <?php $form = ActiveForm::begin(['id' => $model->formName()]); ?> <?php echo $form->field($model, 'TARGET_VALUE')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'RP ', 'allowNegative' => false]]); ?> <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();
?> <?php echo $form->field($model, 'fecha_fin')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy', 'todayBtn' => true], 'options' => ['readonly' => true]]); ?> <?php echo $form->field($model, 'estatus_proyecto')->dropDownList(ArrayHelper::map($estatus_proyecto, 'id', 'estatus'), ['prompt' => 'Seleccione']); ?> <?php echo $form->field($model, 'situacion_presupuestaria')->dropDownList(ArrayHelper::map($situacion_presupuestaria, 'id', 'situacion'), ['prompt' => 'Seleccione']); ?> <?php echo $form->field($model, 'monto_proyecto')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Bs. ', 'allowNegative' => false]]); ?> <?php echo $form->field($model, 'descripcion')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'objetivo_general_proyecto')->textarea(['rows' => 6]); ?> <div class="panel panel-info"> <div class="panel-heading"> <span>Clasificación Sectorial</span> </div> <div class="panel-body">
<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\helpers\ArrayHelper; use kartik\money\MaskMoney; ?> <?php $form = ActiveForm::begin(['id' => 'frm-delivery-proccess', 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'method' => 'post', 'action' => ['/purchasing/purchase-order/delivery-save']]); ?> <?php //echo $form->field($poHeaderVal, 'dELIVERY')->textInput(['placeholder' => 'Entry Nominal Delivery Cost ...'])->label('Delevery Cost [ ex: 1000000.00 ]'); echo $form->field($poHeaderVal, 'dELIVERY')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]]); ?> <?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(); ?>
<div class="producto-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'codigo')->textInput(); ?> <?php echo $form->field($model, 'producto')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'precio')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => '$ ', 'suffix' => '', 'thousands' => '.', 'decimal' => ',', 'allowNegative' => false]]); ?> <?php echo $form->field($model, 'embalaje_idEmbalaje')->widget(Select2::classname(), ['data' => ArrayHelper::map(Embalaje::find()->all(), 'idEmbalaje', 'nombre'), 'options' => ['placeholder' => 'Seleccione une opción'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'impuestos_idImpuesto')->widget(Select2::classname(), ['data' => ArrayHelper::map(Impuesto::find()->all(), 'idImpuesto', 'nombre'), 'options' => ['placeholder' => 'Seleccione une opción'], '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>
echo $form->field($actualModel, 'invesProgram')->textArea(['options' => ['rows' => 5]])->label('INVESTATION PROGRAM'); ?> </div> <div class="col-sm-6"> <?php echo $form->field($actualModel, 'invoiceNo')->textInput(['maxlength' => true])->label('INVOICE'); ?> <?php echo $form->field($actualModel, 'faktureNo')->textInput(['maxlength' => true])->label('FAKTUR'); ?> <?php echo $form->field($actualModel, 'invesHarga')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]])->label('COST'); ?> <?php echo $form->field($actualModel, 'periode_start')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date start ...'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]); ?> <!-- $form->field($actualModel, 'invesHarga')->textInput(['maxlength' => true])->label('COST'); ?> --> </div> <div class="col-sm-6"> <?php echo $form->field($actualModel, 'pph23')->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Pilih Percentage ...'], 'pluginOptions' => ['allowClear' => true]]); ?> </div>
<div class="box-header with-border"> <h3 class="box-title"> การรักษา </h3> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <?php echo $form->field($model, 'TRAN_INJ_GEN_NO')->hiddenInput()->label(false); ?> <?php echo $form->field($model, 'CURE_GEN_NO')->widget(Select2::classname(), ['data' => $cureItems, 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'EXPENSES')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => '฿ ', 'suffix' => '', 'allowZero' => true, 'allowNegative' => false]]); ?> <?php echo $form->field($model, 'UNIT_POINT')->dropDownList($seqNumItems, ['prompt' => '']); ?> <?php echo $form->field($model, 'DISCOUNT')->textInput(); ?> <?php echo $form->field($model, 'TOTAL')->textInput(['maxlength' => true]);
use \yii\bootstrap\ActiveForm; use \yii\helpers\Html; use \kartik\money\MaskMoney; use \kartik\select2\Select2; use \yii\helpers\Url; use \yii\web\JsExpression; $url_beneficiario = Url::to(['vale-beneficiarios/listar-remoto']); ?> <div class="caixa-vale"> <?php $form = ActiveForm::begin(); ?> <div class="row"> <div class="col-md-12"> <h2>Novo Vale</h2> <?= $form->field($model, 'valor')->widget(MaskMoney::classname()) ?> <?= $form->field($model, 'beneficiario_id')->widget(Select2::classname(), [ 'options' => ['placeholder' => 'Selecione o beneficiário...'], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 2, 'ajax' => [ 'url' => $url_beneficiario, 'dataType' => 'json', 'data' => new \yii\web\JsExpression('function(params) { return {search:params.term}; }') ], ], ]) ?>
use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\CaixaMovimentacao */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="caixa-movimentacao-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'valor')->widget(\kartik\money\MaskMoney::classname(), [ ]); ?> <?//= $form->field($model, 'data')->textInput() ?> <?//= $form->field($model, 'caixa_movimentacao_tipo_id')->dropDownList(\app\models\CaixaMovimentacaoTipo::map('saida')) ?> <?= $form->field($model, 'obs')->textInput(['maxlength' => true]) ?> <div class="form-group"> <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> </div>
]); ?> <?= $form->field($modelCaixa, 'valoremcaixa')->widget(MaskMoney::classname(), [ 'options' => [ 'value' => $modelCaixa->valoremcaixa], 'pluginOptions' => [ 'prefix' => 'R$ ', 'allowNegative' => false, ] ]); ?> <?= $form->field($modelCaixa, 'valorlucro')->widget(MaskMoney::classname(), [ 'options' => [ 'value' => $modelCaixa->valorlucro], 'pluginOptions' => [ 'prefix' => 'R$ ', 'allowNegative' => false, ] ]); ?> <?= $form->field($modelCaixa, 'user_id')->hiddenInput(['value' => Yii::$app->user->getId()])->label(false); ?> <?php $modelCaixa->dataabertura = date('d/m/Y'); ?>
<?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 echo $form->field($budget, 'BUDGET_PLAN')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Rp', 'precision' => 2, 'allowNegative' => false]]); ?> <div class="form-group"> <?php echo Html::submitButton($budget->isNewRecord ? 'Create' : 'Update', ['class' => $budget->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end();
<div class="col-md-3"> <?php echo $form->field($model, 'satuan')->textInput(); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'harga_satuan')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Rp. ', 'suffix' => '', 'allowNegative' => false]]); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'harga_total')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Rp. ', 'suffix' => '', 'allowNegative' => false]]); ?> </div> <div class="col-md-2"> <?php echo $form->field($model, 'tahun')->DropDownList([2015 => 2015, 2016 => 2016, 2017 => 2017, 2018 => 2018, 2019 => 2019]); ?> </div> </div> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Buat Target' : 'Ubah Target', ['class' => $model->isNewRecord ? 'btn btn-success pull-right' : 'btn btn-primary']);
'options' => ['id' => 'valorantigo',], ]); ?> </p> <?= $form->field($modelProduto, 'valorVenda')->widget(MaskMoney::classname(), [ 'options' => ['id' => 'valornovo',], 'pluginOptions' => [ 'prefix' => 'R$ ', 'allowNegative' => false, ] ])->label('Novo valor de venda'); ?> <?= $form->field($modelProduto, 'nome')->widget(MaskMoney::classname(), [ 'options' => ['id' => 'diferencavalor',], 'pluginOptions' => [ 'prefix' => 'R$ ', 'allowNegative' => false, ] ])->label('Valor concreto em R$ do lucro'); ?> <div class="group field-produto-porcentagemLucro"> <p> <?= '<label class="control-label">Porcentagem de Lucro</label>' ?> <?= RangeInput::widget([
/** * @inherit doc */ public function init() { parent::init(); }