<commit_before><?php
use yii\helpers\Url;
use yii\helpers\Html;
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\widgets\DatePicker;

/* @var $this yii\web\View */
/* @var $searchModel app\modules\orderInclude\models\OrderIncludeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Order Border Form';
$this->params['breadcrumbs'][] = $this->title;


$submitOption = [
  'class' => 'btn btn-lg btn-success'
];

$form = ActiveForm::begin([
  'options' => ['class'=>'order_agreement'],
  'validateOnChange' => true,
]);
?>
<h4 class="modernui-neutral2">Print Border Form</h4>
<div class="row">
    <div class="col-md-offset-4 col-md-4">
        <div class="trans_text">You added <span class="trans_count"><?=count($order_elements);?> parcels</span>, value <span class="trans_count"><?=$total['price'];?>$</span>, width <span class="trans_count"><?=$total['weight_lb'];?>lb</span> <span class="trans_count"><?=$total['weight_oz'];?>oz</span></div>
    </div>
</div>
<div class="row">
    <div class="col-md-offset-4 col-md-4">

    <div class="row">
    <div class="col-md-12">
   <div class="trans_text">When you need us to transport your orders to The US :</div>
  <?= $form->field($model, 'transport_data')->widget(DatePicker::className(),[
    'name' => 'check_issue_date',
    'removeButton' => false,
    //'value' => date('d-M-Y', strtotime('+1 days')),
    'options' => ['placeholder' => 'Choose date'],
    'pluginOptions' => [
      'startDate' => date(\Yii::$app->params['data_format_php'], strtotime('+5 hours')),
      'format' => \Yii::$app->params['data_format_js'],
      'todayHighlight' => true,
      'autoclose'=>true,
    ]
  ]);
?>
    </div>
    </div>
    </div>
</div>
<div class="row">
<div class="col-md-12 padding-top-10 text-center text_certif" >
  <?= $form->field($model, 'agreement')->checkbox([
    'label' => '
        <span class="fa fa-check otst"></span>
        I certify..,my undefstanding..Im responsible for cross-bording, law, etc',
    'id'=>'order-agreement',
    ])->label("") ?>

  <?=Html::a('Print Border Form ABC123', ['/orderInclude/border-form-pdf/'.$order_id],
      [
          'class'=>'btn btn-info text-center on_agreement',
          'target'=>'_blank',
          'data-toggle'=>'tooltip',
          'title'=>'Will open the generated PDF file in a new window'<commit_msg>Смена текста в чекбоксе border form<commit_after><?php
use yii\helpers\Url;
use yii\helpers\Html;
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\widgets\DatePicker;

/* @var $this yii\web\View */
/* @var $searchModel app\modules\orderInclude\models\OrderIncludeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Order Border Form';
$this->params['breadcrumbs'][] = $this->title;


$submitOption = [
  'class' => 'btn btn-lg btn-success'
];

$form = ActiveForm::begin([
  'options' => ['class'=>'order_agreement'],
  'validateOnChange' => true,
]);
?>
<h4 class="modernui-neutral2">Print Border Form</h4>
<div class="row">
    <div class="col-md-offset-4 col-md-4">
        <div class="trans_text">You added <span class="trans_count"><?=count($order_elements);?> parcels</span>, value <span class="trans_count"><?=$total['price'];?>$</span>, width <span class="trans_count"><?=$total['weight_lb'];?>lb</span> <span class="trans_count"><?=$total['weight_oz'];?>oz</span></div>
    </div>
</div>
<div class="row">
    <div class="col-md-offset-4 col-md-4">

    <div class="row">
    <div class="col-md-12">
   <div class="trans_text">When you need us to transport your orders to The US :</div>
  <?= $form->field($model, 'transport_data')->widget(DatePicker::className(),[
    'name' => 'check_issue_date',
    'removeButton' => false,
    //'value' => date('d-M-Y', strtotime('+1 days')),
    'options' => ['placeholder' => 'Choose date'],
    'pluginOptions' => [
      'startDate' => date(\Yii::$app->params['data_format_php'], strtotime('+5 hours')),
      'format' => \Yii::$app->params['data_format_js'],
      'todayHighlight' => true,
      'autoclose'=>true,
    ]
  ]);
?>
    </div>
    </div>
    </div>
</div>
<div class="row">
<div class="col-md-12 padding-top-10 text-center text_certif" >
  <?= $form->field($model, 'agreement')->checkbox([
    'label' => '
        <span class="fa fa-check col-md-1 col-md-offset-3 col-xs-1 text-right otst"></span>
       
        <div class="col-md-5 col-xs-11 text-left">
        I certify the particulars given in this customs declaration are correct. This form does not contain any undecrared
      dangerous articles, or articles prohibited by Legislation or by postal or customs regulations. I have met all
      applicable export filing requirements under federal law and regulations.</div>',
    'id'=>'order-agreement',
    ])->label("") ?>

  <?=Html::a('<span class="glyphicon glyphicon-print"></span> Print Border Form ABC123', ['/orderInclude/border-form-pdf/'.$order_id],
      [
          'class'=>'btn btn-info text-center on_agreement',
          'target'=>'_blank',
          'data-toggle'=>'tooltip',
          'title'=>'Will open the generated PDF file in a new window'
{'fraction_non_alphanumeric': 0.20010875475802067, 'fraction_numerical': 0.0076128330614464385, 'mean_word_length': 4.104532839962997, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '248124', 'n_tokens_mistral': 1902, 'n_tokens_neox': 1880, 'n_words': 389}