Esempio n. 1
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\BillSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
\app\assets\BillingAsset::register($this);
$this->title = Yii::t('app', 'Bills');
$this->params['breadcrumbs'][] = $this->title;
$billGridID = 'bill-grid';
?>

<div class="bill-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a(Yii::t('app', 'Create {modelClass}: ', ['modelClass' => Yii::t('app', 'Bill')]), ['step1'], ['class' => 'btn btn-success']);
?>
    <fieldset>
        <div class="form-group">
            <label for="select" class="col-lg-2 control-label"><?php 
echo Yii::t('app', 'Show');
Esempio n. 2
0
<?php

use yii\helpers\Html;
use app\assets\BillingAsset;
use yii\widgets\ActiveForm;
use yii\bootstrap\Modal;
use kartik\select2\Select2;
use kartik\money\MaskMoney;
/* @var $this yii\web\View */
/* @var $carPart app\models\CarPart */
/* @var $colors array */
/* @var $sizes array */
/* @var $damages array */
BillingAsset::register($this);
$this->title = Yii::t('app', 'Create {modelClass}: ', ['modelClass' => Yii::t('app', 'Bill')]);
$sizeUrl = \yii\helpers\Url::to(['car-part/size']);
$colorUrl = \yii\helpers\Url::to(['car-part/color']);
$damageUrl = \yii\helpers\Url::to(['car-part/damage']);
$maskMoneyOptions = ['prefix' => 'Bs.', 'suffix' => '', 'affixesStay' => true, 'thousands' => '.', 'decimal' => ',', 'precision' => 2, 'allowZero' => true, 'allowNegative' => false];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Billing'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

    <script>
        var money_default_value = "<?php 
echo Yii::$app->formatter->asCurrency(0.0);
?>
";
    </script>
    <h1><?php 
echo Html::encode($this->title);