Blame view

views/order/create.php 937 Bytes
2a050410   Yarik   Order
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  <?php
      
      use yii\helpers\Html;
      use yiister\gentelella\widgets\Panel;
      
      /**
       * @var \yii\web\View              $this
       * @var \artbox\order\models\Order $model
       * @var array                      $labels
       * @var array                      $deliveries
       * @var array                      $payments
       */
      
      $this->title = Yii::t('order', 'Create Order');
      $this->params[ 'breadcrumbs' ][] = [
          'label' => Yii::t('order', 'Orders'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="order-create">
      <?php
          $xPanel = Panel::begin(
              [
                  'header' => $this->title,
              ]
          );
      ?>
    <h1><?= Html::encode($this->title) ?></h1>
      
      <?= $this->render(
          '_form',
          [
              'model' => $model,
          ]
      ) ?>
      
      <?php
          $xPanel::end();
      ?>
  </div>