Exemple #1
0
    <?php 
echo $form->field($model, 'cesion')->dropDownList(frontend\models\MovimUf::getSiNo());
?>

    <?php 
echo $form->field($model, 'migracion')->dropDownList(frontend\models\MovimUf::getSiNo());
?>
    
    <?php 
echo $form->field($model, 'fec_vto')->dropDownList(frontend\models\MovimUf::getSiNo());
?>
 
    
    <?php 
echo $form->field($model, 'manual')->dropDownList(frontend\models\MovimUf::getSiNo());
?>
           

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

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

</div>
Exemple #2
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model frontend\models\MovimUf */
$this->title = 'Detalle de movimiento de U.F.';
$this->params['breadcrumbs'][] = ['label' => 'Movimientos de U.F.', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="movim-uf-view">

    <h3><?php 
echo Html::encode($this->title);
?>
</h3>

    <p>
        <?php 
echo Html::a('Modificar', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>

    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'desc_movim_uf', ['attribute' => 'cesion', 'value' => frontend\models\MovimUf::getSiNo($model->cesion)], ['attribute' => 'migracion', 'value' => frontend\models\MovimUf::getSiNo($model->migracion)], ['attribute' => 'fec_vto', 'value' => frontend\models\MovimUf::getSiNo($model->fec_vto)], ['attribute' => 'manual', 'value' => frontend\models\MovimUf::getSiNo($model->manual)]]]);
?>

</div>