<commit_before><?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\web\JsExpression;
use yii\bootstrap\Modal;
use kartik\grid\GridView;
use johnitvn\ajaxcrud\CrudAsset;
use johnitvn\ajaxcrud\BulkButtonWidget;
use yii\widgets\Pjax;
use yii\bootstrap\ActiveForm;
use yii\widgets\DetailView;
use app\components\ParcelPrice;
use kartik\select2\Select2;
use yii\jui\AutoComplete;
use app\modules\user\models\User;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\orderInclude\models\OrderIncludeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Order';
$this->params['breadcrumbs'][] = $this->title;
CrudAsset::register($this);
$submitOption = [
  'class' => 'btn btn-lg btn-success'
];
?>
  <div class="row">
      <div class="col-md-2 col-sm-12">
          <?=Html::a('<i class="icon-metro-arrow-left-3"></i> Back', ['/'],
            [
              'class'=>'btn btn-md btn-neutral-border pull-left hidden-xs',
              'id' => 'updateParcelsIdCookie',
              'data-forCookie'=> $ids,
              'data-forusercookie'=> $user_ids,
            ])?>
      </div>
      <div class="col-md-8 col-sm-12 text-center">
          <h4 class="">Order #<?=$order_id?> for Transportation</br>
          <?php if (!$edit_not_prohibited) {?>
              <span class="prohibit_editing text-danger"><span class="glyphicon glyphicon-ban-circle"></span> <?=$message_for_edit_prohibited_order?></span>
          <?php } ?>
          </h4>
    </div>

  </div>
<hr class="bottom_line2">

<?php if (Yii::$app->user->can('userManager')) { ?>
  <div class="row">
    <?php
    //echo AutoComplete::widget([
    //  'name' => 'country',
    //  'clientOptions' => [
    //    'source' => Url::to(['/order/create']),
   //   ],
   //   'options' => ['placeholder' => 'Select the country','tabindex'=>'10'],
  //  ]);
    ?>
  </div>
<?php } ?>

  <div id=crud-datatable-pjax>

    <?php
    Pjax::begin();
    if($order_elements){

      foreach ($order_elements as $k=>$percel) {?>
        <div class="row">
          <div class="col-md-12"><h5 class="modern_border">Parcel № <?= $k+1 ?> </h5></div>
          <div class="col-md-3 marg_p">
            <h5 class="deliv_address">Delivery address</h5><p><b>First name:</b>  <?=$percel->first_name;?></p>
              <?php
              if($percel->source==1){
                  echo "<p><b>Import from : </b><span class='from_ebay'></span></p>";
              }
              ?>
            <p><b>Last name:</b>  <?=$percel->last_name;?></p>
            <?php if($percel->address_type==1){
              echo '<p><b>Company name:</b>  '.$percel->company_name.'</p>';
            };?>
            <p><b>Addres 1:</b>  <?=$percel->adress_1;?></p>
            <p><b>Addres 2:</b>  <?=$percel->adress_2;?></p>
            <p><b>City:</b>  <?=$percel->city;?></p>
            <p><b>ZIP:</b>  <?=$percel->zip;?></p>
            <p><b>Phone:</b>  <?=$percel->phone;?></p>
            <p><b>State:</b>  <?=$percel->state;?></p>
            <?php if ($edit_not_prohibited) {?>
              <?=Html::a('<i class="glyphicon glyphicon-pencil"></i> Edit address', ['/orderElement/update?id='.$percel->id],
                [
                  'role'=>'modal-remote',
                  'title'=> 'Create Element of Order',
                  'class'=>'btn btn-info btn-xs2 show_modal',
                  'id' => 'open_add_order_address',
                ])?>
            <?php } ?>
          </div><commit_msg>поменял значёк № на # в OrderInclude<commit_after><?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\web\JsExpression;
use yii\bootstrap\Modal;
use kartik\grid\GridView;
use johnitvn\ajaxcrud\CrudAsset;
use johnitvn\ajaxcrud\BulkButtonWidget;
use yii\widgets\Pjax;
use yii\bootstrap\ActiveForm;
use yii\widgets\DetailView;
use app\components\ParcelPrice;
use kartik\select2\Select2;
use yii\jui\AutoComplete;
use app\modules\user\models\User;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\orderInclude\models\OrderIncludeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Order';
$this->params['breadcrumbs'][] = $this->title;
CrudAsset::register($this);
$submitOption = [
  'class' => 'btn btn-lg btn-success'
];
?>
  <div class="row">
      <div class="col-md-2 col-sm-12">
          <?=Html::a('<i class="icon-metro-arrow-left-3"></i> Back', ['/'],
            [
              'class'=>'btn btn-md btn-neutral-border pull-left hidden-xs',
              'id' => 'updateParcelsIdCookie',
              'data-forCookie'=> $ids,
              'data-forusercookie'=> $user_ids,
            ])?>
      </div>
      <div class="col-md-8 col-sm-12 text-center">
          <h4 class="">Order #<?=$order_id?> for Transportation</br>
          <?php if (!$edit_not_prohibited) {?>
              <span class="prohibit_editing text-danger"><span class="glyphicon glyphicon-ban-circle"></span> <?=$message_for_edit_prohibited_order?></span>
          <?php } ?>
          </h4>
    </div>

  </div>
<hr class="bottom_line2">

<?php if (Yii::$app->user->can('userManager')) { ?>
  <div class="row">
    <?php
    //echo AutoComplete::widget([
    //  'name' => 'country',
    //  'clientOptions' => [
    //    'source' => Url::to(['/order/create']),
   //   ],
   //   'options' => ['placeholder' => 'Select the country','tabindex'=>'10'],
  //  ]);
    ?>
  </div>
<?php } ?>

  <div id=crud-datatable-pjax>

    <?php
    Pjax::begin();
    if($order_elements){

      foreach ($order_elements as $k=>$percel) {?>
        <div class="row">
          <div class="col-md-12"><h5 class="modern_border">Parcel # <?= $k+1 ?> </h5></div>
          <div class="col-md-3 marg_p">
            <h5 class="deliv_address">Delivery address</h5><p><b>First name:</b>  <?=$percel->first_name;?></p>
              <?php
              if($percel->source==1){
                  echo "<p><b>Import from : </b><span class='from_ebay'></span></p>";
              }
              ?>
            <p><b>Last name:</b>  <?=$percel->last_name;?></p>
            <?php if($percel->address_type==1){
              echo '<p><b>Company name:</b>  '.$percel->company_name.'</p>';
            };?>
            <p><b>Addres 1:</b>  <?=$percel->adress_1;?></p>
            <p><b>Addres 2:</b>  <?=$percel->adress_2;?></p>
            <p><b>City:</b>  <?=$percel->city;?></p>
            <p><b>ZIP:</b>  <?=$percel->zip;?></p>
            <p><b>Phone:</b>  <?=$percel->phone;?></p>
            <p><b>State:</b>  <?=$percel->state;?></p>
            <?php if ($edit_not_prohibited) {?>
              <?=Html::a('<i class="glyphicon glyphicon-pencil"></i> Edit address', ['/orderElement/update?id='.$percel->id],
                [
                  'role'=>'modal-remote',
                  'title'=> 'Create Element of Order',
                  'class'=>'btn btn-info btn-xs2 show_modal',
                  'id' => 'open_add_order_address',
                ])?>
            <?php } ?>
          </div>
{'fraction_non_alphanumeric': 0.21971105707338007, 'fraction_numerical': 0.008296381061364612, 'mean_word_length': 2.3696385542168676, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 261, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5319326', 'n_tokens_mistral': 2478, 'n_tokens_neox': 2443, 'n_words': 383}