コード例 #1
0
ファイル: view.php プロジェクト: Razzwan/dotplant2
?>
                        <?php 
echo \app\widgets\AutoCompleteSearch::widget(['template' => '<p><a href="{{url}}">{{name}}</a></p>', 'options' => ['class' => 'form-control col-xs-9'], 'id' => 'add-product', 'name' => 'add-product', 'route' => ['auto-complete-search', 'orderId' => $model->id, 'term' => 'QUERY']]);
?>
                    </div>
                </div>
            </div>
            <?php 
BackendWidget::end();
?>

            <?php 
BackendWidget::begin(['icon' => 'dollar', 'title' => Yii::t('app', 'Order transactions')]);
?>
            <?php 
echo \app\modules\shop\widgets\OrderTransaction::widget(['viewFile' => 'order-transaction/backend', 'model' => $model, 'immutable' => $orderIsImmutable, 'additional' => ['transactionsDataProvider' => $transactionsDataProvider]]);
?>
            <?php 
BackendWidget::end();
?>
        </div>
    </div>
</div>
<?php 
echo $this->blocks['page-buttons'];
$form->end();
?>

<?php 
\yii\bootstrap\Modal::begin(['id' => 'custom-fields-modal', 'header' => Yii::t('app', 'Edit order properties')]);
$form = \kartik\widgets\ActiveForm::begin(['action' => ['update-order-properties', 'id' => $model->id]]);
コード例 #2
0
ファイル: show.php プロジェクト: tqsq2005/dotplant2
            </tr>
        <?php 
}
?>
        </tbody>
    </table>
    <h2><?php 
echo Yii::t('app', 'Order items');
?>
</h2>
    <?php 
echo $this->render('_items', ['model' => $order, 'items' => $order->items]);
?>

    <?php 
echo \app\modules\shop\widgets\OrderTransaction::widget(['model' => $order, 'immutable' => $orderIsImmutable]);
?>

    <?php 
$form = \yii\bootstrap\ActiveForm::begin(['id' => 'order-details-form', 'action' => \yii\helpers\Url::to(['/shop/cabinet/update-order', 'hash' => $order->hash]), 'layout' => 'horizontal']);
echo \yii\helpers\Html::hiddenInput('orderId', $order->id);
?>
<div class="panel panel-default">
    <div class="panel-body">
    <?php 
echo \app\modules\shop\widgets\Customer::widget(['viewFile' => 'customer/inherit_form', 'model' => $order->customer, 'form' => $form, 'immutable' => $orderIsImmutable]);
?>

    <?php 
echo \app\modules\shop\widgets\Contragent::widget(['viewFile' => 'contragent/inherit_form', 'model' => $order->contragent, 'form' => $form, 'immutable' => $orderIsImmutable]);
?>