diff --git a/common/models/Orders.php b/common/models/Orders.php index 1c5c375..68b43a3 100755 --- a/common/models/Orders.php +++ b/common/models/Orders.php @@ -28,7 +28,7 @@ class Orders extends \yii\db\ActiveRecord return [ 'name' => 'Ф.И.О', 'phone'=>'Телефон', - 'phone2'=>'Дополнительный телефон', + 'phone2'=>'Доп. Тел.', 'body'=>'Сообщение', 'adress'=>'Адрес', 'city'=>'Город', diff --git a/frontend/views/basket/index.php b/frontend/views/basket/index.php index 541d954..4afcba3 100755 --- a/frontend/views/basket/index.php +++ b/frontend/views/basket/index.php @@ -44,39 +44,45 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ false]); ?>
-
- field($modelOrder, 'name', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
контакты
+
+ field($modelOrder, 'name', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
+ field($modelOrder, 'phone', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
+ field($modelOrder, 'phone2', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
+ field($modelOrder, 'city', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
+ field($modelOrder, 'adress', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
+
+ field($modelOrder, 'email', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> +
-
- field($modelOrder, 'phone', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> -
-
- field($modelOrder, 'phone2', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> -
-
- field($modelOrder, 'city', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> -
-
- field($modelOrder, 'adress', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> -
-
- field($modelOrder, 'email', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> -
- -
- field($modelOrder, 'delivery') - ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[ - 'item' => function($index, $label, $name, $checked, $value) { - $return = '
'; - $return .= ''; - $return .= ''; - $return .= '
'; - return $return; - }, - ]) - ?> + +
+
+ field($modelOrder, 'delivery') + ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[ + 'item' => function($index, $label, $name, $checked, $value) { + $return = '
'; + $return .= ''; + $return .= ''; + $return .= '
'; + return $return; + }, + ]) + ?> +
+
where(['parent_id'=>0])->all() as $item):?> @@ -96,8 +102,12 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){
+
+
+ field($modelOrder, 'payment')->radioList(['Оплатить наличными'=>'Оплатить наличными','Оплатить на карту Приват Банка'=>'Оплатить на карту Приват Банка','Оплатить по безналичному расчету'=>'Оплатить по безналичному расчету','Оплатить Правекс-телеграф'=>'Оплатить Правекс-телеграф','Наложенным платежом'=>'Наложенным платежом']); ?> +
+
-field($modelOrder, 'payment')->radioList(['Оплатить наличными'=>'Оплатить наличными','Оплатить на карту Приват Банка'=>'Оплатить на карту Приват Банка','Оплатить по безналичному расчету'=>'Оплатить по безналичному расчету','Оплатить Правекс-телеграф'=>'Оплатить Правекс-телеграф','Наложенным платежом'=>'Наложенным платежом']); ?>
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 4f7e8f1..2fdc018 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -1303,7 +1303,79 @@ ul.product-special li.promo:after { width: 100% !important; height: 100% !important; } -.input-blocks-wrapper { +.input-blocks-wrapper, .input-blocks { width: 100%; float: left; +} +.form-order .input-blocks-wrapper { + margin-top: 6px; +} +.input-blocks label { + font-size: 13px; + color: #333; +} +.basket_input_2 label { + height: 30px; + line-height: 30px; + float: left; + width: 70px !important; + padding-top: 0 !important; +} + +.custom-input-2 { + width: 100%; + height: 30px; + border: 1px solid #d2d2d2; + box-sizing: border-box; + outline: none; + color: #636363; + font-size: 13px; + line-height: 30px; + padding-left: 8px; + margin-top: 5px; + background: #fff; + border-radius: 4px; +} +.basket_input_2 .custom-input-2 { + width: 270px; + float: right; + margin-top: 0; +} +.custom-input-2:focus, .custom-area-3:focus{box-shadow: 1px 2px 2px 0px rgba(215, 215, 215, 0.75) inset; transition: 0.1s} +.title_groups, .radio_grp label.control-label { + font-size: 12px; + font-weight: bold; + text-transform: uppercase; +} +.input-blocks-group { + width: 100%; + float: left; + border-bottom: 1px solid #d2d2d2; + padding-bottom: 20px; + margin-top: 18px; +} +.custom-form-buttons { + width: 100%; + float: left; +} +input.custom-radio + label, input.custom-check + label { + font-size: 13px; + cursor: pointer; + margin-left: 6px; +} +/***radio***/ +input.custom-radio, input.custom-check {display: none} +input.custom-radio + label span{ + width: 16px; + height: 16px; + background: url('../img/radio_new.png') no-repeat; + float: left; + transition: .2s; +} +input.custom-radio:checked + label span, input.custom-radio:checked + label:hover span { + background: url('../img/radio_new-active.png') no-repeat; +} + +input.custom-radio + label:hover { + text-decoration: underline; } \ No newline at end of file -- libgit2 0.21.4