Commit 2c71da38ce3016acf199f204b7ce3e76d10c95d6

Authored by Administrator
1 parent 72469867

25.03.16 finish 1

common/translation/ru/app.php
@@ -22,4 +22,9 @@ return [ @@ -22,4 +22,9 @@ return [
22 'your_personal_area' => 'Вход в личный кабинет', 22 'your_personal_area' => 'Вход в личный кабинет',
23 'forgot_password' => 'Забыли пароль?', 23 'forgot_password' => 'Забыли пароль?',
24 'rememberMe' => 'Запомнить меня', 24 'rememberMe' => 'Запомнить меня',
  25 + 'articles' => 'Всего товаров',
  26 + 'code' => 'Код: {0}',
  27 + 'checkout' => 'оформить заказ',
  28 + 'sum' => 'Сумма',
  29 + 'continue_shopping' => 'продолжить покупки',
25 ]; 30 ];
26 \ No newline at end of file 31 \ No newline at end of file
common/widgets/views/busket_modal.php
@@ -24,7 +24,7 @@ use yii\helpers\Html; @@ -24,7 +24,7 @@ use yii\helpers\Html;
24 </div> 24 </div>
25 <div class="name_and_code"> 25 <div class="name_and_code">
26 <span class="name"><?=$item['item']->product->name.' '.$item['item']->name?></span> 26 <span class="name"><?=$item['item']->product->name.' '.$item['item']->name?></span>
27 - <span class="code"> Код: 45885-01016049</span> 27 + <span class="code"><?= Yii::t('app', 'code', '45885-01016049')?></span>
28 </div> 28 </div>
29 <div class="count_block_wrap"> 29 <div class="count_block_wrap">
30 <div class="count_block"> 30 <div class="count_block">
@@ -43,11 +43,11 @@ use yii\helpers\Html; @@ -43,11 +43,11 @@ use yii\helpers\Html;
43 </ul> 43 </ul>
44 <hr> 44 <hr>
45 <div class="all_price"> 45 <div class="all_price">
46 - <p>Всего товаров: <span class="all_count"><?= $count ?></span></p>  
47 - <p>Сумма: <span class="all_price all_price_span"><?= $price ?></span> грн.</p> 46 + <p><?= Yii::t('app','articles')?>: <span class="all_count"><?= $count ?></span></p>
  47 + <p><?= Yii::t('app','sum')?>: <span class="all_price all_price_span"><?= $price ?></span> грн.</p>
48 </div> 48 </div>
49 <div class="busket_bottom_btn"> 49 <div class="busket_bottom_btn">
50 - <a class = "close" href="#">продолжить покупки</a>  
51 - <?= Html::a('оформить заказ', ['orders/first'], ['class'=> 'button']);?> 50 + <?= Html::a(Yii::t('app','continue_shopping'),'#', ['class'=> 'close']) ?>
  51 + <?= Html::a(Yii::t('app','checkout'), ['orders/first'], ['class'=> 'button']);?>
52 </div> 52 </div>
53 </div> 53 </div>
frontend/views/orders/basket-step-01.php
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 use yii\helpers\Html; 3 use yii\helpers\Html;
4 use yii\helpers\Url; 4 use yii\helpers\Url;
5 use yii\bootstrap\ActiveForm; 5 use yii\bootstrap\ActiveForm;
6 -  
7 $this->title = 'Оформление заказа'; 6 $this->title = 'Оформление заказа';
8 $this->params['breadcrumbs'][] = $this->title; 7 $this->params['breadcrumbs'][] = $this->title;
9 ?> 8 ?>
@@ -46,58 +45,55 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title; @@ -46,58 +45,55 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
46 <div class="delivery_radio"> 45 <div class="delivery_radio">
47 <h3>Доставка</h3> 46 <h3>Доставка</h3>
48 47
49 - <div class="padding_cust">  
50 - <?= $form->field($model, 'delivery',[  
51 - 'radioTemplate' => '<label>{input}<p>Курьерска доставка по Киеву и области</p>{error}{hint}</label>',  
52 - ])->radio(['value'=>1, 'label'=>false]) ?>  
53 - </div>  
54 -  
55 - <div class="padding_cust">  
56 - <?= $form->field($model, 'delivery',[  
57 - 'radioTemplate' => '<label>{input}<p>В любой регион Украины</p>{error}{hint}</label>',  
58 - ])->radio(['value'=>2, 'label'=>false]) ?>  
59 - </div>  
60 -  
61 - <div class="padding_cust">  
62 - <?= $form->field($model, 'delivery',[  
63 - 'radioTemplate' => '<label>{input}<p>Самовывоз (бесплатно)</p></label><span class="placehold">уточните подробности по телефону 044 ХХХ-ХХ-ХХ</span>{error}{hint}',  
64 - ])->radio(['value'=>3, 'label'=>false]) ?>  
65 - </div>  
66 - </div> 48 +
  49 + <?php
  50 +
  51 +
  52 + echo $form->field($model, 'delivery', [
  53 + ])->radioList([
  54 + '1' => '<p>Курьерска доставка по Киеву и области</p>',
  55 + '2' => '<p>В любой регион Украины</p>',
  56 + '3' => '<p>Самовывоз (бесплатно)</p></label><span class="placehold">уточните подробности по телефону 044 ХХХ-ХХ-ХХ</span>',
  57 + ], [
  58 + 'item' => function ($index, $label, $name, $checked, $value) {
  59 + return '<div class="padding_cust"><label>' .
  60 + Html::radio($name, $checked, ['value' => $value]) . $label . '</label></div>';
  61 + },
  62 + ])->label(false);
  63 +
  64 +
  65 + ?>
  66 +
67 67
68 <div class="separator_02"></div> 68 <div class="separator_02"></div>
69 69
70 <div class="basket_pay_block"> 70 <div class="basket_pay_block">
71 <h3>Оплата</h3> 71 <h3>Оплата</h3>
72 72
73 - <div class="padding_cust">  
74 - <?= $form->field($model, 'payment',[  
75 - 'radioTemplate' => '<label>{input}<p>Оплата наличными</p>{error}{hint}</label>',  
76 - ])->radio(['value'=>1, 'label'=>false]) ?>  
77 - </div>  
78 -  
79 - <div class="padding_cust">  
80 - <?= $form->field($model, 'payment',[  
81 - 'radioTemplate' => '<label>{input}<p>Оплата по безналичному расчету. Код ЕГРПОУ</p>{error}{hint}</label>',  
82 - ])->radio(['value'=>2, 'label'=>false]) ?>  
83 - <?=  
84 - $form->field($model, 'code',[  
85 - 'template' => '{input}',  
86 - ])->textInput()->label(false);  
87 - ?>  
88 - </div>  
89 -  
90 - <div class="padding_cust">  
91 - <?= $form->field($model, 'payment',[  
92 - 'radioTemplate' => '<label>{input}<p>Приват 24</p>{error}{hint}</label>',  
93 - ])->radio(['value'=>2, 'label'=>false]) ?>  
94 - </div>  
95 -  
96 - <div class="padding_cust">  
97 - <?= $form->field($model, 'payment',[  
98 - 'radioTemplate' => '<label>{input}<p>Согласовать с менеджером</p>{error}{hint}</label>',  
99 - ])->radio(['value'=>2, 'label'=>false]) ?>  
100 - </div> 73 + <?php
  74 +
  75 +
  76 + echo $form->field($model, 'payment', [
  77 + ])->radioList([
  78 + '1' => '<p>Оплата наличными</p>',
  79 + '2' => '<p>Оплата по безналичному расчету. Код ЕГРПОУ</p>',
  80 + '3' => '<p>Приват 24</p>',
  81 + '4' => '<p>Согласовать с менеджером</p>',
  82 + ], [
  83 + 'item' => function ($index, $label, $name, $checked, $value) use ($model) {
  84 + if($index != 1){
  85 + return '<div class="padding_cust"><label>' .
  86 + Html::radio($name, $checked, ['value' => $value]) . $label . '</label></div>';
  87 + } else {
  88 + return '<div class="padding_cust"><label>' .
  89 + Html::radio($name, $checked, ['value' => $value]) . $label . '</label>'.Html::activeTextInput($model,'code').'</div>';
  90 + }
  91 +
  92 + },
  93 + ])->label(false);
  94 +
  95 +
  96 + ?>
101 97
102 </div> 98 </div>
103 99
frontend/web/css/concat_all.css
@@ -1434,7 +1434,6 @@ span.red { @@ -1434,7 +1434,6 @@ span.red {
1434 height: 17px; 1434 height: 17px;
1435 top: -11px; 1435 top: -11px;
1436 position: absolute; 1436 position: absolute;
1437 - left: 315px;  
1438 height: 22px; 1437 height: 22px;
1439 -webkit-border-radius: 2px; 1438 -webkit-border-radius: 2px;
1440 border-radius: 2px; 1439 border-radius: 2px;
frontend/web/js/my_scripts.js
@@ -13,7 +13,7 @@ $(document).ready(function(){ @@ -13,7 +13,7 @@ $(document).ready(function(){
13 }); 13 });
14 14
15 // ion checkradio init 15 // ion checkradio init
16 - $("input[type='checkbox']").ionCheckRadio(); 16 + $("input[type='radio'], input[type='checkbox']").ionCheckRadio();
17 17
18 // filter open li 18 // filter open li
19 var filter_list = $('.filter_list ul li .arrow'); 19 var filter_list = $('.filter_list ul li .arrow');