示例#1
0
    echo $model->user_agent;
    echo Html::tag('br');
}
?>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-md-4 col-lg-4">
        <div class="panel panel-default height">
            <div class="panel-heading">Payment Information</div>
            <div class="panel-body">
                <?php 
if (in_array('payment_status_id', $subData['visibleAttributes'])) {
    echo Html::tag('strong', $model->getAttributeLabel('payment_status_id') . ': ');
    echo Editable::widget(['model' => $model, 'attribute' => 'payment_status_id', 'displayValueConfig' => $subData['paymentStatusesHtml'], 'data' => $subData['paymentStatusesList'], 'inputType' => Editable::INPUT_DROPDOWN_LIST, 'options' => ['class' => 'form-control'], 'editableValueOptions' => ['class' => 'text-danger'], 'size' => 'md', 'formOptions' => ['action' => Url::toRoute('order/editable')], 'afterInput' => function ($form, $widget) {
        echo $form->field($widget->model, 'order_id')->hiddenInput()->label(false);
    }]);
    echo Html::tag('br');
}
?>
                <?php 
if (in_array('payment_method_id', $subData['visibleAttributes'])) {
    echo Html::tag('strong', $model->getAttributeLabel('payment_method_id') . ': ');
    echo $model->paymentMethod->name;
    echo Html::tag('br');
}
?>
                <?php 
if (in_array('payment_text', $subData['visibleAttributes'])) {
    echo Html::tag('strong', $model->getAttributeLabel('payment_text') . ': ');
    echo Yii::$app->formatter->asNtext($model->payment_text);