diff --git a/common/translation/ru/app.php b/common/translation/ru/app.php
index efcee4a..37c20fe 100644
--- a/common/translation/ru/app.php
+++ b/common/translation/ru/app.php
@@ -22,4 +22,9 @@ return [
'your_personal_area' => 'Вход в личный кабинет',
'forgot_password' => 'Забыли пароль?',
'rememberMe' => 'Запомнить меня',
+ 'articles' => 'Всего товаров',
+ 'code' => 'Код: {0}',
+ 'checkout' => 'оформить заказ',
+ 'sum' => 'Сумма',
+ 'continue_shopping' => 'продолжить покупки',
];
\ No newline at end of file
diff --git a/common/widgets/views/busket_modal.php b/common/widgets/views/busket_modal.php
index fa5dc90..2ed0e5f 100644
--- a/common/widgets/views/busket_modal.php
+++ b/common/widgets/views/busket_modal.php
@@ -24,7 +24,7 @@ use yii\helpers\Html;
@@ -43,11 +43,11 @@ use yii\helpers\Html;
-
Всего товаров: = $count ?>
-
Сумма: = $price ?> грн.
+
= Yii::t('app','articles')?>: = $count ?>
+
= Yii::t('app','sum')?>: = $price ?> грн.
-
продолжить покупки
- = Html::a('оформить заказ', ['orders/first'], ['class'=> 'button']);?>
+ = Html::a(Yii::t('app','continue_shopping'),'#', ['class'=> 'close']) ?>
+ = Html::a(Yii::t('app','checkout'), ['orders/first'], ['class'=> 'button']);?>
diff --git a/frontend/views/orders/basket-step-01.php b/frontend/views/orders/basket-step-01.php
index 2e3c9f3..3a57a2d 100644
--- a/frontend/views/orders/basket-step-01.php
+++ b/frontend/views/orders/basket-step-01.php
@@ -3,7 +3,6 @@
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
-
$this->title = 'Оформление заказа';
$this->params['breadcrumbs'][] = $this->title;
?>
@@ -46,58 +45,55 @@ $this->params['breadcrumbs'][] = $this->title;
Доставка
-
- = $form->field($model, 'delivery',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>1, 'label'=>false]) ?>
-
-
-
- = $form->field($model, 'delivery',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>2, 'label'=>false]) ?>
-
-
-
- = $form->field($model, 'delivery',[
- 'radioTemplate' => '
уточните подробности по телефону 044 ХХХ-ХХ-ХХ{error}{hint}',
- ])->radio(['value'=>3, 'label'=>false]) ?>
-
-
+
+ field($model, 'delivery', [
+ ])->radioList([
+ '1' => '
Курьерска доставка по Киеву и области
',
+ '2' => '
В любой регион Украины
',
+ '3' => '
Самовывоз (бесплатно)
уточните подробности по телефону 044 ХХХ-ХХ-ХХ',
+ ], [
+ 'item' => function ($index, $label, $name, $checked, $value) {
+ return '
';
+ },
+ ])->label(false);
+
+
+ ?>
+
Оплата
-
- = $form->field($model, 'payment',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>1, 'label'=>false]) ?>
-
-
-
- = $form->field($model, 'payment',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>2, 'label'=>false]) ?>
- =
- $form->field($model, 'code',[
- 'template' => '{input}',
- ])->textInput()->label(false);
- ?>
-
-
-
- = $form->field($model, 'payment',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>2, 'label'=>false]) ?>
-
-
-
- = $form->field($model, 'payment',[
- 'radioTemplate' => '
',
- ])->radio(['value'=>2, 'label'=>false]) ?>
-
+ field($model, 'payment', [
+ ])->radioList([
+ '1' => '
Оплата наличными
',
+ '2' => '
Оплата по безналичному расчету. Код ЕГРПОУ
',
+ '3' => '
Приват 24
',
+ '4' => '
Согласовать с менеджером
',
+ ], [
+ 'item' => function ($index, $label, $name, $checked, $value) use ($model) {
+ if($index != 1){
+ return '
';
+ } else {
+ return '
'.Html::activeTextInput($model,'code').'
';
+ }
+
+ },
+ ])->label(false);
+
+
+ ?>
diff --git a/frontend/web/css/concat_all.css b/frontend/web/css/concat_all.css
index feb75d2..0824c4e 100644
--- a/frontend/web/css/concat_all.css
+++ b/frontend/web/css/concat_all.css
@@ -1434,7 +1434,6 @@ span.red {
height: 17px;
top: -11px;
position: absolute;
- left: 315px;
height: 22px;
-webkit-border-radius: 2px;
border-radius: 2px;
diff --git a/frontend/web/js/my_scripts.js b/frontend/web/js/my_scripts.js
index 6617118..b3699d4 100644
--- a/frontend/web/js/my_scripts.js
+++ b/frontend/web/js/my_scripts.js
@@ -13,7 +13,7 @@ $(document).ready(function(){
});
// ion checkradio init
- $("input[type='checkbox']").ionCheckRadio();
+ $("input[type='radio'], input[type='checkbox']").ionCheckRadio();
// filter open li
var filter_list = $('.filter_list ul li .arrow');
--
libgit2 0.21.4