Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 21, 2016
1 parent 808461d commit 10efe68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/views/cart/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
$this->title = Yii::t('cart', 'Cart');
$this->params['breadcrumbs'][] = $this->title;

/**
* @var \yii\data\ActiveDataProvider $dataProvider
* @var \hiqdev\yii2\cart\ShoppingCart $cart
*/
?>

<section class="invoice">
Expand All @@ -17,17 +21,21 @@
<h2 class="page-header">
<i class="fa fa-shopping-cart"></i> &nbsp;
<?= Yii::t('cart', 'Your order') ?>: &nbsp; <?= Yii::t('cart', '{0, plural, one{# position} other{# positions}}', $cart->count) ?>
<small class="pull-right"><?= Yii::t('cart', 'Date') ?>: <?= date('Y-m-d') ?></small>
<small class="pull-right"><?= Yii::t('cart', 'Date') ?>: <?= Yii::$app->formatter->asDate(new DateTime()) ?></small>
</h2>
</div>
</div>

<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<?= GridView::widget([
<?php
echo GridView::widget([
'dataProvider' => $dataProvider,
'layout' => '{items}',
'rowOptions' => function ($model, $key, $index, $grid) {
return $model->getRowOptions($key, $index, $grid);
},
'columns' => [
[
'attribute' => 'no',
Expand Down

0 comments on commit 10efe68

Please sign in to comment.